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/xmlrpc/wp/getTerm.php

    r41684 r42343  
    99
    1010    public static function wpSetUpBeforeClass( WP_UnitTest_Factory $factory ) {
    11         self::$term_id = $factory->term->create( array(
    12             'taxonomy' => 'category',
    13         ) );
     11        self::$term_id = $factory->term->create(
     12            array(
     13                'taxonomy' => 'category',
     14            )
     15        );
    1416    }
    1517
     
    5456        $this->assertIXRError( $result );
    5557        $this->assertEquals( 500, $result->code );
    56         $this->assertEquals( __('Empty Term.'), $result->message );
     58        $this->assertEquals( __( 'Empty Term.' ), $result->message );
    5759    }
    5860
     
    6971        $this->make_user_by_role( 'editor' );
    7072
    71         $term = get_term( self::$term_id, 'category', ARRAY_A );
     73        $term                  = get_term( self::$term_id, 'category', ARRAY_A );
    7274        $term['custom_fields'] = array();
    7375
     
    109111        $term = get_term( self::$term_id, 'category', ARRAY_A );
    110112
    111         $result = $this->myxmlrpcserver->wp_getTerm( array(
    112             1,
    113             'editor',
    114             'editor',
    115             'category',
    116             self::$term_id,
    117         ) );
     113        $result = $this->myxmlrpcserver->wp_getTerm(
     114            array(
     115                1,
     116                'editor',
     117                'editor',
     118                'category',
     119                self::$term_id,
     120            )
     121        );
    118122        $this->assertNotIXRError( $result );
    119123
Note: See TracChangeset for help on using the changeset viewer.