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/src/wp-includes/class-wp-text-diff-renderer-inline.php

    r38352 r42343  
    2424     * @return string
    2525     */
    26     public function _splitOnWords($string, $newlineEscape = "\n") {
    27         $string = str_replace("\0", '', $string);
     26    public function _splitOnWords( $string, $newlineEscape = "\n" ) {
     27        $string = str_replace( "\0", '', $string );
    2828        $words  = preg_split( '/([^\w])/u', $string, -1, PREG_SPLIT_DELIM_CAPTURE );
    2929        $words  = str_replace( "\n", $newlineEscape, $words );
Note: See TracChangeset for help on using the changeset viewer.