Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (7 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/formatting/CleanPre.php

    r25409 r42343  
    1212    function test_removes_self_closing_br_with_space() {
    1313        $source = 'a b c\n<br />sldfj<br />';
    14         $res = 'a b c\nsldfj';
     14        $res    = 'a b c\nsldfj';
    1515
    16         $this->assertEquals($res, clean_pre($source));
     16        $this->assertEquals( $res, clean_pre( $source ) );
    1717    }
    1818
    1919    function test_removes_self_closing_br_without_space() {
    2020        $source = 'a b c\n<br/>sldfj<br/>';
    21         $res = 'a b c\nsldfj';
    22         $this->assertEquals($res, clean_pre($source));
     21        $res    = 'a b c\nsldfj';
     22        $this->assertEquals( $res, clean_pre( $source ) );
    2323    }
    2424
     
    2929    function test_removes_html_br() {
    3030        $source = 'a b c\n<br>sldfj<br>';
    31         $res = 'a b c\nsldfj';
    32         $this->assertEquals($res, clean_pre($source));
     31        $res    = 'a b c\nsldfj';
     32        $this->assertEquals( $res, clean_pre( $source ) );
    3333    }
    3434
    3535    function test_removes_p() {
    3636        $source = "<p>isn't this exciting!</p><p>oh indeed!</p>";
    37         $res = "\nisn't this exciting!\noh indeed!";
    38         $this->assertEquals($res, clean_pre($source));
     37        $res    = "\nisn't this exciting!\noh indeed!";
     38        $this->assertEquals( $res, clean_pre( $source ) );
    3939    }
    4040}
Note: See TracChangeset for help on using the changeset viewer.