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/loadTextdomain.php

    r39127 r42343  
    1010
    1111    public static function wpSetUpBeforeClass( $factory ) {
    12         self::$user_id = $factory->user->create( array(
    13             'role'   => 'administrator',
    14             'locale' => 'de_DE',
    15         ) );
     12        self::$user_id = $factory->user->create(
     13            array(
     14                'role'   => 'administrator',
     15                'locale' => 'de_DE',
     16            )
     17        );
    1618    }
    1719
     
    3840    }
    3941
    40     public function test_is_textdomain_loaded(  ) {
    41         $this->assertFalse( is_textdomain_loaded( 'wp-tests-domain' ) );
    42     }
    43 
    44     public function test_unload_textdomain(  ) {
     42    public function test_is_textdomain_loaded() {
     43        $this->assertFalse( is_textdomain_loaded( 'wp-tests-domain' ) );
     44    }
     45
     46    public function test_unload_textdomain() {
    4547        $this->assertFalse( unload_textdomain( 'wp-tests-domain' ) );
    4648    }
     
    5456    }
    5557
    56     public function test_is_textdomain_loaded_after_loading(  ) {
     58    public function test_is_textdomain_loaded_after_loading() {
    5759        load_textdomain( 'wp-tests-domain', DIR_TESTDATA . '/pomo/simple.mo' );
    5860
     
    6466    }
    6567
    66     public function test_unload_textdomain_after_loading(  ) {
     68    public function test_unload_textdomain_after_loading() {
    6769        load_textdomain( 'wp-tests-domain', DIR_TESTDATA . '/pomo/simple.mo' );
    6870
     
    7072    }
    7173
    72     public function test_is_textdomain_loaded_after_unloading(  ) {
     74    public function test_is_textdomain_loaded_after_unloading() {
    7375        load_textdomain( 'wp-tests-domain', DIR_TESTDATA . '/pomo/simple.mo' );
    7476
     
    8890     * @ticket 21319
    8991     */
    90     public function test_is_textdomain_loaded_non_existent_file(  ) {
     92    public function test_is_textdomain_loaded_non_existent_file() {
    9193        load_textdomain( 'wp-tests-domain', DIR_TESTDATA . '/non-existent-file' );
    9294
     
    9799     * @ticket 21319
    98100     */
    99     public function test_get_translations_for_domain_non_existent_file(  ) {
     101    public function test_get_translations_for_domain_non_existent_file() {
    100102        load_textdomain( 'wp-tests-domain', DIR_TESTDATA . '/non-existent-file' );
    101103
Note: See TracChangeset for help on using the changeset viewer.