Make languages/utils pass phpcs-strict
authorSiebrand Mazeland <siebrand@kitano.nl>
Mon, 21 Apr 2014 18:44:40 +0000 (20:44 +0200)
committerSiebrand <siebrand@kitano.nl>
Tue, 22 Apr 2014 12:09:53 +0000 (12:09 +0000)
Change-Id: I5e6521e30384f46575573647b24217d4301fcd59

languages/utils/CLDRPluralRuleConverter.php
languages/utils/CLDRPluralRuleConverterOperator.php
languages/utils/CLDRPluralRuleEvaluatorRange.php

index 1294b1a..c9ea0f9 100644 (file)
@@ -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,
index 4acda7f..de17f29 100644 (file)
@@ -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'
index a62eeb9..996c22e 100644 (file)
@@ -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 ) {