@@ -136,7 +136,7 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -96,7 +96,7 @@ discard block |
||
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 |
||
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 |
||
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 |