Make WordPress Core


Ignore:
Timestamp:
11/30/2017 11:09:33 PM (6 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/includes/plural-form-function.php

    r41730 r42343  
    99function tests_make_plural_form_function( $nplurals, $expression ) {
    1010    $expression = str_replace( 'n', '$n', $expression );
    11     $func_body = "
     11    $func_body  = "
    1212        \$index = (int)($expression);
    1313        return (\$index < $nplurals)? \$index : $nplurals - 1;";
Note: See TracChangeset for help on using the changeset viewer.