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

    r40417 r42343  
    1313        $this->cpt_name = 'post_type_test';
    1414        $this->cpt_args = array(
    15             'public' => false,
    16             'show_ui' => true,
    17             'show_in_menu' => true,
     15            'public'        => false,
     16            'show_ui'       => true,
     17            'show_in_menu'  => true,
    1818            'menu_position' => 7,
    19             'menu_icon' => 'cpt_icon.png',
    20             'taxonomies' => array( 'category', 'post_tag' ),
    21             'hierarchical' => true
     19            'menu_icon'     => 'cpt_icon.png',
     20            'taxonomies'    => array( 'category', 'post_tag' ),
     21            'hierarchical'  => true,
    2222        );
    2323        register_post_type( $this->cpt_name, $this->cpt_args );
     
    127127        $this->assertEquals( $this->cpt_name, $result['name'] );
    128128        foreach ( $this->cpt_args as $key => $value ) {
    129             $this->assertEquals( $value, $result[$key] );
     129            $this->assertEquals( $value, $result[ $key ] );
    130130        }
    131131    }
Note: See TracChangeset for help on using the changeset viewer.