Completed
Push — master ( b392a9...de8ba3 )
by Michal
03:38 queued 01:09
created
src/MoTranslator.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
      */
56 56
     public function __construct($filename)
57 57
     {
58
-        if (! is_readable($filename)) {
58
+        if (!is_readable($filename)) {
59 59
             $this->error = 2; // file does not exist
60 60
             return;
61 61
         }
@@ -132,16 +132,16 @@  discard block
 block discarded – undo
132 132
                     $res .= ') : (';
133 133
                     break;
134 134
                 case ';':
135
-                    $res .= str_repeat( ')', $p) . ';';
135
+                    $res .= str_repeat(')', $p) . ';';
136 136
                     $p = 0;
137 137
                     break;
138 138
                 default:
139 139
                     $res .= $ch;
140 140
             }
141 141
         }
142
-        $res = str_replace('nplurals','$total',$res);
143
-        $res = str_replace('n','$n',$res);
144
-        $res = str_replace('plural','$plural',$res);
142
+        $res = str_replace('nplurals', '$total', $res);
143
+        $res = str_replace('n', '$n', $res);
144
+        $res = str_replace('plural', '$plural', $res);
145 145
         return $res;
146 146
     }
147 147
 
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
     {
218 218
         // this should contains all strings separated by NULLs
219 219
         $key = $single . chr(0) . $plural;
220
-        if (! array_key_exists($key, $this->cache_translations)) {
220
+        if (!array_key_exists($key, $this->cache_translations)) {
221 221
             return ($number != 1) ? $plural : $single;
222 222
         }
223 223
 
Please login to merge, or discard this patch.