Skip to:
Content

BuddyPress.org

Changeset 13889


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

WPCS: Fix the method signatures for allow_invitation and allow_request.

See #9164 and #7228

Location:
trunk/src
Files:
3 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    }
  • trunk/src/bp-groups/classes/class-bp-groups-invitation-manager.php

    r12793 r13889  
    3737     * @since 5.0.0
    3838     *
    39      * @param int $id The ID of the invitation to mark as sent.
     39     * @param BP_Invitation $invitation The invitation to send.
    4040     * @return bool True on success, false on failure.
    4141     */
     
    155155     * @since 5.0.0
    156156     *
    157      * @param array $args.
     157     * @param array $args Array of arguments.
    158158     * @return bool
    159159     */
  • trunk/src/bp-members/classes/class-bp-members-invitation-manager.php

    r13476 r13889  
    142142     * @since 8.0.0
    143143     *
    144      * @param array $args.
     144     * @param array $args Array of arguments.
    145145     * @return bool
    146146     */
Note: See TracChangeset for help on using the changeset viewer.