Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (8 years ago)
Author:
pento
Message:

Code is Poetry.
WordPress' code just... wasn't.
This is now dealt with.

Props jrf, pento, netweb, GaryJ, jdgrimes, westonruter, Greg Sherwood from PHPCS, and everyone who's ever contributed to WPCS and PHPCS.
Fixes #41057.

File:
1 edited

Legend:

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

    r39556 r42343  
    1111
    1212    function test_the_basics() {
    13         $key = 'key1';
    14         $key2 = 'key2';
    15         $value = 'value1';
     13        $key    = 'key1';
     14        $key2   = 'key2';
     15        $value  = 'value1';
    1616        $value2 = 'value2';
    1717
     
    7373
    7474    function test_serialized_data() {
    75         $key = __FUNCTION__;
    76         $value = array( 'foo' => true, 'bar' => true );
     75        $key   = __FUNCTION__;
     76        $value = array(
     77            'foo' => true,
     78            'bar' => true,
     79        );
    7780
    7881        $this->assertTrue( add_option( $key, $value ) );
     
    115118    function data_option_autoloading() {
    116119        return array(
    117             array( 'autoload_yes',    'yes',  'yes' ),
    118             array( 'autoload_true',   true,    'yes' ),
    119             array( 'autoload_string', 'foo',   'yes' ),
    120             array( 'autoload_int',    123456, 'yes' ),
    121             array( 'autoload_array',  array(), 'yes' ),
    122             array( 'autoload_no',     'no',    'no' ),
    123             array( 'autoload_false',  false,   'no' ),
     120            array( 'autoload_yes', 'yes', 'yes' ),
     121            array( 'autoload_true', true, 'yes' ),
     122            array( 'autoload_string', 'foo', 'yes' ),
     123            array( 'autoload_int', 123456, 'yes' ),
     124            array( 'autoload_array', array(), 'yes' ),
     125            array( 'autoload_no', 'no', 'no' ),
     126            array( 'autoload_false', false, 'no' ),
    124127        );
    125128    }
Note: See TracChangeset for help on using the changeset viewer.