Completed
Push — master ( 943f91...9291bd )
by William
03:15
created
src/Translator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      */
111 111
     public function __construct(string $filename)
112 112
     {
113
-        if (! is_readable($filename)) {
113
+        if (!is_readable($filename)) {
114 114
             $this->error = self::ERROR_DOES_NOT_EXIST;
115 115
 
116 116
             return;
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
     {
327 327
         // this should contains all strings separated by NULLs
328 328
         $key = implode(chr(0), [$msgid, $msgidPlural]);
329
-        if (! array_key_exists($key, $this->cacheTranslations)) {
329
+        if (!array_key_exists($key, $this->cacheTranslations)) {
330 330
             return $number !== 1 ? $msgidPlural : $msgid;
331 331
         }
332 332
 
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
             return '';
340 340
         }
341 341
 
342
-        if (! isset($list[$select])) {
342
+        if (!isset($list[$select])) {
343 343
             return $list[0];
344 344
         }
345 345
 
Please login to merge, or discard this patch.
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.