WordPress.org

Make WordPress Core


Ignore:
Timestamp:
08/17/2018 01:50:26 AM (3 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/http/base.php

    r43512 r43571  
    138138        // Redirections on HEAD request when Requested
    139139        $res = wp_remote_request(
    140             $this->redirection_script . '?rt=' . 5, array(
     140            $this->redirection_script . '?rt=' . 5,
     141            array(
    141142                'redirection' => 5,
    142143                'method'      => 'HEAD',
     
    209210        // Test 301 - POST to POST
    210211        $res = wp_remote_request(
    211             $url, array(
     212            $url,
     213            array(
    212214                'method'  => 'PUT',
    213215                'timeout' => 30,
     
    256258        $size = 153204;
    257259        $res  = wp_remote_request(
    258             $url, array(
     260            $url,
     261            array(
    259262                'stream'  => true,
    260263                'timeout' => 30,
     
    283286        $size = 10000;
    284287        $res  = wp_remote_request(
    285             $url, array(
     288            $url,
     289            array(
    286290                'stream'              => true,
    287291                'timeout'             => 30,
     
    312316
    313317        $res = wp_remote_request(
    314             $url, array(
     318            $url,
     319            array(
    315320                'timeout'             => 30,
    316321                'limit_response_size' => $size,
Note: See TracChangeset for help on using the changeset viewer.