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-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 );
Note: See TracChangeset for help on using the changeset viewer.