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

    r32912 r42343  
    1717    function test_wp_richedit_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( '<p>' . $iso8859_1 . "</p>\n", wp_richedit_pre( $iso8859_1 ) );
    2121        remove_filter( 'pre_option_blog_charset', array( $this, '_charset_iso_8859_1' ) );
     
    3131    function test_wp_richedit_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( '<p>' . $utf8 . "</p>\n", wp_richedit_pre( $utf8 ) );
    3535        remove_filter( 'pre_option_blog_charset', array( $this, '_charset_utf_8' ) );
Note: See TracChangeset for help on using the changeset viewer.