Passed
Push — master ( d28507...51d9eb )
by Michal
08:50
created
config_examples/CheckDictionaries/config.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -14,13 +14,13 @@  discard block
 block discarded – undo
14 14
     return new InvalidConfigInstanceReturnedException('$basePath is not set. Use --params="basePath=/your/base/path"');
15 15
 }
16 16
 
17
-$container = require $basePath . '/app/bootstrap.php';
17
+$container = require $basePath.'/app/bootstrap.php';
18 18
 $containerParameters = $container->getParameters();
19 19
 $translationDirs = $containerParameters['translation']['dirs'] ?? [];
20 20
 
21
-$defaultTranslationDir = $basePath . '/app/lang';
21
+$defaultTranslationDir = $basePath.'/app/lang';
22 22
 if (file_exists($defaultTranslationDir)) {
23
-    $translationDirs[] = $basePath . '/app/lang';
23
+    $translationDirs[] = $basePath.'/app/lang';
24 24
 }
25 25
 
26 26
 if ($translationDirs === []) {
@@ -30,13 +30,13 @@  discard block
 block discarded – undo
30 30
 $files = Finder::create()->in($translationDirs);
31 31
 $dictionaries = [];
32 32
 foreach ($files as $file) {
33
-    $filePath = (string)$file;
33
+    $filePath = (string) $file;
34 34
     $info = pathinfo($filePath);
35 35
     list($prefix, $lang,) = explode('.', $info['basename'], 3);
36 36
     if (isset($languages) && !in_array($lang, $languages)) {
37 37
         continue;
38 38
     }
39
-    $storage = new NeonFileStorage($filePath, $prefix . '.', '    ');
39
+    $storage = new NeonFileStorage($filePath, $prefix.'.', '    ');
40 40
     $dictionaries[$lang] = array_merge($dictionaries[$lang] ?? [], $storage->load());
41 41
 }
42 42
 
Please login to merge, or discard this patch.