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/LikeEscape.php

    r28714 r42343  
    1111    function test_like_escape() {
    1212
    13         $inputs = array(
     13        $inputs   = array(
    1414            'howdy%', //Single Percent
    1515            'howdy_', //Single Underscore
     
    1818        );
    1919        $expected = array(
    20             "howdy\\%",
     20            'howdy\\%',
    2121            'howdy\\_',
    2222            'howdy\\',
    23             'howdy\\howdy\\%howdy\\_'
     23            'howdy\\howdy\\%howdy\\_',
    2424        );
    2525
    26         foreach ($inputs as $key => $input) {
    27             $this->assertEquals($expected[$key], like_escape($input));
     26        foreach ( $inputs as $key => $input ) {
     27            $this->assertEquals( $expected[ $key ], like_escape( $input ) );
    2828        }
    2929    }
Note: See TracChangeset for help on using the changeset viewer.