WordPress.org

Make WordPress Core


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

    r32912 r42343  
    1717    function test_wp_htmledit_pre_charset_iso_8859_1() {
    1818        add_filter( 'pre_option_blog_charset', array( $this, '_charset_iso_8859_1' ) );
    19         $iso8859_1 = 'Fran' .chr(135) .'ais';
     19        $iso8859_1 = 'Fran' . chr( 135 ) . 'ais';
    2020        $this->assertEquals( $iso8859_1, wp_htmledit_pre( $iso8859_1 ) );
    2121        remove_filter( 'pre_option_blog_charset', array( $this, '_charset_iso_8859_1' ) );
     
    3131    function test_wp_htmledit_pre_charset_utf_8() {
    3232        add_filter( 'pre_option_blog_charset', array( $this, '_charset_utf_8' ) );
    33         $utf8 = 'Fran' .chr(195) . chr(167) .'ais';
     33        $utf8 = 'Fran' . chr( 195 ) . chr( 167 ) . 'ais';
    3434        $this->assertEquals( $utf8, wp_htmledit_pre( $utf8 ) );
    3535        remove_filter( 'pre_option_blog_charset', array( $this, '_charset_utf_8' ) );
Note: See TracChangeset for help on using the changeset viewer.