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

    r25002 r42343  
    1313     */
    1414    function test_percent_encodes_non_reserved_characters( $utf8, $urlencoded ) {
    15         $this->assertEquals($urlencoded, utf8_uri_encode( $utf8 ) );
     15        $this->assertEquals( $urlencoded, utf8_uri_encode( $utf8 ) );
    1616    }
    1717
     
    2525
    2626    function data() {
    27         $utf8_urls  = file( DIR_TESTDATA . '/formatting/utf-8/utf-8.txt' );
    28         $urlencoded = file( DIR_TESTDATA . '/formatting/utf-8/urlencoded.txt' );
    29         $data_provided = array();
     27        $utf8_urls     = file( DIR_TESTDATA . '/formatting/utf-8/utf-8.txt' );
     28        $urlencoded    = file( DIR_TESTDATA . '/formatting/utf-8/urlencoded.txt' );
     29        $data_provided = array();
    3030        foreach ( $utf8_urls as $key => $value ) {
    3131            $data_provided[] = array( trim( $value ), trim( $urlencoded[ $key ] ) );
Note: See TracChangeset for help on using the changeset viewer.