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/customize/manager.php

    r45588 r45607  
    26692669    function filter_customize_dynamic_setting_args_for_test_dynamic_settings( $setting_args, $setting_id ) {
    26702670        $this->assertInternalType( 'string', $setting_id );
    2671         if ( in_array( $setting_id, array( 'foo', 'bar' ) ) ) {
     2671        if ( in_array( $setting_id, array( 'foo', 'bar' ), true ) ) {
    26722672            $setting_args = array( 'default' => "dynamic_{$setting_id}_default" );
    26732673        }
Note: See TracChangeset for help on using the changeset viewer.