WordPress.org

Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (21 months 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-for-blog.php

    r40968 r42343  
    1717        parent::__construct( $factory );
    1818        $this->default_generation_definitions = array(
    19             'domain' => $current_site->domain,
    20             'path' => new WP_UnitTest_Generator_Sequence( $base . 'testpath%s' ),
    21             'title' => new WP_UnitTest_Generator_Sequence( 'Site %s' ),
     19            'domain'  => $current_site->domain,
     20            'path'    => new WP_UnitTest_Generator_Sequence( $base . 'testpath%s' ),
     21            'title'   => new WP_UnitTest_Generator_Sequence( 'Site %s' ),
    2222            'site_id' => $current_site->id,
    2323        );
     
    2626    function create_object( $args ) {
    2727        global $wpdb;
    28         $meta = isset( $args['meta'] ) ? $args['meta'] : array( 'public' => 1 );
     28        $meta    = isset( $args['meta'] ) ? $args['meta'] : array( 'public' => 1 );
    2929        $user_id = isset( $args['user_id'] ) ? $args['user_id'] : get_current_user_id();
    3030        // temp tables will trigger db errors when we attempt to reference them as new temp tables
    3131        $suppress = $wpdb->suppress_errors();
    32         $blog = wpmu_create_blog( $args['domain'], $args['path'], $args['title'], $user_id, $meta, $args['site_id'] );
     32        $blog     = wpmu_create_blog( $args['domain'], $args['path'], $args['title'], $user_id, $meta, $args['site_id'] );
    3333        $wpdb->suppress_errors( $suppress );
    3434
Note: See TracChangeset for help on using the changeset viewer.