Completed
Push — master ( 918de8...afaa11 )
by El
05:20
created
lib/i18n.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
         {
113 113
             $number = (int) $args[1];
114 114
             $key = self::_getPluralForm($number);
115
-            $max = count(self::$_translations[$messageId]) - 1;
115
+            $max = count(self::$_translations[$messageId])-1;
116 116
             if ($key > $max) $key = $max;
117 117
 
118 118
             $args[0] = self::$_translations[$messageId][$key];
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
     protected static function _matchLanguage($a, $b) {
387 387
         $a = explode('-', $a);
388 388
         $b = explode('-', $b);
389
-        for ($i=0, $n = min(count($a), count($b)); $i < $n; ++$i)
389
+        for ($i = 0, $n = min(count($a), count($b)); $i < $n; ++$i)
390 390
         {
391 391
             if ($a[$i] !== $b[$i]) break;
392 392
         }
Please login to merge, or discard this patch.
lib/trafficlimiter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -117,13 +117,13 @@
 block discarded – undo
117 117
         // purge file of expired IPs to keep it small
118 118
         foreach ($tl as $key => $time)
119 119
         {
120
-            if ($time + self::$_limit < $now)
120
+            if ($time+self::$_limit < $now)
121 121
             {
122 122
                 unset($tl[$key]);
123 123
             }
124 124
         }
125 125
 
126
-        if (array_key_exists($ip, $tl) && ($tl[$ip] + self::$_limit >= $now))
126
+        if (array_key_exists($ip, $tl) && ($tl[$ip]+self::$_limit >= $now))
127 127
         {
128 128
             $result = false;
129 129
         } else {
Please login to merge, or discard this patch.