@@ -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 | |
@@ -58,7 +58,7 @@ discard block |
||
58 | 58 | } |
59 | 59 | |
60 | 60 | // Find the path, and complain if English doesn't exist. |
61 | - $path = $this->container->getParameter('kernel.root_dir') . '/../i18n'; |
|
61 | + $path = $this->container->getParameter('kernel.root_dir').'/../i18n'; |
|
62 | 62 | if (!file_exists("$path/en.json")) { |
63 | 63 | throw new Exception("Language directory doesn't exist: $path"); |
64 | 64 | } |
@@ -113,7 +113,7 @@ discard block |
||
113 | 113 | $messageFiles = glob($this->container->getParameter('kernel.root_dir').'/../i18n/*.json'); |
114 | 114 | |
115 | 115 | $languages = array_values(array_unique(array_map( |
116 | - function ($filename) { |
|
116 | + function($filename) { |
|
117 | 117 | return basename($filename, '.json'); |
118 | 118 | }, |
119 | 119 | $messageFiles |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | $this->getIntuition()->getLangFallbacks($useLang) |
158 | 158 | ); |
159 | 159 | |
160 | - return array_filter($fallbacks, function ($lang) use ($i18nPath) { |
|
160 | + return array_filter($fallbacks, function($lang) use ($i18nPath) { |
|
161 | 161 | return is_file($i18nPath.$lang.'.json'); |
162 | 162 | }); |
163 | 163 | } |