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/l10n/getLocale.php

    r40564 r42343  
    1212        $locale = 'foo';
    1313
    14         $found = get_locale();
     14        $found  = get_locale();
    1515        $locale = $old_locale;
    1616
     
    2424        global $locale;
    2525        $old_locale = $locale;
    26         $locale = null;
     26        $locale     = null;
    2727
    2828        update_option( 'WPLANG', 'en_GB' );
    2929        update_site_option( 'WPLANG', 'es_ES' );
    3030
    31         $found = get_locale();
     31        $found  = get_locale();
    3232        $locale = $old_locale;
    3333
     
    4545        global $locale;
    4646        $old_locale = $locale;
    47         $locale = null;
     47        $locale     = null;
    4848
    4949        update_site_option( 'WPLANG', 'es_ES' );
    5050
    51         $found = get_locale();
     51        $found  = get_locale();
    5252        $locale = $old_locale;
    5353
     
    6565        global $locale;
    6666        $old_locale = $locale;
    67         $locale = null;
     67        $locale     = null;
    6868
    6969        update_option( 'WPLANG', 'es_ES' );
    7070
    71         $found = get_locale();
     71        $found  = get_locale();
    7272        $locale = $old_locale;
    7373
     
    7979        global $locale;
    8080        $old_locale = $locale;
    81         $locale = null;
     81        $locale     = null;
    8282
    83         $found = get_locale();
     83        $found  = get_locale();
    8484        $locale = $old_locale;
    8585
Note: See TracChangeset for help on using the changeset viewer.