Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
06/01/2024 10:37:31 PM (2 years ago)
Author:
espellcaste
Message:

WPCS: Fix the method signatures for allow_invitation and allow_request.

See #9164 and #7228

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-core/classes/class-bp-invitation-manager.php

    r13888 r13889  
    109109                 *
    110110                 * @since 5.0.0
    111                  *
    112                  * @param array $r Describes the invitation to be added.
    113111                 */
    114112                if ( ! $this->allow_invitation( $r ) ) {
     
    163161         * @param int   $invitation_id ID of invitation to send.
    164162         * @param array $args          See BP_Invitation::mark_sent().
    165          *
    166163         * @return bool
    167164         */
     
    314311         *
    315312         * @since 5.0.0
    316          * @access public
    317313         *
    318314         * @param int   $request_id ID of request to send.
    319315         * @param array $args       See BP_Invitation::mark_sent().
    320          *
    321          * @return bool The result of `run_send_action()`.
     316         * @return bool
    322317         */
    323318        public function send_request_notification_by_id( $request_id = 0, $args = array() ) {
     
    773768         * @since 5.0.0
    774769         *
     770         * @param array $args The parameters that describe the invitation.
    775771         * @return bool
    776772         */
    777         public function allow_invitation() {
     773        public function allow_invitation( $args ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.Found
    778774                return true;
    779775        }
     
    785781         * @since 5.0.0
    786782         *
     783         * @param array $args The parameters describing the request.
    787784         * @return bool
    788785         */
    789         public function allow_request() {
     786        public function allow_request( $args ) { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.Found
    790787                return true;
    791788        }
Note: See TracChangeset for help on using the changeset viewer.