@@ -167,7 +167,7 @@ discard block |
||
167 | 167 | } |
168 | 168 | |
169 | 169 | // If the locale name doesn't match POSIX style, just include it as-is. |
170 | - if (! in_array($locale, $localeNames)) { |
|
170 | + if (!in_array($locale, $localeNames)) { |
|
171 | 171 | array_push($localeNames, $locale); |
172 | 172 | } |
173 | 173 | } |
@@ -188,11 +188,11 @@ discard block |
||
188 | 188 | $domain = $this->defaultDomain; |
189 | 189 | } |
190 | 190 | |
191 | - if (! isset($this->domains[$this->locale])) { |
|
191 | + if (!isset($this->domains[$this->locale])) { |
|
192 | 192 | $this->domains[$this->locale] = []; |
193 | 193 | } |
194 | 194 | |
195 | - if (! isset($this->domains[$this->locale][$domain])) { |
|
195 | + if (!isset($this->domains[$this->locale][$domain])) { |
|
196 | 196 | if (isset($this->paths[$domain])) { |
197 | 197 | $base = $this->paths[$domain]; |
198 | 198 | } else { |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | */ |
248 | 248 | public function setlocale($locale) |
249 | 249 | { |
250 | - if (! empty($locale)) { |
|
250 | + if (!empty($locale)) { |
|
251 | 251 | $this->locale = $locale; |
252 | 252 | } |
253 | 253 |
@@ -110,7 +110,7 @@ discard block |
||
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 |
||
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 |
||
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 |