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/date/query.php

    r42343 r43571  
    396396
    397397        $found = $q->build_value(
    398             'BETWEEN', array(
     398            'BETWEEN',
     399            array(
    399400                2 => 4,
    400401                3 => 5,
     
    456457
    457458        $found = $q->build_value(
    458             'NOT BETWEEN', array(
     459            'NOT BETWEEN',
     460            array(
    459461                2 => 4,
    460462                3 => 5,
     
    514516            array(
    515517                'year' => 2011,
    516             ), true
     518            ),
     519            true
    517520        );
    518521        $this->assertSame( '2011-12-31 23:59:59', $found );
     
    525528            array(
    526529                'year' => 2011,
    527             ), false
     530            ),
     531            false
    528532        );
    529533        $this->assertSame( '2011-01-01 00:00:00', $found );
     
    536540            array(
    537541                'year' => 2011,
    538             ), false
     542            ),
     543            false
    539544        );
    540545        $this->assertSame( '2011-01-01 00:00:00', $found );
Note: See TracChangeset for help on using the changeset viewer.