Skip to:
Content

BuddyPress.org


Ignore:
Timestamp:
11/24/2022 09:33:11 PM (2 years ago)
Author:
imath
Message:

Replace usage of $this in @param tags with a meaningful variable name

Props devutpol, espellcaste

Fixes #8611

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-groups/classes/class-bp-groups-member-suggestions.php

    r11760 r13372  
    5555         * @since 2.1.0
    5656         *
    57          * @param array                        $args  Array of arguments for the suggestion service query.
    58          * @param BP_Groups_Member_Suggestions $this Instance of the current suggestion class.
     57         * @param array                        $args        Array of arguments for the suggestion service query.
     58         * @param BP_Groups_Member_Suggestions $suggestions Instance of the current suggestion class.
    5959         */
    60         $this->args             = apply_filters( 'bp_groups_member_suggestions_args', $this->args, $this );
     60        $this->args = apply_filters( 'bp_groups_member_suggestions_args', $this->args, $this );
    6161
    6262        // Check for invalid or missing mandatory parameters.
     
    7777         * @since 2.1.0
    7878         *
    79          * @param bool|WP_Error                $value True if valid, WP_Error if not.
    80          * @param BP_Groups_Member_Suggestions $this Instance of the current suggestion class.
     79         * @param bool|WP_Error                $value       True if valid, WP_Error if not.
     80         * @param BP_Groups_Member_Suggestions $suggestions Instance of the current suggestion class.
    8181         */
    8282        return apply_filters( 'bp_groups_member_suggestions_validate_args', parent::validate(), $this );
     
    135135         * @since 2.1.0
    136136         *
    137          * @param array                        $user_query Array of arguments for the query.
    138          * @param BP_Groups_Member_Suggestions $this      Instance of the current suggestion class.
     137         * @param array                        $user_query  Array of arguments for the query.
     138         * @param BP_Groups_Member_Suggestions $suggestions Instance of the current suggestion class.
    139139         */
    140140        $user_query = apply_filters( 'bp_groups_member_suggestions_query_args', $user_query, $this );
     
    166166         * @since 2.1.0
    167167         *
    168          * @param array                        $results Array of member suggestions.
    169          * @param BP_Groups_Member_Suggestions $this    Instance of the current suggestion class.
     168         * @param array                        $results     Array of member suggestions.
     169         * @param BP_Groups_Member_Suggestions $suggestions Instance of the current suggestion class.
    170170         */
    171171        return apply_filters( 'bp_groups_member_suggestions_get_suggestions', $results, $this );
Note: See TracChangeset for help on using the changeset viewer.