WordPress.org

Make WordPress Core


Ignore:
Timestamp:
07/08/2019 12:55:20 AM (2 years ago)
Author:
pento
Message:

Coding Standards: Fix the remaining issues in /tests.

All PHP files in /tests now conform to the PHP coding standards, or have exceptions appropriately marked.

Travis now also runs phpcs on the /tests directory, any future changes to these files must conform entirely to the WordPress PHP coding standards. 🎉

See #47632.

File:
1 edited

Legend:

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

    r44966 r45607  
    244244            foreach ( $themes as $name => $theme ) {
    245245                // switch to this theme
    246                 if ( $i === 2 ) {
     246                if ( 2 === $i ) {
    247247                    switch_theme( $theme['Template'], $theme['Stylesheet'] );
    248248                } else {
Note: See TracChangeset for help on using the changeset viewer.