Passed
Push — master ( 64ef97...68a4de )
by Michal
07:19
created
config_examples/CheckDictionaries/config.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
 }
17 17
 
18 18
 $bootstrap = $bootstrap ?? 'app/bootstrap.php';
19
-$bootstrapPath = $basePath . '/' . $bootstrap;
19
+$bootstrapPath = $basePath.'/'.$bootstrap;
20 20
 
21 21
 $translationDirsToCheck = [];
22 22
 if (file_exists($bootstrapPath)) {
@@ -24,13 +24,13 @@  discard block
 block discarded – undo
24 24
     $translationDirsToCheck = method_exists($container, 'getParameter') ? ($container->getParameter('translation')['dirs'] ?? []) : ($container->getParameters()['translation']['dirs'] ?? []);
25 25
 }
26 26
 
27
-$translationDirsToCheck[] = $basePath . '/lang';
27
+$translationDirsToCheck[] = $basePath.'/lang';
28 28
 foreach (['app', 'src'] as $srcDir) {
29 29
     try {
30 30
         $modulesLangFinder = Finder::create()
31 31
             ->directories()
32 32
             ->name('lang')
33
-            ->in($basePath . '/' . $srcDir);
33
+            ->in($basePath.'/'.$srcDir);
34 34
     } catch (DirectoryNotFoundException $e) {
35 35
         continue;
36 36
     }
@@ -59,14 +59,14 @@  discard block
 block discarded – undo
59 59
 }
60 60
 $dictionaries = [];
61 61
 foreach ($files as $file) {
62
-    $filePath = (string)$file;
62
+    $filePath = (string) $file;
63 63
     $info = pathinfo($filePath);
64 64
     $extension = $info['extension'];
65 65
     list($prefix, $lang,) = explode('.', $info['basename'], 3);
66 66
     if ($extension !== 'neon' || (isset($languages) && !in_array($lang, $languages))) {
67 67
         continue;
68 68
     }
69
-    $storage = new NeonFileStorage($filePath, $prefix . '.', '    ');
69
+    $storage = new NeonFileStorage($filePath, $prefix.'.', '    ');
70 70
     $dictionaries[$lang] = array_merge($dictionaries[$lang] ?? [], $storage->load());
71 71
 }
72 72
 
Please login to merge, or discard this patch.