Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (9 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/rewrite/permastructs.php

    r36183 r42343  
    1212        }
    1313
    14         public function test_add_permastruct(  ) {
     14        public function test_add_permastruct() {
    1515                global $wp_rewrite;
    1616
    1717                add_permastruct( 'foo', 'bar/%foo%' );
    18                 $this->assertEqualSetsWithIndex( array(
    19                         'with_front'  => true,
    20                         'ep_mask'     => EP_NONE,
    21                         'paged'       => true,
    22                         'feed'        => true,
    23                         'walk_dirs'   => true,
    24                         'endpoints'   => true,
    25                         'forcomments' => false,
    26                         'struct'      => '/bar/%foo%',
    27                 ), $wp_rewrite->extra_permastructs['foo'] );
     18                $this->assertEqualSetsWithIndex(
     19                        array(
     20                                'with_front'  => true,
     21                                'ep_mask'     => EP_NONE,
     22                                'paged'       => true,
     23                                'feed'        => true,
     24                                'walk_dirs'   => true,
     25                                'endpoints'   => true,
     26                                'forcomments' => false,
     27                                'struct'      => '/bar/%foo%',
     28                        ), $wp_rewrite->extra_permastructs['foo']
     29                );
    2830        }
    2931
    30         public function test_remove_permastruct(  ) {
     32        public function test_remove_permastruct() {
    3133                global $wp_rewrite;
    3234
Note: See TracChangeset for help on using the changeset viewer.