Add option to expose original sha1 in thumb url
[lhc/web/wiklou.git] / languages / utils / CLDRPluralRuleConverterOperator.php
index 2824fc6..de17f29 100644 (file)
@@ -1,5 +1,4 @@
 <?php
-
 /**
  * @author Niklas Laxström, Tim Starling
  *
@@ -30,7 +29,7 @@ class CLDRPluralRuleConverterOperator extends CLDRPluralRuleConverterFragment {
         *
         * @var array
         */
-       static $opTypes = array(
+       private static $opTypes = array(
                'or' => 'bbb',
                'and' => 'bbb',
                'is' => 'nnb',
@@ -49,7 +48,7 @@ class CLDRPluralRuleConverterOperator extends CLDRPluralRuleConverterFragment {
         *
         * @var array
         */
-       static $typeSpecMap = array(
+       private static $typeSpecMap = array(
                'b' => 'boolean',
                'n' => 'number',
                'r' => 'range',
@@ -58,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'
@@ -109,6 +108,7 @@ class CLDRPluralRuleConverterOperator extends CLDRPluralRuleConverterFragment {
                if ( !$right->isType( $rightType ) ) {
                        $newExpr->error( "invalid type for right operand: expected $rightType, got {$right->type}" );
                }
+
                return $newExpr;
        }
 }