Passed
Push — dependency-injection ( ffba39...5b18dd )
by MusikAnimal
04:20
created
src/Helper/I18nHelper.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.