Test Failed
Push — master ( 720bdd...abfaf2 )
by Maurício
02:04
created
src/Loader.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
             }
137 137
 
138 138
             // If the locale name doesn't match POSIX style, just include it as-is.
139
-            if (! in_array($locale, $locale_names)) {
139
+            if (!in_array($locale, $locale_names)) {
140 140
                 array_push($locale_names, $locale);
141 141
             }
142 142
         }
@@ -157,11 +157,11 @@  discard block
 block discarded – undo
157 157
             $domain = $this->default_domain;
158 158
         }
159 159
 
160
-        if (! isset($this->domains[$this->locale])) {
160
+        if (!isset($this->domains[$this->locale])) {
161 161
             $this->domains[$this->locale] = [];
162 162
         }
163 163
 
164
-        if (! isset($this->domains[$this->locale][$domain])) {
164
+        if (!isset($this->domains[$this->locale][$domain])) {
165 165
             if (isset($this->paths[$domain])) {
166 166
                 $base = $this->paths[$domain];
167 167
             } else {
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
      */
217 217
     public function setlocale($locale)
218 218
     {
219
-        if (! empty($locale)) {
219
+        if (!empty($locale)) {
220 220
             $this->locale = $locale;
221 221
         }
222 222
 
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
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      */
97 97
     public function __construct(string $filename)
98 98
     {
99
-        if (! is_readable($filename)) {
99
+        if (!is_readable($filename)) {
100 100
             $this->error = self::ERROR_DOES_NOT_EXIST;
101 101
 
102 102
             return;
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
     {
306 306
         // this should contains all strings separated by NULLs
307 307
         $key = implode(chr(0), [$msgid, $msgidPlural]);
308
-        if (! array_key_exists($key, $this->cache_translations)) {
308
+        if (!array_key_exists($key, $this->cache_translations)) {
309 309
             return ($number != 1) ? $msgidPlural : $msgid;
310 310
         }
311 311
 
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
             return '';
319 319
         }
320 320
 
321
-        if (! isset($list[$select])) {
321
+        if (!isset($list[$select])) {
322 322
             return $list[0];
323 323
         }
324 324
 
Please login to merge, or discard this patch.