Passed
Push — master ( f1013d...9c3ffd )
by William
08:24
created
src/Loader.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
             }
169 169
 
170 170
             // If the locale name doesn't match POSIX style, just include it as-is.
171
-            if (! in_array($locale, $localeNames)) {
171
+            if (!in_array($locale, $localeNames)) {
172 172
                 array_push($localeNames, $locale);
173 173
             }
174 174
         }
@@ -187,11 +187,11 @@  discard block
 block discarded – undo
187 187
             $domain = $this->defaultDomain;
188 188
         }
189 189
 
190
-        if (! isset($this->domains[$this->locale])) {
190
+        if (!isset($this->domains[$this->locale])) {
191 191
             $this->domains[$this->locale] = [];
192 192
         }
193 193
 
194
-        if (! isset($this->domains[$this->locale][$domain])) {
194
+        if (!isset($this->domains[$this->locale][$domain])) {
195 195
             if (isset($this->paths[$domain])) {
196 196
                 $base = $this->paths[$domain];
197 197
             } else {
@@ -246,7 +246,7 @@  discard block
 block discarded – undo
246 246
      */
247 247
     public function setlocale(string $locale): string
248 248
     {
249
-        if (! empty($locale)) {
249
+        if (!empty($locale)) {
250 250
             $this->locale = $locale;
251 251
         }
252 252
 
Please login to merge, or discard this patch.
src/Translator.php 1 patch
Spacing   +3 added lines, -3 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;
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
     {
337 337
         // this should contains all strings separated by NULLs
338 338
         $key = implode(chr(0), [$msgid, $msgidPlural]);
339
-        if (! array_key_exists($key, $this->cacheTranslations)) {
339
+        if (!array_key_exists($key, $this->cacheTranslations)) {
340 340
             return $number !== 1 ? $msgidPlural : $msgid;
341 341
         }
342 342
 
@@ -353,7 +353,7 @@  discard block
 block discarded – undo
353 353
         }
354 354
         // @codeCoverageIgnoreEnd
355 355
 
356
-        if (! isset($list[$select])) {
356
+        if (!isset($list[$select])) {
357 357
             return $list[0];
358 358
         }
359 359
 
Please login to merge, or discard this patch.