X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=languages%2Futils%2FCLDRPluralRuleEvaluator.php;h=43e8aaf7d337c8b01d055a2c1172e7d64010271e;hb=331bcf6ac9a5df389a0196ee71418d7620d34278;hp=1910aafa5531b2ee156ce99924200aaadaf0df1c;hpb=055549284f4726c4f8984d8c78a0cb5e676f72f5;p=lhc%2Fweb%2Fwiklou.git diff --git a/languages/utils/CLDRPluralRuleEvaluator.php b/languages/utils/CLDRPluralRuleEvaluator.php index 1910aafa55..43e8aaf7d3 100644 --- a/languages/utils/CLDRPluralRuleEvaluator.php +++ b/languages/utils/CLDRPluralRuleEvaluator.php @@ -67,7 +67,7 @@ class CLDRPluralRuleEvaluator { public static function evaluateCompiled( $number, array $rules ) { // The compiled form is RPN, with tokens strictly delimited by // spaces, so this is a simple RPN evaluator. - foreach ( $rules as $i => $rule ) { + foreach ( $rules as $i => $rule ) { $stack = array(); $zero = ord( '0' ); $nine = ord( '9' ); @@ -104,7 +104,7 @@ class CLDRPluralRuleEvaluator { */ private static function doOperation( $token, $left, $right ) { if ( in_array( $token, array( 'in', 'not-in', 'within', 'not-within' ) ) ) { - if ( !($right instanceof CLDRPluralRuleEvaluator_Range ) ) { + if ( !( $right instanceof CLDRPluralRuleEvaluator_Range ) ) { $right = new CLDRPluralRuleEvaluator_Range( $right ); } }