Make WordPress Core


Ignore:
Timestamp:
01/12/2019 06:05:55 AM (6 years ago)
Author:
pento
Message:

Coding Standards: Fix and whitelist variable names.

From the WordPress.NamingConventions.ValidVariableName sniff, this commit fixes/whitelists all NotSnakeCaseMemberVar, MemberNotSnakeCase, and StringNotSnakeCase violations. It also fixes a handful of the NotSnakeCase violations.

See #45934.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/user.php

    r43571 r44573  
    200200     */
    201201    public function test_user_unset() {
     202        // phpcs:disable WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar
    202203        $user = new WP_User( self::$author_id );
    203204
     
    208209        $this->assertFalse( isset( $user->customField ) );
    209210        return $user;
     211        // phpcs:enable
    210212    }
    211213
Note: See TracChangeset for help on using the changeset viewer.