Make WordPress Core


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

    r38277 r42343  
    4141        register_taxonomy( 'wptests_tax', 'post' );
    4242
    43         $t1 = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax', 'name' => 'Foo' ) );
    44         $t2 = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax', 'name' => 'Bar') );
     43        $t1 = self::factory()->term->create(
     44            array(
     45                'taxonomy' => 'wptests_tax',
     46                'name'     => 'Foo',
     47            )
     48        );
     49        $t2 = self::factory()->term->create(
     50            array(
     51                'taxonomy' => 'wptests_tax',
     52                'name'     => 'Bar',
     53            )
     54        );
    4555
    4656        $posts = self::factory()->post->create_many( 2 );
     
    5666        register_taxonomy( 'wptests_tax', 'post' );
    5767
    58         $t1 = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax', 'slug' => 'foo' ) );
    59         $t2 = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax', 'slug' => 'bar') );
     68        $t1 = self::factory()->term->create(
     69            array(
     70                'taxonomy' => 'wptests_tax',
     71                'slug'     => 'foo',
     72            )
     73        );
     74        $t2 = self::factory()->term->create(
     75            array(
     76                'taxonomy' => 'wptests_tax',
     77                'slug'     => 'bar',
     78            )
     79        );
    6080
    6181        $posts = self::factory()->post->create_many( 2 );
     
    7191        register_taxonomy( 'wptests_tax', 'post' );
    7292
    73         $t1 = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax', 'slug' => 'foo' ) );
    74         $t2 = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax', 'slug' => 'bar') );
     93        $t1 = self::factory()->term->create(
     94            array(
     95                'taxonomy' => 'wptests_tax',
     96                'slug'     => 'foo',
     97            )
     98        );
     99        $t2 = self::factory()->term->create(
     100            array(
     101                'taxonomy' => 'wptests_tax',
     102                'slug'     => 'bar',
     103            )
     104        );
    75105
    76106        $posts = self::factory()->post->create_many( 2 );
     
    90120        $t = self::factory()->term->create( array( 'taxonomy' => 'wptests_tax' ) );
    91121
    92         $post_ID  = self::factory()->post->create();
     122        $post_ID = self::factory()->post->create();
    93123        wp_set_object_terms( $post_ID, $t, 'wptests_tax' );
    94124
Note: See TracChangeset for help on using the changeset viewer.