@@ -15,13 +15,13 @@ discard block |
||
15 | 15 | return new InvalidConfigInstanceReturnedException('$basePath is not set. Use --params="basePath=/your/base/path"'); |
16 | 16 | } |
17 | 17 | |
18 | -$container = require $basePath . '/app/bootstrap.php'; |
|
18 | +$container = require $basePath.'/app/bootstrap.php'; |
|
19 | 19 | $containerParameters = $container->getParameters(); |
20 | 20 | $translationDirs = $containerParameters['translation']['dirs'] ?? []; |
21 | 21 | |
22 | -$defaultTranslationDir = $basePath . '/app/lang'; |
|
22 | +$defaultTranslationDir = $basePath.'/app/lang'; |
|
23 | 23 | if (file_exists($defaultTranslationDir)) { |
24 | - $translationDirs[] = $basePath . '/app/lang'; |
|
24 | + $translationDirs[] = $basePath.'/app/lang'; |
|
25 | 25 | } |
26 | 26 | |
27 | 27 | if ($translationDirs === []) { |
@@ -35,13 +35,13 @@ discard block |
||
35 | 35 | } |
36 | 36 | $dictionaries = []; |
37 | 37 | foreach ($files as $file) { |
38 | - $filePath = (string)$file; |
|
38 | + $filePath = (string) $file; |
|
39 | 39 | $info = pathinfo($filePath); |
40 | 40 | list($prefix, $lang,) = explode('.', $info['basename'], 3); |
41 | 41 | if (isset($languages) && !in_array($lang, $languages)) { |
42 | 42 | continue; |
43 | 43 | } |
44 | - $storage = new NeonFileStorage($filePath, $prefix . '.', ' '); |
|
44 | + $storage = new NeonFileStorage($filePath, $prefix.'.', ' '); |
|
45 | 45 | $dictionaries[$lang] = array_merge($dictionaries[$lang] ?? [], $storage->load()); |
46 | 46 | } |
47 | 47 |