Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (7 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/updateOption.php

    r39564 r42343  
    3030
    3131        $before = $wpdb->num_queries;
    32         $value = get_option( 'test_update_option_default' );
    33         $after = $wpdb->num_queries;
     32        $value  = get_option( 'test_update_option_default' );
     33        $after  = $wpdb->num_queries;
    3434
    3535        $this->assertEquals( $before, $after );
     
    5050
    5151        $before = $wpdb->num_queries;
    52         $value = get_option( 'test_update_option_default' );
    53         $after = $wpdb->num_queries;
     52        $value  = get_option( 'test_update_option_default' );
     53        $after  = $wpdb->num_queries;
    5454
    5555        $this->assertEquals( $before, $after );
     
    7070
    7171        $before = $wpdb->num_queries;
    72         $value = get_option( 'test_update_option_default' );
    73         $after = $wpdb->num_queries;
     72        $value  = get_option( 'test_update_option_default' );
     73        $after  = $wpdb->num_queries;
    7474
    7575        // Database has been hit.
     
    9191
    9292        $before = $wpdb->num_queries;
    93         $value = get_option( 'test_update_option_default' );
    94         $after = $wpdb->num_queries;
     93        $value  = get_option( 'test_update_option_default' );
     94        $after  = $wpdb->num_queries;
    9595
    9696        // Database has been hit.
     
    114114
    115115        $before = $wpdb->num_queries;
    116         $value = get_option( 'foo' );
     116        $value  = get_option( 'foo' );
    117117
    118118        $this->assertEquals( $before, $wpdb->num_queries );
     
    135135
    136136        $before = $wpdb->num_queries;
    137         $value = get_option( 'foo' );
     137        $value  = get_option( 'foo' );
    138138
    139139        // 'foo' should still be autoload=yes, so we should see no additional querios.
     
    159159
    160160        $before = $wpdb->num_queries;
    161         $value = get_option( 'foo' );
     161        $value  = get_option( 'foo' );
    162162
    163163        // 'foo' should still be autoload=yes, so we should see no additional querios.
Note: See TracChangeset for help on using the changeset viewer.