Skip to:
Content

BuddyPress.org

Changeset 13372


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

Location:
trunk/src
Files:
40 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/bp-activity/classes/class-bp-activity-activity.php

    r13344 r13372  
    256256         * @since 1.0.0
    257257         *
    258          * @param BP_Activity_Activity $this Current instance of the activity item being saved. Passed by reference.
     258         * @param BP_Activity_Activity $activity Current instance of the activity item being saved. Passed by reference.
    259259         */
    260260        do_action_ref_array( 'bp_activity_before_save', array( &$this ) );
     
    327327         * @since 1.0.0
    328328         *
    329          * @param BP_Activity_Activity $this Current instance of activity item being saved. Passed by reference.
     329         * @param BP_Activity_Activity $activity Current instance of activity item being saved. Passed by reference.
    330330         */
    331331        do_action_ref_array( 'bp_activity_after_save', array( &$this ) );
  • trunk/src/bp-activity/classes/class-bp-activity-feed.php

    r13108 r13372  
    151151             * @since 1.8.0
    152152             *
    153              * @param BP_Activity_Feed $this Current instance of activity feed. Passed by reference.
     153             * @param BP_Activity_Feed $feed Current instance of activity feed. Passed by reference.
    154154             */
    155155            do_action_ref_array( 'bp_activity_feed_prefetch', array( &$this ) );
     
    169169             * @since 1.8.0
    170170             *
    171              * @param BP_Activity_Feed $this Current instance of activity feed. Passed by reference.
     171             * @param BP_Activity_Feed $feed Current instance of activity feed. Passed by reference.
    172172             */
    173173            do_action_ref_array( 'bp_activity_feed_postfetch', array( &$this ) );
  • trunk/src/bp-blogs/classes/class-bp-blogs-blog.php

    r13307 r13372  
    103103         * @since 1.0.0
    104104         *
    105          * @param BP_Blogs_Blog $this Current instance of the blog item being saved. Passed by reference.
     105         * @param BP_Blogs_Blog $blog Current instance of the blog item being saved. Passed by reference.
    106106         */
    107107        do_action_ref_array( 'bp_blogs_blog_before_save', array( &$this ) );
     
    135135         * @since 1.0.0
    136136         *
    137          * @param BP_Blogs_Blog $this Current instance of the blog item being saved. Passed by reference.
     137         * @param BP_Blogs_Blog $blog Current instance of the blog item being saved. Passed by reference.
    138138         */
    139139        do_action_ref_array( 'bp_blogs_blog_after_save', array( &$this ) );
  • trunk/src/bp-core/classes/class-bp-button.php

    r13108 r13372  
    360360         *
    361361         * @param string    $contents HTML being used for the button.
    362          * @param BP_Button $this     Current BP_Button instance.
     362         * @param BP_Button $button   Current BP_Button instance.
    363363         * @param string    $before   HTML appended before the actual button.
    364364         * @param string    $after    HTML appended after the actual button.
  • trunk/src/bp-core/classes/class-bp-email-recipient.php

    r12353 r13372  
    3333     * @param string|array|int|WP_User $email_or_user Either a email address, user ID, WP_User object,
    3434     *                                                or an array containing any combination of the above.
    35      * @param string $name Optional. If $email_or_user is a string, this is the recipient's name.
     35     * @param string                   $name          Optional. If $email_or_user is a string, this is the
     36     *                                                recipient's name.
    3637     */
    3738    public function __construct( $email_or_user, $name = '' ) {
     
    101102         * @param string|array|int|WP_User $email_or_user Either a email address, user ID, WP_User object,
    102103         *                                                or an array containing any combination of the above.
    103          * @param string $name If $email_or_user is a string, this is the recipient's name.
    104          * @param BP_Email_Recipient $this Current instance of the email type class.
     104         * @param string                   $name          If $email_or_user is a string, this is the recipient's name.
     105         * @param BP_Email_Recipient       $recipient    Current instance of the email type class.
    105106         */
    106107        do_action( 'bp_email_recipient', $email_or_user, $name, $this );
     
    170171         * @since 2.5.0
    171172         *
    172          * @param WP_User $name WP_User object for this recipient, or null if not set.
    173          * @param string $transform Optional. How the return value was transformed.
    174          *                          Accepts 'raw' (default) or 'search-email'.
    175          * @param BP_Email $recipient $this Current instance of the email recipient class.
     173         * @param WP_User            $user_object WP_User object for this recipient, or null if not set.
     174         * @param string             $transform  Optional. How the return value was transformed.
     175         *                                        Accepts 'raw' (default) or 'search-email'.
     176         * @param BP_Email_Recipient $recipient  Current instance of the email recipient class.
    176177         */
    177178        return apply_filters( 'bp_email_recipient_get_user', $this->user_object, $transform, $this );
  • trunk/src/bp-core/classes/class-bp-email.php

    r12932 r13372  
    199199         * @since 2.5.0
    200200         *
    201          * @param string $email_type Unique identifier for this type of email.
    202          * @param BP_Email $this Current instance of the email type class.
     201         * @param string   $email_type Unique identifier for this type of email.
     202         * @param BP_Email $email      Current instance of the email type class.
    203203         */
    204204        do_action( 'bp_email', $email_type, $this );
     
    245245         * @since 2.5.0
    246246         *
    247          * @param mixed $property_value Property value.
    248          * @param string $property_name
    249          * @param string $transform How to transform the return value.
    250          *                          Accepts 'raw' (default) or 'replace-tokens'.
    251          * @param BP_Email $this Current instance of the email type class.
     247         * @param mixed    $property_value Property value.
     248         * @param string   $property_name  Property name.
     249         * @param string   $transform      How to transform the return value.
     250         *                                 Accepts 'raw' (default) or 'replace-tokens'.
     251         * @param BP_Email $email          Current instance of the email type class.
    252252         */
    253253        $retval = apply_filters( "bp_email_get_{$property_name}", $this->$property_name, $property_name, $transform, $this );
     
    273273         * @since 2.5.0
    274274         *
    275          * @param string $retval Property value.
    276          * @param string $property_name
    277          * @param string $transform How to transform the return value.
    278          *                          Accepts 'raw' (default) or 'replace-tokens'.
    279          * @param BP_Email $this Current instance of the email type class.
     275         * @param string   $retval        Property value.
     276         * @param string   $property_name Property name.
     277         * @param string   $transform    How to transform the return value.
     278         *                                Accepts 'raw' (default) or 'replace-tokens'.
     279         * @param BP_Email $email        Current instance of the email type class.
    280280         */
    281281        return apply_filters( 'bp_email_get_property', $retval, $property_name, $transform, $this );
     
    551551         *
    552552         * @param string[] $new_headers Key/value pairs of new header name/values (strings).
    553          * @param BP_Email $this Current instance of the email type class.
     553         * @param BP_Email $email      Current instance of the email type class.
    554554         */
    555555        $this->headers = apply_filters( 'bp_email_set_headers', $new_headers, $this );
     
    593593         * @since 2.5.0
    594594         *
    595          * @param BP_Email_Recipient[] $bcc BCC recipients.
     595         * @param BP_Email_Recipient[]     $bcc        BCC recipients.
    596596         * @param string|array|int|WP_User $bcc_address Either a email address, user ID, WP_User object,
    597597         *                                              or an array containing any combination of the above.
    598          * @param string $name Optional. If $bcc_address is a string, this is the recipient's name.
    599          * @param string $operation If "replace", $to_address replaced previous recipients. If "add",
    600          *                          $to_address was added to the array of recipients.
    601          * @param BP_Email $this Current instance of the email type class.
     598         * @param string                   $name        Optional. If $bcc_address is a string, this is the recipient's
     599         *                                              name.
     600         * @param string                   $operation   If "replace", $to_address replaced previous recipients.
     601         *                                              If "add", $to_address was added to the array of recipients.
     602         * @param BP_Email                 $email       Current instance of the email type class.
    602603         */
    603604        $this->bcc = apply_filters( 'bp_email_set_bcc', $bcc, $bcc_address, $name, $operation, $this );
     
    641642         * @since 2.5.0
    642643         *
    643          * @param BP_Email_Recipient[] $cc CC recipients.
     644         * @param BP_Email_Recipient[]     $cc        CC recipients.
    644645         * @param string|array|int|WP_User $cc_address Either a email address, user ID, WP_User object,
    645646         *                                             or an array containing any combination of the above.
    646          * @param string $name Optional. If $cc_address is a string, this is the recipient's name.
    647          * @param string $operation If "replace", $to_address replaced previous recipients. If "add",
    648          *                          $to_address was added to the array of recipients.
    649          * @param BP_Email $this Current instance of the email type class.
     647         * @param string                   $name      Optional. If $cc_address is a string, this is the recipient's name.
     648         * @param string                   $operation If "replace", $to_address replaced previous recipients. If "add",
     649         *                                             $to_address was added to the array of recipients.
     650         * @param BP_Email                 $email      Current instance of the email type class.
    650651         */
    651652        $this->cc = apply_filters( 'bp_email_set_cc', $cc, $cc_address, $name, $operation, $this );
     
    669670         * @since 2.5.0
    670671         *
    671          * @param string $content HTML email content.
    672          * @param BP_Email $this Current instance of the email type class.
     672         * @param string   $content HTML email content.
     673         * @param BP_Email $email  Current instance of the email type class.
    673674         */
    674675        $this->content_html = apply_filters( 'bp_email_set_content_html', $content, $this );
     
    692693         * @since 2.5.0
    693694         *
    694          * @param string $content Plain text email content.
    695          * @param BP_Email $this Current instance of the email type class.
     695         * @param string   $content Plain text email content.
     696         * @param BP_Email $email  Current instance of the email type class.
    696697         */
    697698        $this->content_plaintext = apply_filters( 'bp_email_set_content_plaintext', $content, $this );
     
    721722         * @since 2.5.0
    722723         *
    723          * @param string $content_type Email content type ("html" or "plaintext").
    724          * @param BP_Email $this Current instance of the email type class.
     724         * @param string   $content_type Email content type ("html" or "plaintext").
     725         * @param BP_Email $email        Current instance of the email type class.
    725726         */
    726727        $this->content_type = apply_filters( 'bp_email_set_content_type', $content_type, $this );
     
    749750         * @since 2.5.0
    750751         *
    751          * @param BP_Email_Recipient $from Sender details.
     752         * @param BP_Email_Recipient       $from          Sender details.
    752753         * @param string|array|int|WP_User $email_address Either a email address, user ID, or WP_User object.
    753          * @param string $name Optional. If $email_address is a string, this is the recipient's name.
    754          * @param BP_Email $this Current instance of the email type class.
     754         * @param string                   $name          Optional. If $email_address is a string, this is the
     755         *                                                recipient's name.
     756         * @param BP_Email                 $email         Current instance of the email type class.
    755757         */
    756758        $this->from = apply_filters( 'bp_email_set_from', $from, $email_address, $name, $this );
     
    776778         * @since 2.5.0
    777779         *
    778          * @param WP_Post $post A Post.
    779          * @param BP_Email $this Current instance of the email type class.
     780         * @param WP_Post  $post A Post.
     781         * @param BP_Email $email Current instance of the email type class.
    780782         */
    781783        $this->post_object = apply_filters( 'bp_email_set_post_object', $post, $this );
     
    832834         * @since 2.5.0
    833835         *
    834          * @param BP_Email_Recipient $reply_to "Reply to" recipient.
     836         * @param BP_Email_Recipient       $reply_to      "Reply to" recipient.
    835837         * @param string|array|int|WP_User $email_address Either a email address, user ID, WP_User object,
    836838         *                                                or an array containing any combination of the above.
    837          * @param string $name Optional. If $email_address is a string, this is the recipient's name.
    838          * @param BP_Email $this Current instance of the email type class.
     839         * @param string                   $name          Optional. If $email_address is a string, this is the
     840         *                                                recipient's name.
     841         * @param BP_Email                 $email         Current instance of the email type class.
    839842         */
    840843        $this->reply_to = apply_filters( 'bp_email_set_reply_to', $reply_to, $email_address, $name, $this );
     
    858861         * @since 2.5.0
    859862         *
    860          * @param string $subject Email subject.
    861          * @param BP_Email $this Current instance of the email type class.
     863         * @param string   $subject Email subject.
     864         * @param BP_Email $email  Current instance of the email type class.
    862865         */
    863866        $this->subject = apply_filters( 'bp_email_set_subject', $subject, $this );
     
    884887         * @since 2.5.0
    885888         *
    886          * @param string $template Email template. Assumed to be HTML.
    887          * @param BP_Email $this Current instance of the email type class.
     889         * @param string   $template Email template. Assumed to be HTML.
     890         * @param BP_Email $email    Current instance of the email type class.
    888891         */
    889892        $this->template = apply_filters( 'bp_email_set_template', $template, $this );
     
    932935         * @since 2.5.0
    933936         *
    934          * @param BP_Email_Recipient[] "To" recipients.
    935          * @param string $to_address "To" address.
    936          * @param string $name "To" name.
    937          * @param string $operation If "replace", $to_address replaced previous recipients. If "add",
    938          *                          $to_address was added to the array of recipients.
    939          * @param BP_Email $this Current instance of the email type class.
     937         * @param BP_Email_Recipient[] $to         "To" recipients.
     938         * @param string               $to_address "To" address.
     939         * @param string               $name      "To" name.
     940         * @param string               $operation If "replace", $to_address replaced previous recipients. If "add",
     941         *                                         $to_address was added to the array of recipients.
     942         * @param BP_Email             $email      Current instance of the email type class.
    940943         */
    941944        $this->to = apply_filters( 'bp_email_set_to', $to, $to_address, $name, $operation, $this );
     
    973976         * @param string[] $tokens           Associative pairing of unformatted token
    974977         *                                   names (key) and replacement values (value).
    975          * @param BP_Email $this             Current instance of the email type class.
     978         * @param BP_Email $email            Current instance of the email type class.
    976979         */
    977980        $this->tokens = apply_filters( 'bp_email_set_tokens', $formatted_tokens, $tokens, $this );
     
    10221025         *
    10231026         * @param bool|WP_Error $retval Returns true if validation succesful, else a descriptive WP_Error.
    1024          * @param BP_Email $this Current instance of the email type class.
     1027         * @param BP_Email      $email Current instance of the email type class.
    10251028         */
    10261029        return apply_filters( 'bp_email_validate', $retval, $this );
  • trunk/src/bp-core/classes/class-bp-embed.php

    r13108 r13372  
    5656         * @since 1.5.0
    5757         *
    58          * @param BP_Embed $this Current instance of the BP_Embed. Passed by reference.
     58         * @param BP_Embed $embed Current instance of the BP_Embed. Passed by reference.
    5959         */
    6060        do_action_ref_array( 'bp_core_setup_oembed', array( &$this ) );
  • trunk/src/bp-core/classes/class-bp-members-suggestions.php

    r11760 r13372  
    5555         * @since 2.1.0
    5656         *
    57          * @param array                  $args Array of arguments for the member suggestions.
    58          * @param BP_Members_Suggestions $this Current BP_Members_Suggestions instance.
     57         * @param array                  $args        Array of arguments for the member suggestions.
     58         * @param BP_Members_Suggestions $suggestions Current BP_Members_Suggestions instance.
    5959         */
    6060        $this->args                 = apply_filters( 'bp_members_suggestions_args', $this->args, $this );
     
    7070         * @since 2.1.0
    7171         *
    72          * @param bool|WP_Error          $value Results of validation check.
    73          * @param BP_Members_Suggestions $this Current BP_Members_Suggestions instance.
     72         * @param bool|WP_Error          $is_valid    Results of validation check.
     73         * @param BP_Members_Suggestions $suggestions Current BP_Members_Suggestions instance.
    7474         */
    7575        return apply_filters( 'bp_members_suggestions_validate_args', parent::validate(), $this );
     
    105105         * @since 2.1.0
    106106         *
    107          * @param array                  $user_query Array of query arguments.
    108          * @param BP_Members_Suggestions $this      Current BP_Members_Suggestions instance.
     107         * @param array                  $user_query  Array of query arguments.
     108         * @param BP_Members_Suggestions $suggestions Current BP_Members_Suggestions instance.
    109109         */
    110110        $user_query = apply_filters( 'bp_members_suggestions_query_args', $user_query, $this );
     
    132132         * @since 2.1.0
    133133         *
    134          * @param array                  $results Array of users to suggest.
    135          * @param BP_Members_Suggestions $this    Current BP_Members_Suggestions instance.
     134         * @param array                  $results     Array of users to suggest.
     135         * @param BP_Members_Suggestions $suggestions Current BP_Members_Suggestions instance.
    136136         */
    137137        return apply_filters( 'bp_members_suggestions_get_suggestions', $results, $this );
  • trunk/src/bp-core/classes/class-bp-suggestions.php

    r13108 r13372  
    5151     * @var array
    5252     */
    53     protected $args = array(
    54     );
    55 
     53    protected $args = array();
    5654
    5755    /**
     
    106104         * @since 2.1.0
    107105         *
    108          * @param BP_Suggestions $value Arguments to be validated.
    109          * @param BP_Suggestions $this Current BP_Suggestions instance.
     106         * @param array          $args        Arguments to be validated.
     107         * @param BP_Suggestions $suggestions Current BP_Suggestions instance.
    110108         */
    111         $this->args          = apply_filters( 'bp_suggestions_args', $this->args, $this );
     109        $this->args = apply_filters( 'bp_suggestions_args', $this->args, $this );
    112110
    113111        // Check for invalid or missing mandatory parameters.
     
    126124         * @since 2.1.0
    127125         *
    128          * @param bool           $value Whether or not the values are valid.
    129          * @param BP_Suggestions $this Current BP_Suggestions instance.
     126         * @param bool           $is_valid    Whether or not the values are valid.
     127         * @param BP_Suggestions $suggestions Current BP_Suggestions instance.
    130128         */
    131129        return apply_filters( 'bp_suggestions_validate_args', true, $this );
  • trunk/src/bp-core/classes/class-bp-user-query.php

    r13184 r13372  
    188188             * @since 1.7.0
    189189             *
    190              * @param BP_User_Query $this Current instance of the BP_User_Query. Passed by reference.
     190             * @param BP_User_Query $user_query Current instance of the BP_User_Query. Passed by reference.
    191191             */
    192192            do_action_ref_array( 'bp_pre_user_query_construct', array( &$this ) );
     
    494494         * @since 2.0.0
    495495         *
    496          * @param array         $sql  Array of SQL clauses to be used in the query.
    497          * @param BP_User_Query $this Current BP_User_Query instance.
     496         * @param array         $sql        Array of SQL clauses to be used in the query.
     497         * @param BP_User_Query $user_query Current BP_User_Query instance.
    498498         */
    499499        $sql = apply_filters_ref_array( 'bp_user_query_uid_clauses', array( $sql, &$this ) );
     
    511511         * @since 1.7.0
    512512         *
    513          * @param BP_User_Query $this Current BP_User_Query instance. Passed by reference.
     513         * @param BP_User_Query $query Current BP_User_Query instance. Passed by reference.
    514514         */
    515515        do_action_ref_array( 'bp_pre_user_query', array( &$this ) );
     
    549549             * @since 1.7.0
    550550             *
    551              * @param string        $value SQL statement to select FOUND_ROWS().
    552              * @param BP_User_Query $this Current BP_User_Query instance.
     551             * @param string        $value      SQL statement to select FOUND_ROWS().
     552             * @param BP_User_Query $user_query Current BP_User_Query instance.
    553553             */
    554554            $this->total_users = $wpdb->get_var( apply_filters( 'bp_found_user_query', "SELECT FOUND_ROWS()", $this ) );
     
    579579         * @since 1.7.0
    580580         *
    581          * @param array         $value Array of arguments for the user query.
    582          * @param BP_User_Query $this Current BP_User_Query instance.
     581         * @param array         $value      Array of arguments for the user query.
     582         * @param BP_User_Query $user_query Current BP_User_Query instance.
    583583         */
    584584        $wp_user_query = new WP_User_Query( apply_filters( 'bp_wp_user_query_args', array(
     
    697697         * @since 1.7.0
    698698         *
    699          * @param BP_User_Query $this         Current BP_User_Query instance.
     699         * @param BP_User_Query $user_query   Current BP_User_Query instance.
    700700         * @param string        $user_ids_sql Comma-separated string of user IDs.
    701701         */
  • trunk/src/bp-groups/bp-groups-admin.php

    r13280 r13372  
    647647     * @since 1.7.0
    648648     *
    649      * @param BP_Groups_Group $this Instance of the current group being edited. Passed by reference.
     649     * @param BP_Groups_Group $group Instance of the current group being edited. Passed by reference.
    650650     */
    651651    do_action_ref_array( 'bp_groups_admin_edit', array( &$group ) ); ?>
  • trunk/src/bp-groups/classes/class-bp-group-member-query.php

    r13357 r13372  
    109109         * @since 10.3.0
    110110         *
    111          * @param array         $value Array of arguments for the user query.
    112          * @param BP_User_Query $this Current BP_User_Query instance.
     111         * @param array         $value      Array of arguments for the user query.
     112         * @param BP_User_Query $user_query Current BP_User_Query instance.
    113113         */
    114114        $wp_user_query = new WP_User_Query(
     
    368368         *
    369369         * @param array                 $group_member_ids Array of associated member IDs.
    370          * @param BP_Group_Member_Query $this             Current BP_Group_Member_Query instance.
     370         * @param BP_Group_Member_Query $user_query       Current BP_Group_Member_Query instance.
    371371         */
    372372        $this->group_member_ids = apply_filters( 'bp_group_member_query_group_member_ids', $this->group_member_ids, $this );
  • trunk/src/bp-groups/classes/class-bp-groups-group-members-template.php

    r13108 r13372  
    244244             *
    245245             * @since 1.0.0
    246              * @since 2.3.0 `$this` parameter added.
     246             * @since 2.3.0 `$template_loop` parameter added.
    247247             * @since 2.7.0 Action renamed from `loop_end`.
    248248             *
    249              * @param BP_Groups_Group_Members_Template $this Instance of the current Members template.
     249             * @param BP_Groups_Group_Members_Template $template_loop Instance of the current Members template.
    250250             */
    251251            do_action( 'group_members_loop_end', $this );
     
    275275             *
    276276             * @since 1.0.0
    277              * @since 2.3.0 `$this` parameter added.
     277             * @since 2.3.0 `$template_loop` parameter added.
    278278             * @since 2.7.0 Action renamed from `loop_start`.
    279279             *
    280              * @param BP_Groups_Group_Members_Template $this Instance of the current Members template.
     280             * @param BP_Groups_Group_Members_Template $template_loop Instance of the current Members template.
    281281             */
    282282            do_action( 'group_members_loop_start', $this );
  • trunk/src/bp-groups/classes/class-bp-groups-group.php

    r13355 r13372  
    288288         * @since 1.0.0
    289289         *
    290          * @param BP_Groups_Group $this Current instance of the group item being saved. Passed by reference.
     290         * @param BP_Groups_Group $group Current instance of the group item being saved. Passed by reference.
    291291         */
    292292        do_action_ref_array( 'groups_group_before_save', array( &$this ) );
     
    372372         * @since 1.0.0
    373373         *
    374          * @param BP_Groups_Group $this Current instance of the group item that was saved. Passed by reference.
     374         * @param BP_Groups_Group $group Current instance of the group item that was saved. Passed by reference.
    375375         */
    376376        do_action_ref_array( 'groups_group_after_save', array( &$this ) );
     
    412412         * @since 1.2.0
    413413         *
    414          * @param BP_Groups_Group $this     Current instance of the group item being deleted. Passed by reference.
     414         * @param BP_Groups_Group $group    Current instance of the group item being deleted. Passed by reference.
    415415         * @param array           $user_ids Array of user IDs that were members of the group.
    416416         */
  • trunk/src/bp-groups/classes/class-bp-groups-invite-template.php

    r13108 r13372  
    202202             *
    203203             * @since 1.1.0
    204              * @since 2.3.0 `$this` parameter added.
     204             * @since 2.3.0 `$template_loop` parameter added.
    205205             * @since 2.7.0 Action renamed from `loop_start`.
    206206             *
    207              * @param BP_Groups_Invite_Template $this Instance of the current Invites template.
     207             * @param BP_Groups_Invite_Template $template_loop Instance of the current Invites template.
    208208             */
    209209            do_action( 'group_invitation_loop_end', $this );
     
    304304             *
    305305             * @since 1.1.0
    306              * @since 2.3.0 `$this` parameter added.
     306             * @since 2.3.0 `$template_loop` parameter added.
    307307             * @since 2.7.0 Action renamed from `loop_start`.
    308308             *
    309              * @param BP_Groups_Invite_Template $this Instance of the current Invites template.
     309             * @param BP_Groups_Invite_Template $template_loop Instance of the current Invites template.
    310310             */
    311311            do_action( 'group_invitation_loop_start', $this );
  • 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 );
  • trunk/src/bp-groups/classes/class-bp-groups-member.php

    r13280 r13372  
    282282         * @since 1.0.0
    283283         *
    284          * @param BP_Groups_Member $this Current instance of the group membership item being saved. Passed by reference.
     284         * @param BP_Groups_Member $group_membership Current instance of the group membership item being saved. Passed by reference.
    285285         */
    286286        do_action_ref_array( 'groups_member_before_save', array( &$this ) );
     
    317317         * @since 1.0.0
    318318         *
    319          * @param BP_Groups_Member $this Current instance of the group membership item has been saved. Passed by reference.
     319         * @param BP_Groups_Member $member Current instance of the group membership item has been saved. Passed by reference.
    320320         */
    321321        do_action_ref_array( 'groups_member_after_save', array( &$this ) );
     
    432432         * @since 2.3.0
    433433         *
    434          * @param BP_Groups_Member $this Current group membership object.
     434         * @param BP_Groups_Member $group_membership Current group membership class.
    435435         */
    436436        do_action_ref_array( 'groups_member_before_remove', array( $this ) );
     
    450450         * @since 2.3.0
    451451         *
    452          * @param BP_Groups_Member $this Current group membership object.
     452         * @param BP_Groups_Member $member Current group membership object.
    453453         */
    454454        do_action_ref_array( 'groups_member_after_remove', array( $this ) );
  • trunk/src/bp-messages/classes/class-bp-messages-message.php

    r13312 r13372  
    128128         * @since 1.0.0
    129129         *
    130          * @param BP_Messages_Message $this Current instance of the message item being saved. Passed by reference.
     130         * @param BP_Messages_Message $message Current instance of the message item being saved. Passed by reference.
    131131         */
    132132        do_action_ref_array( 'messages_message_before_save', array( &$this ) );
     
    177177         * @since 1.0.0
    178178         *
    179          * @param BP_Messages_Message $this Current instance of the message item being saved. Passed by reference.
     179         * @param BP_Messages_Message $message Current instance of the message item being saved. Passed by reference.
    180180         */
    181181        do_action_ref_array( 'messages_message_after_save', array( &$this ) );
  • trunk/src/bp-messages/classes/class-bp-messages-notice.php

    r13108 r13372  
    119119         * @since 1.0.0
    120120         *
    121          * @param BP_Messages_Notice $this Current instance of the message notice item being saved. Passed by reference.
     121         * @param BP_Messages_Notice $notice Current instance of the message notice item being saved. Passed by reference.
    122122         */
    123123        do_action_ref_array( 'messages_notice_before_save', array( &$this ) );
     
    147147         * @since 1.0.0
    148148         *
    149          * @param BP_Messages_Notice $this Current instance of the message item being saved. Passed by reference.
     149         * @param BP_Messages_Notice $notice Current instance of the message item being saved. Passed by reference.
    150150         */
    151151        do_action_ref_array( 'messages_notice_after_save', array( &$this ) );
     
    196196         * @since 1.0.0
    197197         *
    198          * @param BP_Messages_Notice $this Current instance of the message notice item being deleted.
     198         * @param BP_Messages_Notice $notice Current instance of the message notice item being deleted.
    199199         */
    200200        do_action( 'messages_notice_before_delete', $this );
     
    212212         * @since 2.8.0
    213213         *
    214          * @param BP_Messages_Notice $this Current instance of the message notice item being deleted.
     214         * @param BP_Messages_Notice $notice Current instance of the message notice item being deleted.
    215215         */
    216216        do_action( 'messages_notice_after_delete', $this );
  • trunk/src/bp-messages/classes/class-bp-messages-thread.php

    r13339 r13372  
    215215         * @since 10.0.0 Added `$r` as a parameter.
    216216         *
    217          * @param BP_Messages_Thread $this Message thread object.
    218          * @param array              $r    Array of paremeters.
     217         * @param BP_Messages_Thread $thread Current messages thread class.
     218         * @param array              $r      Array of paremeters.
    219219         */
    220220        do_action( 'bp_messages_thread_post_populate', $this, $r );
  • trunk/src/bp-templates/bp-legacy/buddypress-functions.php

    r13344 r13372  
    198198         * @since 1.7.0
    199199         *
    200          * @param BP_Legacy $this Current BP_Legacy instance.
     200         * @param BP_Legacy $template_pack Current Template Pack instance.
    201201         */
    202202        do_action_ref_array( 'bp_theme_compat_actions', array( &$this ) );
  • trunk/src/bp-templates/bp-nouveau/buddypress-functions.php

    r13306 r13372  
    129129         * @since 3.0.0
    130130         *
    131          * @param BP_Nouveau $value Current BP_Nouveau instance.
     131         * @param BP_Nouveau $template_pack Current Template Pack instance.
    132132         */
    133133        do_action_ref_array( 'bp_nouveau_includes', array( &$this ) );
     
    235235         * @since 3.0.0
    236236         *
    237          * @param BP_Nouveau $this Current BP_Nouveau instance.
     237         * @param BP_Nouveau $template_pack Current Template Pack instance.
    238238         */
    239239        do_action_ref_array( 'bp_theme_compat_actions', array( &$this ) );
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-checkbox-acceptance.php

    r13108 r13372  
    6565         * @since 8.0.0
    6666         *
    67          * @param BP_XProfile_Field_Type_Checkbox_Acceptance $this Current instance of the Checkbox Acceptance field type.
     67         * @param BP_XProfile_Field_Type_Checkbox_Acceptance $field_type Current instance of the field type class.
    6868         */
    6969        do_action( 'bp_xprofile_field_type_checkbox_acceptance', $this );
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-checkbox.php

    r11618 r13372  
    4040         * @since 2.0.0
    4141         *
    42          * @param BP_XProfile_Field_Type_Checkbox $this Current instance of
    43          *                                              the field type checkbox.
     42         * @param BP_XProfile_Field_Type_Checkbox $field_type Current instance of the field type class.
    4443         */
    4544        do_action( 'bp_xprofile_field_type_checkbox', $this );
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-datebox.php

    r13108 r13372  
    3838         * @since 2.0.0
    3939         *
    40          * @param BP_XProfile_Field_Type_Datebox $this Current instance of
    41          *                                             the field type datebox.
     40         * @param BP_XProfile_Field_Type_Datebox $field_type Current instance of the field type class.
    4241         */
    4342        do_action( 'bp_xprofile_field_type_datebox', $this );
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-multiselectbox.php

    r13164 r13372  
    4040         * @since 2.0.0
    4141         *
    42          * @param BP_XProfile_Field_Type_Multiselectbox $this Current instance of
    43          *                                                    the field type multiple select box.
     42         * @param BP_XProfile_Field_Type_Multiselectbox $field_type Current instance of the field type class.
    4443         */
    4544        do_action( 'bp_xprofile_field_type_multiselectbox', $this );
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-number.php

    r13108 r13372  
    3636         * @since 2.0.0
    3737         *
    38          * @param BP_XProfile_Field_Type_Number $this Current instance of
    39          *                                            the field type number.
     38         * @param BP_XProfile_Field_Type_Number $field_type Current instance of the field type class.
    4039         */
    4140        do_action( 'bp_xprofile_field_type_number', $this );
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-radiobutton.php

    r13164 r13372  
    3838         * @since 2.0.0
    3939         *
    40          * @param BP_XProfile_Field_Type_Radiobutton $this Current instance of
    41          *                                                 the field type radio button.
     40         * @param BP_XProfile_Field_Type_Radiobutton $field_type Current instance of the field type class.
    4241         */
    4342        do_action( 'bp_xprofile_field_type_radiobutton', $this );
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-selectbox.php

    r11645 r13372  
    3838         * @since 2.0.0
    3939         *
    40          * @param BP_XProfile_Field_Type_Selectbox $this Current instance of
    41          *                                               the field type select box.
     40         * @param BP_XProfile_Field_Type_Selectbox $field_type Current instance of the field type class.
    4241         */
    4342        do_action( 'bp_xprofile_field_type_selectbox', $this );
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-telephone.php

    r13108 r13372  
    3636         * @since 3.0.0
    3737         *
    38          * @param BP_XProfile_Field_Type_Telephone $this Current instance of the field type.
     38         * @param BP_XProfile_Field_Type_Telephone $field_type Current instance of the field type class.
    3939         */
    4040        do_action( 'bp_xprofile_field_type_telephone', $this );
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-textarea.php

    r13108 r13372  
    3737         * @since 2.0.0
    3838         *
    39          * @param BP_XProfile_Field_Type_Textarea $this Current instance of
    40          *                                              the field type textarea.
     39         * @param BP_XProfile_Field_Type_Textarea $field_type Current instance of the field type class.
    4140         */
    4241        do_action( 'bp_xprofile_field_type_textarea', $this );
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-textbox.php

    r13108 r13372  
    3636         * @since 2.0.0
    3737         *
    38          * @param BP_XProfile_Field_Type_Textbox $this Current instance of
    39          *                                             the field type text box.
     38         * @param BP_XProfile_Field_Type_Textbox $field_type Current instance of the field type class.
    4039         */
    4140        do_action( 'bp_xprofile_field_type_textbox', $this );
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-url.php

    r13108 r13372  
    4646         * @since 2.0.0
    4747         *
    48          * @param BP_XProfile_Field_Type_URL $this Current instance of
    49          *                                         the field type URL.
     48         * @param BP_XProfile_Field_Type_URL $field_type Current instance of the field type class.
    5049         */
    5150        do_action( 'bp_xprofile_field_type_url', $this );
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-wordpress-biography.php

    r13108 r13372  
    3838         * @since 8.0.0
    3939         *
    40          * @param BP_XProfile_Field_Type_WordPress_Biography $this Instance of the field type object.
     40         * @param BP_XProfile_Field_Type_WordPress_Biography $field_type Current instance of the field type class.
    4141         */
    4242        do_action( 'bp_xprofile_field_type_wordpress_biography', $this );
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-wordpress-textbox.php

    r13108 r13372  
    3939         * @since 8.0.0
    4040         *
    41          * @param BP_XProfile_Field_Type_WordPress_Textbox $this Instance of the field type object.
     41         * @param BP_XProfile_Field_Type_WordPress_Textbox $field_type Current instance of the field type class.
    4242         */
    4343        do_action( 'bp_xprofile_field_type_wordpress_textbox', $this );
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type-wordpress.php

    r12885 r13372  
    7373         * @since 8.0.0
    7474         *
    75          * @param BP_XProfile_Field_Type_WordPress $this Instance of the field type object.
     75         * @param BP_XProfile_Field_Type_WordPress $field_type Current instance of the field type class.
    7676         */
    7777        do_action( 'bp_xprofile_field_type_wordpress', $this );
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field-type.php

    r13108 r13372  
    111111         * @since 2.0.0
    112112         *
    113          * @param BP_XProfile_Field_Type $this Current instance of
    114          *                                     the field type class.
     113         * @param BP_XProfile_Field_Type $field_type Current instance of the field type class.
    115114         */
    116115        do_action( 'bp_xprofile_field_type', $this );
     
    140139         * @param string                 $replace_format Optional replace format If "replace", replaces the
    141140         *                                               format instead of adding to it. Defaults to "add".
    142          * @param BP_XProfile_Field_Type $this           Current instance of the BP_XProfile_Field_Type class.
     141         * @param BP_XProfile_Field_Type $field_type     Current instance of the field type class.
    143142         */
    144143        $format = apply_filters( 'bp_xprofile_field_type_set_format', $format, $replace_format, $this );
     
    187186             * @deprecated 7.0.0 Use 'bp_xprofile_field_type_set_allowed_values' instead.
    188187             *
    189              * @param string                 $value  Field value.
    190              * @param array                  $values Original array of values.
    191              * @param BP_XProfile_Field_Type $this   Current instance of the BP_XProfile_Field_Type class.
     188             * @param string                 $value      Field value.
     189             * @param array                  $values     Original array of values.
     190             * @param BP_XProfile_Field_Type $field_type Current instance of the field type class.
    192191             */
    193192            $this->validation_allowed_values[] = apply_filters_deprecated( 'bp_xprofile_field_type_set_whitelist_values', array( $value, $values, $this ), '7.0.0', 'bp_xprofile_field_type_set_allowed_values' );
     
    198197             * @since 7.0.0
    199198             *
    200              * @param string                 $value  Field value.
    201              * @param array                  $values Original array of values.
    202              * @param BP_XProfile_Field_Type $this   Current instance of the BP_XProfile_Field_Type class.
     199             * @param string                 $value      Field value.
     200             * @param array                  $values     Original array of values.
     201             * @param BP_XProfile_Field_Type $field_type Current instance of the field type class.
    203202             */
    204203            $this->validation_allowed_values[] = apply_filters( 'bp_xprofile_field_type_set_allowed_values', $value, $values, $this );
     
    256255         * @since 2.0.0
    257256         *
    258          * @param bool                   $validated Whether or not the field type is valid.
    259          * @param string|array           $values    Value to check against the registered formats.
    260          * @param BP_XProfile_Field_Type $this      Current instance of the BP_XProfile_Field_Type class.
     257         * @param bool                   $validated  Whether or not the field type is valid.
     258         * @param string|array           $values     Value to check against the registered formats.
     259         * @param BP_XProfile_Field_Type $field_type Current instance of the field type class.
    261260         */
    262261        return (bool) apply_filters( 'bp_xprofile_field_type_is_valid', $validated, $values, $this );
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-field.php

    r13231 r13372  
    197197         * @since 8.0.0
    198198         *
    199          * @param BP_XProfile_Field $this The xProfile field object.
     199         * @param BP_XProfile_Field $field The xProfile field object.
    200200         */
    201201        do_action( 'bp_xprofile_field', $this );
     
    367367         * @since 3.0.0
    368368         *
    369          * @param BP_XProfile_Field $this        Current instance of the field being deleted. Passed by reference.
     369         * @param BP_XProfile_Field $field       Current instance of the field being deleted. Passed by reference.
    370370         * @param bool              $delete_data Whether or not to delete data.
    371371         */
     
    392392         * @since 3.0.0
    393393         *
    394          * @param BP_XProfile_Field $this        Current instance of the field being deleted. Passed by reference.
     394         * @param BP_XProfile_Field $field       Current instance of the field being deleted. Passed by reference.
    395395         * @param bool              $delete_data Whether or not to delete data.
    396396         */
     
    433433         * @since 1.0.0
    434434         *
    435          * @param BP_XProfile_Field $this Current instance of the field being saved.
     435         * @param BP_XProfile_Field $field Current instance of the field being saved.
    436436         */
    437437        do_action_ref_array( 'xprofile_field_before_save', array( $this ) );
     
    484484                 * @since 1.5.0
    485485                 *
    486                  * @param string            $post_option Submitted option value.
    487                  * @param BP_XProfile_Field $type        Current field type being saved for.
     486                 * @param string $post_option Submitted option value.
     487                 * @param string $type        Current field type being saved for.
    488488                 */
    489                 $options      = apply_filters( 'xprofile_field_options_before_save', $post_option, $this->type );
     489                $options = apply_filters( 'xprofile_field_options_before_save', $post_option, $this->type );
    490490
    491491                /**
     
    494494                 * @since 1.5.0
    495495                 *
    496                  * @param string            $post_default Default option value.
    497                  * @param BP_XProfile_Field $type         Current field type being saved for.
     496                 * @param string $post_default Default option value.
     497                 * @param string $type         Current field type being saved for.
    498498                 */
    499                 $defaults     = apply_filters( 'xprofile_field_default_before_save', $post_default, $this->type );
     499                $defaults = apply_filters( 'xprofile_field_default_before_save', $post_default, $this->type );
    500500
    501501                $counter = 1;
     
    531531             * @since 1.0.0
    532532             *
    533              * @param BP_XProfile_Field $this Current instance of the field being saved.
     533             * @param BP_XProfile_Field $field Current instance of the field being saved.
    534534             */
    535535            do_action_ref_array( 'xprofile_field_after_save', array( $this ) );
     
    594594         *
    595595         * @since 1.2.5
    596          * @since 3.0.0 Added the `$this` parameter.
     596         * @since 3.0.0 Added the `$field_object` parameter.
    597597         *
    598598         * @param array             $children     Found children for a field.
     
    740740         * @since 2.4.0
    741741         *
    742          * @param BP_XProfile_Field $this Field object.
     742         * @param BP_XProfile_Field $field Current instance of the field.
    743743         */
    744744        do_action( 'bp_xprofile_field_set_member_type', $this );
     
    910910         *
    911911         * @param bool              $do_autolink The autolink property of the field.
    912          * @param BP_XProfile_Field $this Field object.
     912         * @param BP_XProfile_Field $field       Current instance of the field.
    913913         */
    914914        return apply_filters( 'bp_xprofile_field_do_autolink', $this->do_autolink, $this );
     
    13181318                             * @since 2.2.0
    13191319                             *
    1320                              * @param BP_XProfile_Field $this Current XProfile field.
     1320                             * @param BP_XProfile_Field $field Current instance of the field.
    13211321                             */
    13221322                            do_action( 'xprofile_field_after_sidebarbox', $this ); ?>
     
    13331333                             * @since 2.3.0
    13341334                             *
    1335                              * @param BP_XProfile_Field $this Current XProfile field.
     1335                             * @param BP_XProfile_Field $field Current instance of the field.
    13361336                             */
    13371337                            do_action( 'xprofile_field_before_contentbox', $this );
     
    13481348                             * @since 2.2.0
    13491349                             *
    1350                              * @param BP_XProfile_Field $this Current XProfile field.
     1350                             * @param BP_XProfile_Field $field Current instance of the field.
    13511351                             */
    13521352                            do_action( 'xprofile_field_after_contentbox', $this ); ?>
     
    14371437         * @since 2.1.0
    14381438         *
    1439          * @param BP_XProfile_Field $this Current XProfile field.
     1439         * @param BP_XProfile_Field $field Current instance of the field.
    14401440         */
    14411441        do_action( 'xprofile_field_before_submitbox', $this ); ?>
     
    14541454                         * @since 2.1.0
    14551455                         *
    1456                          * @param BP_XProfile_Field $this Current XProfile field.
     1456                         * @param BP_XProfile_Field $field Current instance of the field.
    14571457                         */
    14581458                        do_action( 'xprofile_field_submitbox_start', $this ); ?>
     
    14911491         * @since 2.1.0
    14921492         *
    1493          * @param BP_XProfile_Field $this Current XProfile field.
     1493         * @param BP_XProfile_Field $field Current instance of the field.
    14941494         */
    14951495        do_action( 'xprofile_field_after_submitbox', $this );
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-group.php

    r13358 r13372  
    135135         * @since 1.0.0
    136136         *
    137          * @param BP_XProfile_Group $this Current instance of the group being saved. Passed by reference.
     137         * @param BP_XProfile_Group $field_group Current instance of the field group being saved. Passed by reference.
    138138         */
    139139        do_action_ref_array( 'xprofile_group_before_save', array( &$this ) );
     
    166166         * @since 1.0.0
    167167         *
    168          * @param BP_XProfile_Group $this Current instance of the group being saved. Passed by reference.
     168         * @param BP_XProfile_Group $field_group Current instance of the field group being saved. Passed by reference.
    169169         */
    170170        do_action_ref_array( 'xprofile_group_after_save', array( &$this ) );
     
    195195         * @since 2.0.0
    196196         *
    197          * @param BP_XProfile_Group $this Current instance of the group being deleted. Passed by reference.
     197         * @param BP_XProfile_Group $field_group Current instance of the field group being deleted. Passed by reference.
    198198         */
    199199        do_action_ref_array( 'xprofile_group_before_delete', array( &$this ) );
     
    224224         * @since 2.0.0
    225225         *
    226          * @param BP_XProfile_Group $this Current instance of the group being deleted. Passed by reference.
     226         * @param BP_XProfile_Group $field_group Current instance of the field group being deleted. Passed by reference.
    227227         */
    228228        do_action_ref_array( 'xprofile_group_after_delete', array( &$this ) );
     
    911911                             * @since 2.6.0
    912912                             *
    913                              * @param BP_XProfile_Group $this Current XProfile group.
     913                             * @param BP_XProfile_Group $field_group Current instance of the field group.
    914914                             */
    915915                            do_action( 'xprofile_group_admin_after_description', $this ); ?>
     
    926926                             * @since 2.1.0
    927927                             *
    928                              * @param BP_XProfile_Group $this Current XProfile group.
     928                             * @param BP_XProfile_Group $field_group Current instance of the field group.
    929929                             */
    930930                            do_action( 'xprofile_group_before_submitbox', $this ); ?>
     
    946946                                             * @since 2.1.0
    947947                                             *
    948                                              * @param BP_XProfile_Group $this Current XProfile group.
     948                                             * @param BP_XProfile_Group $field_group Current instance of the field group.
    949949                                             */
    950950                                            do_action( 'xprofile_group_submitbox_start', $this ); ?>
     
    974974                             * @since 2.1.0
    975975                             *
    976                              * @param BP_XProfile_Group $this Current XProfile group.
     976                             * @param BP_XProfile_Group $field_group Current instance of the field group.
    977977                             */
    978978                            do_action( 'xprofile_group_after_submitbox', $this ); ?>
  • trunk/src/bp-xprofile/classes/class-bp-xprofile-profiledata.php

    r12888 r13372  
    131131            $retval = true;
    132132        } else {
    133             $bp = buddypress();
     133            $bp     = buddypress();
    134134            $retval = $wpdb->get_row( $wpdb->prepare( "SELECT id FROM {$bp->profile->table_name_data} WHERE user_id = %d AND field_id = %d", $this->user_id, $this->field_id ) );
    135135        }
     
    140140         * @since 1.2.7
    141141         *
    142          * @param bool                    $retval Whether or not data already exists.
    143          * @param BP_XProfile_ProfileData $this  Instance of the current BP_XProfile_ProfileData class.
     142         * @param bool                    $retval       Whether or not data already exists.
     143         * @param BP_XProfile_ProfileData $profile_data Instance of the current BP_XProfile_ProfileData class.
    144144         */
    145145        return apply_filters_ref_array( 'xprofile_data_exists', array( (bool)$retval, $this ) );
     
    158158        global $wpdb;
    159159
    160         $bp = buddypress();
    161 
     160        $bp     = buddypress();
    162161        $retval = $wpdb->get_row( $wpdb->prepare( "SELECT id FROM {$bp->profile->table_name_fields} WHERE id = %d", $this->field_id ) );
    163162
     
    167166         * @since 1.2.7
    168167         *
    169          * @param bool                    $retval Whether or not data is valid.
    170          * @param BP_XProfile_ProfileData $this  Instance of the current BP_XProfile_ProfileData class.
     168         * @param bool                    $retval       Whether or not data is valid.
     169         * @param BP_XProfile_ProfileData $profile_data Instance of the current BP_XProfile_ProfileData class.
    171170         */
    172171        return apply_filters_ref_array( 'xprofile_data_is_valid_field', array( (bool)$retval, $this ) );
     
    211210         * @since 2.1.0 Added `$reserialize` and `$this` parameters.
    212211         *
    213          * @param string                  $field_value The field value.
    214          * @param int                     $data_id     The field data ID.
    215          * @param bool                    $reserialize Whether to reserialize arrays before returning. Defaults to true.
    216          * @param BP_XProfile_ProfileData $this        Current instance of the profile data being saved.
     212         * @param string                  $field_value  The field value.
     213         * @param int                     $data_id      The field data ID.
     214         * @param bool                    $reserialize  Whether to reserialize arrays before returning. Defaults to true.
     215         * @param BP_XProfile_ProfileData $profile_data Current instance of the profile data being saved.
    217216         */
    218217        $this->value = apply_filters( 'xprofile_data_value_before_save', $this->value, $this->id, true, $this );
     
    235234         * @since 1.0.0
    236235         *
    237          * @param BP_XProfile_ProfileData $this Current instance of the profile data being saved.
     236         * @param BP_XProfile_ProfileData $profile_data Current instance of the profile data being saved.
    238237         */
    239238        do_action_ref_array( 'xprofile_data_before_save', array( $this ) );
     
    261260             * @since 1.0.0
    262261             *
    263              * @param BP_XProfile_ProfileData $this Current instance of the profile data being saved.
     262             * @param BP_XProfile_ProfileData $profile_data Current instance of the profile data being saved.
    264263             */
    265264            do_action_ref_array( 'xprofile_data_after_save', array( $this ) );
     
    290289         * @since 1.9.0
    291290         *
    292          * @param BP_XProfile_ProfileData $this Current instance of the profile data being deleted.
     291         * @param BP_XProfile_ProfileData $profile_data Current instance of the profile data being deleted.
    293292         */
    294293        do_action_ref_array( 'xprofile_data_before_delete', array( $this ) );
     
    304303         * @since 1.9.0
    305304         *
    306          * @param BP_XProfile_ProfileData $this Current instance of the profile data being deleted.
     305         * @param BP_XProfile_ProfileData $profile_data Current instance of the profile data being deleted.
    307306         */
    308307        do_action_ref_array( 'xprofile_data_after_delete', array( $this ) );
Note: See TracChangeset for help on using the changeset viewer.