@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types = 1); |
|
3 | +declare(strict_types=1); |
|
4 | 4 | |
5 | 5 | namespace App\Helper; |
6 | 6 | |
@@ -54,7 +54,7 @@ discard block |
||
54 | 54 | } |
55 | 55 | |
56 | 56 | // Find the path, and complain if English doesn't exist. |
57 | - $path = $this->projectDir . '/i18n'; |
|
57 | + $path = $this->projectDir.'/i18n'; |
|
58 | 58 | if (!file_exists("$path/en.json")) { |
59 | 59 | throw new Exception("Language directory doesn't exist: $path"); |
60 | 60 | } |
@@ -105,7 +105,7 @@ discard block |
||
105 | 105 | $messageFiles = glob($this->projectDir.'/i18n/*.json'); |
106 | 106 | |
107 | 107 | $languages = array_values(array_unique(array_map( |
108 | - function ($filename) { |
|
108 | + function($filename) { |
|
109 | 109 | return basename($filename, '.json'); |
110 | 110 | }, |
111 | 111 | $messageFiles |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | $this->getIntuition()->getLangFallbacks($useLang) |
150 | 150 | ); |
151 | 151 | |
152 | - return array_filter($fallbacks, function ($lang) use ($i18nPath) { |
|
152 | + return array_filter($fallbacks, function($lang) use ($i18nPath) { |
|
153 | 153 | return is_file($i18nPath.$lang.'.json'); |
154 | 154 | }); |
155 | 155 | } |
@@ -287,7 +287,7 @@ discard block |
||
287 | 287 | */ |
288 | 288 | private function getLangForTranslatingNumerals(): string |
289 | 289 | { |
290 | - return 'ar' === $this->getIntuition()->getLang() ? 'en': $this->getIntuition()->getLang(); |
|
290 | + return 'ar' === $this->getIntuition()->getLang() ? 'en' : $this->getIntuition()->getLang(); |
|
291 | 291 | } |
292 | 292 | |
293 | 293 | /** |