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

    r40520 r42343  
    1111        parent::setUp();
    1212
    13         $this->user_id = $this->factory()->user->create( array(
    14             'role'   => 'administrator',
    15             'locale' => 'de_DE',
    16         ) );
     13        $this->user_id = $this->factory()->user->create(
     14            array(
     15                'role'   => 'administrator',
     16                'locale' => 'de_DE',
     17            )
     18        );
    1719
    1820        wp_set_current_user( $this->user_id );
     
    8688
    8789    public function test_user_id_argument_with_id() {
    88         $user_id = $this->factory()->user->create( array(
    89             'locale' => 'es_ES',
    90         ) );
     90        $user_id = $this->factory()->user->create(
     91            array(
     92                'locale' => 'es_ES',
     93            )
     94        );
    9195
    9296        $user_locale1 = get_user_locale( $user_id );
     
    101105
    102106    public function test_user_id_argument_with_wp_user_object() {
    103         $user_id = $this->factory()->user->create( array(
    104             'locale' => 'es_ES',
    105         ) );
     107        $user_id = $this->factory()->user->create(
     108            array(
     109                'locale' => 'es_ES',
     110            )
     111        );
    106112
    107113        $user = get_user_by( 'id', $user_id );
Note: See TracChangeset for help on using the changeset viewer.