Completed
Push — master ( 1cb4b6...6662e3 )
by Michal
02:59
created
src/MoTranslator.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function __construct($filename)
61 61
     {
62
-        if (! is_readable($filename)) {
62
+        if (!is_readable($filename)) {
63 63
             $this->error = 2; // file does not exist
64 64
             return;
65 65
         }
@@ -137,15 +137,15 @@  discard block
 block discarded – undo
137 137
                     $res .= ') : (';
138 138
                     break;
139 139
                 case ';':
140
-                    $res .= str_repeat( ')', $p) . ';';
140
+                    $res .= str_repeat(')', $p) . ';';
141 141
                     $p = 0;
142 142
                     break;
143 143
                 default:
144 144
                     $res .= $ch;
145 145
             }
146 146
         }
147
-        $res = str_replace('n','$n',$res);
148
-        $res = str_replace('plural','$plural',$res);
147
+        $res = str_replace('n', '$n', $res);
148
+        $res = str_replace('plural', '$plural', $res);
149 149
         return $res;
150 150
     }
151 151
 
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
     {
239 239
         // this should contains all strings separated by NULLs
240 240
         $key = $single . chr(0) . $plural;
241
-        if (! array_key_exists($key, $this->cache_translations)) {
241
+        if (!array_key_exists($key, $this->cache_translations)) {
242 242
             return ($number != 1) ? $plural : $single;
243 243
         }
244 244
 
Please login to merge, or discard this patch.