Passed
Push — master ( cea13f...16712b )
by William
14:23 queued 04:25
created
src/Translator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     private function loadTranslationsFromFile(string $filename): void
124 124
     {
125
-        if (! is_readable($filename)) {
125
+        if (!is_readable($filename)) {
126 126
             $this->error = self::ERROR_DOES_NOT_EXIST;
127 127
 
128 128
             return;
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
             $translations = $stream->readint($unpack, 16);
149 149
 
150 150
             /* get original and translations tables */
151
-            $totalTimesTwo = (int) ($total * 2);// Fix for issue #36 on ARM
151
+            $totalTimesTwo = (int) ($total * 2); // Fix for issue #36 on ARM
152 152
             $tableOriginals = $stream->readintarray($unpack, $originals, $totalTimesTwo);
153 153
             $tableTranslations = $stream->readintarray($unpack, $translations, $totalTimesTwo);
154 154
 
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
     {
344 344
         // this should contains all strings separated by NULLs
345 345
         $key = implode(chr(0), [$msgid, $msgidPlural]);
346
-        if (! array_key_exists($key, $this->cacheTranslations)) {
346
+        if (!array_key_exists($key, $this->cacheTranslations)) {
347 347
             return $number !== 1 ? $msgidPlural : $msgid;
348 348
         }
349 349
 
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
         }
361 361
         // @codeCoverageIgnoreEnd
362 362
 
363
-        if (! isset($list[$select])) {
363
+        if (!isset($list[$select])) {
364 364
             return $list[0];
365 365
         }
366 366
 
Please login to merge, or discard this patch.