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/includes/factory/class-wp-unittest-factory.php

    r37563 r42343  
    6060
    6161        function __construct() {
    62                 $this->post = new WP_UnitTest_Factory_For_Post( $this );
     62                $this->post       = new WP_UnitTest_Factory_For_Post( $this );
    6363                $this->attachment = new WP_UnitTest_Factory_For_Attachment( $this );
    64                 $this->comment = new WP_UnitTest_Factory_For_Comment( $this );
    65                 $this->user = new WP_UnitTest_Factory_For_User( $this );
    66                 $this->term = new WP_UnitTest_Factory_For_Term( $this );
    67                 $this->category = new WP_UnitTest_Factory_For_Term( $this, 'category' );
    68                 $this->tag = new WP_UnitTest_Factory_For_Term( $this, 'post_tag' );
    69                 $this->bookmark = new WP_UnitTest_Factory_For_Bookmark( $this );
     64                $this->comment    = new WP_UnitTest_Factory_For_Comment( $this );
     65                $this->user       = new WP_UnitTest_Factory_For_User( $this );
     66                $this->term       = new WP_UnitTest_Factory_For_Term( $this );
     67                $this->category   = new WP_UnitTest_Factory_For_Term( $this, 'category' );
     68                $this->tag        = new WP_UnitTest_Factory_For_Term( $this, 'post_tag' );
     69                $this->bookmark   = new WP_UnitTest_Factory_For_Bookmark( $this );
    7070                if ( is_multisite() ) {
    71                         $this->blog = new WP_UnitTest_Factory_For_Blog( $this );
     71                        $this->blog    = new WP_UnitTest_Factory_For_Blog( $this );
    7272                        $this->network = new WP_UnitTest_Factory_For_Network( $this );
    7373                }
Note: See TracChangeset for help on using the changeset viewer.