Make WordPress Core


Ignore:
Timestamp:
08/17/2018 01:50:26 AM (6 years ago)
Author:
pento
Message:

Coding Standards: Upgrade WPCS to 1.0.0

WPCS 1.0.0 includes a bunch of new auto-fixers, which drops the number of coding standards issues across WordPress significantly. Prior to running the auto-fixers, there were 15,312 issues detected. With this commit, we now drop to 4,769 issues.

This change includes three notable additions:

  • Multiline function calls must now put each parameter on a new line.
  • Auto-formatting files is now part of the grunt precommit script.
  • Auto-fixable coding standards issues will now cause Travis failures.

Fixes #44600.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/tests/user/query.php

    r42343 r43571  
    1616    public static function wpSetUpBeforeClass( $factory ) {
    1717        self::$author_ids = $factory->user->create_many(
    18             4, array(
     18            4,
     19            array(
    1920                'role' => 'author',
    2021            )
     
    2223
    2324        self::$sub_ids = $factory->user->create_many(
    24             2, array(
     25            2,
     26            array(
    2527                'role' => 'subscriber',
    2628            )
     
    2830
    2931        self::$editor_ids = $factory->user->create_many(
    30             3, array(
     32            3,
     33            array(
    3134                'role' => 'editor',
    3235            )
     
    4043
    4144        self::$admin_ids = $factory->user->create_many(
    42             2, array(
     45            2,
     46            array(
    4347                'role' => 'administrator',
    4448            )
Note: See TracChangeset for help on using the changeset viewer.