Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (8 years 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/tests/comment/template.php

    r37997 r42343  
    1919
    2020    function test_get_comments_number_without_arg() {
    21         $post_id = self::factory()->post->create();
     21        $post_id   = self::factory()->post->create();
    2222        $permalink = get_permalink( $post_id );
    2323        $this->go_to( $permalink );
     
    3535     */
    3636    function test_get_comments_number_text_declension_with_default_args() {
    37         $post_id = $this->factory->post->create();
     37        $post_id   = $this->factory->post->create();
    3838        $permalink = get_permalink( $post_id );
    3939        $this->go_to( $permalink );
     
    5858     */
    5959    function test_get_comments_number_text_declension_with_custom_args( $number, $input, $output ) {
    60         $post_id = $this->factory->post->create();
     60        $post_id   = $this->factory->post->create();
    6161        $permalink = get_permalink( $post_id );
    6262
     
    110110                2,
    111111                '2 Comments<span class="screen-reader-text"> on Hello % world!</span>',
    112                 '2 Comments<span class="screen-reader-text"> on Hello 2 world!</span>' // See #WP37103
     112                '2 Comments<span class="screen-reader-text"> on Hello 2 world!</span>', // See #WP37103
    113113            ),
    114114            array(
Note: See TracChangeset for help on using the changeset viewer.