From: Siebrand Mazeland Date: Mon, 21 Apr 2014 18:44:40 +0000 (+0200) Subject: Make languages/utils pass phpcs-strict X-Git-Tag: 1.31.0-rc.0~16095^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=9d3d6e499d07bafcb8c809304d186d909c329a3d Make languages/utils pass phpcs-strict Change-Id: I5e6521e30384f46575573647b24217d4301fcd59 --- diff --git a/languages/utils/CLDRPluralRuleConverter.php b/languages/utils/CLDRPluralRuleConverter.php index 1294b1a06b..c9ea0f96eb 100644 --- a/languages/utils/CLDRPluralRuleConverter.php +++ b/languages/utils/CLDRPluralRuleConverter.php @@ -53,7 +53,7 @@ class CLDRPluralRuleConverter { * for the level 4 operators, since they return boolean and don't accept * boolean inputs. */ - static $precedence = array( + private static $precedence = array( 'or' => 2, 'and' => 3, 'is' => 4, diff --git a/languages/utils/CLDRPluralRuleConverterOperator.php b/languages/utils/CLDRPluralRuleConverterOperator.php index 4acda7f9ff..de17f29112 100644 --- a/languages/utils/CLDRPluralRuleConverterOperator.php +++ b/languages/utils/CLDRPluralRuleConverterOperator.php @@ -29,7 +29,7 @@ class CLDRPluralRuleConverterOperator extends CLDRPluralRuleConverterFragment { * * @var array */ - static $opTypes = array( + private static $opTypes = array( 'or' => 'bbb', 'and' => 'bbb', 'is' => 'nnb', @@ -48,7 +48,7 @@ class CLDRPluralRuleConverterOperator extends CLDRPluralRuleConverterFragment { * * @var array */ - static $typeSpecMap = array( + private static $typeSpecMap = array( 'b' => 'boolean', 'n' => 'number', 'r' => 'range', @@ -57,7 +57,7 @@ class CLDRPluralRuleConverterOperator extends CLDRPluralRuleConverterFragment { /** * Map for converting the new operators introduced in Rev 33 to the old forms */ - static $aliasMap = array( + private static $aliasMap = array( '%' => 'mod', '!=' => 'not-in', '=' => 'in' diff --git a/languages/utils/CLDRPluralRuleEvaluatorRange.php b/languages/utils/CLDRPluralRuleEvaluatorRange.php index a62eeb98bc..996c22e349 100644 --- a/languages/utils/CLDRPluralRuleEvaluatorRange.php +++ b/languages/utils/CLDRPluralRuleEvaluatorRange.php @@ -38,7 +38,8 @@ class CLDRPluralRuleEvaluatorRange { * Determine if the given number is inside the range. * * @param int $number The number to check - * @param bool $integerConstraint If true, also asserts the number is an integer; otherwise, number simply has to be inside the range. + * @param bool $integerConstraint If true, also asserts the number is an integer; + * otherwise, number simply has to be inside the range. * @return bool True if the number is inside the range; otherwise, false. */ function isNumberIn( $number, $integerConstraint = true ) {