Make WordPress Core


Ignore:
Timestamp:
01/12/2019 06:05:55 AM (8 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/functions.php

    r44546 r44573  
    88                $x        = new MockClass;
    99                $x->_baba = 5;
    10                 $x->yZ    = 'baba';
     10                $x->yZ    = 'baba'; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar
    1111                $x->a     = array( 5, 111, 'x' );
    1212                $this->assertEquals(
    … …  
    4444                $x        = new MockClass;
    4545                $x->_baba = 5;
    46                 $x->yZ    = 'baba';
     46                $x->yZ    = 'baba'; // phpcs:ignore WordPress.NamingConventions.ValidVariableName.NotSnakeCaseMemberVar
    4747                $x->a     = array( 5, 111, 'x' );
    4848                $d        = array( 'pu' => 'bu' );
Note: See TracChangeset for help on using the changeset viewer.