@@ -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; |
@@ -324,7 +324,7 @@ discard block |
||
| 324 | 324 | { |
| 325 | 325 | // this should contains all strings separated by NULLs |
| 326 | 326 | $key = implode(chr(0), [$msgid, $msgidPlural]); |
| 327 | - if (! array_key_exists($key, $this->cacheTranslations)) { |
|
| 327 | + if (!array_key_exists($key, $this->cacheTranslations)) { |
|
| 328 | 328 | return ($number != 1) ? $msgidPlural : $msgid; |
| 329 | 329 | } |
| 330 | 330 | |
@@ -337,7 +337,7 @@ discard block |
||
| 337 | 337 | return ''; |
| 338 | 338 | } |
| 339 | 339 | |
| 340 | - if (! isset($list[$select])) { |
|
| 340 | + if (!isset($list[$select])) { |
|
| 341 | 341 | return $list[0]; |
| 342 | 342 | } |
| 343 | 343 | |