@@ -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 | |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | */ |
| 96 | 96 | public function __construct($filename) |
| 97 | 97 | { |
| 98 | - if (! is_readable($filename)) { |
|
| 98 | + if (!is_readable($filename)) { |
|
| 99 | 99 | $this->error = self::ERROR_DOES_NOT_EXIST; |
| 100 | 100 | |
| 101 | 101 | return; |
@@ -304,7 +304,7 @@ discard block |
||
| 304 | 304 | { |
| 305 | 305 | // this should contains all strings separated by NULLs |
| 306 | 306 | $key = implode(chr(0), [$msgid, $msgidPlural]); |
| 307 | - if (! array_key_exists($key, $this->cache_translations)) { |
|
| 307 | + if (!array_key_exists($key, $this->cache_translations)) { |
|
| 308 | 308 | return ($number != 1) ? $msgidPlural : $msgid; |
| 309 | 309 | } |
| 310 | 310 | |
@@ -314,7 +314,7 @@ discard block |
||
| 314 | 314 | $result = $this->cache_translations[$key]; |
| 315 | 315 | $list = explode(chr(0), $result); |
| 316 | 316 | |
| 317 | - if (! isset($list[$select])) { |
|
| 317 | + if (!isset($list[$select])) { |
|
| 318 | 318 | return $list[0]; |
| 319 | 319 | } |
| 320 | 320 | |