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/formatting/UrlEncodedToEntities.php

    r31734 r42343  
    99     */
    1010    function test_convert_urlencoded_to_entities( $u_urlencoded, $entity ) {
    11         $this->assertEquals( $entity, preg_replace_callback('/\%u([0-9A-F]{4,5})/', '_convert_urlencoded_to_entities', $u_urlencoded ), $entity );
     11        $this->assertEquals( $entity, preg_replace_callback( '/\%u([0-9A-F]{4,5})/', '_convert_urlencoded_to_entities', $u_urlencoded ), $entity );
    1212    }
    1313
    1414    function data() {
    15         $input  = file( DIR_TESTDATA . '/formatting/utf-8/u-urlencoded.txt' );
    16         $output = file( DIR_TESTDATA . '/formatting/utf-8/entitized.txt' );
     15        $input         = file( DIR_TESTDATA . '/formatting/utf-8/u-urlencoded.txt' );
     16        $output        = file( DIR_TESTDATA . '/formatting/utf-8/entitized.txt' );
    1717        $data_provided = array();
    1818        foreach ( $input as $key => $value ) {
Note: See TracChangeset for help on using the changeset viewer.