@@ -14,15 +14,15 @@ |
||
14 | 14 | use Efabrica\TranslationsAutomatization\TokenModifier\PrefixTranslationKeyTokenModifier; |
15 | 15 | use Efabrica\TranslationsAutomatization\TranslationFinder; |
16 | 16 | |
17 | -require_once __DIR__ . '/../../vendor/autoload.php'; |
|
17 | +require_once __DIR__.'/../../vendor/autoload.php'; |
|
18 | 18 | |
19 | 19 | $basePath = rtrim($argv[1] ?? __DIR__, '/'); |
20 | 20 | |
21 | -$storage = new NeonFileStorage($basePath . '/app/lang/dictionary.sk_SK.neon', ' '); |
|
21 | +$storage = new NeonFileStorage($basePath.'/app/lang/dictionary.sk_SK.neon', ' '); |
|
22 | 22 | $saver = new OneFileTranslationSaver($storage); |
23 | 23 | $translationFinder = new TranslationFinder($saver); |
24 | 24 | |
25 | -$fileFinder = new FileFinder([$basePath . '/app'], ['latte']); |
|
25 | +$fileFinder = new FileFinder([$basePath.'/app'], ['latte']); |
|
26 | 26 | |
27 | 27 | $textFinder = new RegexTextFinder(); |
28 | 28 |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | { |
58 | 58 | $newTexts = []; |
59 | 59 | foreach ($texts as $key => $value) { |
60 | - $newTexts[$parentKey . '.' . $key] = $value; |
|
60 | + $newTexts[$parentKey.'.'.$key] = $value; |
|
61 | 61 | } |
62 | 62 | return $newTexts; |
63 | 63 | } |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | return $translations; |
71 | 71 | } |
72 | 72 | if (isset($translations[$keyPart]) && is_string($translations[$keyPart])) { |
73 | - $translations[$keyPart . '.' . implode('.', $translationKeyParts)] = $text; |
|
73 | + $translations[$keyPart.'.'.implode('.', $translationKeyParts)] = $text; |
|
74 | 74 | return $translations; |
75 | 75 | } |
76 | 76 | $translations[$keyPart] = $this->addToTranslations($translations[$keyPart] ?? [], $translationKeyParts, $text); |