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