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/oembed/getResponseData.php

    r42343 r43571  
    3030                'height'        => 225,
    3131                'html'          => get_post_embed_html( 400, 225, $post ),
    32             ), $data
     32            ),
     33            $data
    3334        );
    3435    }
     
    6566                'height'        => 225,
    6667                'html'          => get_post_embed_html( 400, 225, $post ),
    67             ), $data
     68            ),
     69            $data
    6870        );
    6971    }
     
    8991                'title'         => 'Some Post',
    9092                'type'          => 'link',
    91             ), $data
     93            ),
     94            $data
    9295        );
    9396
     
    162165        $file          = DIR_TESTDATA . '/images/canola.jpg';
    163166        $attachment_id = self::factory()->attachment->create_object(
    164             $file, $post->ID, array(
     167            $file,
     168            $post->ID,
     169            array(
    165170                'post_mime_type' => 'image/jpeg',
    166171            )
     
    180185        $file   = DIR_TESTDATA . '/images/canola.jpg';
    181186        $post   = self::factory()->attachment->create_object(
    182             $file, $parent, array(
     187            $file,
     188            $parent,
     189            array(
    183190                'post_mime_type' => 'image/jpeg',
    184191            )
Note: See TracChangeset for help on using the changeset viewer.