Completed
Push — master ( 216072...caf6f7 )
by Team eFabrica
02:21
created
src/TokenModifier/FilePathToKeyTokenModifier.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,10 +18,10 @@
 block discarded – undo
18 18
 
19 19
     public function modifyAll(TokenCollection $tokenCollection): TokenCollection
20 20
     {
21
-        $pathParts = explode('/', str_replace($this->basePath . '/', '', $tokenCollection->getFilePath()));
21
+        $pathParts = explode('/', str_replace($this->basePath.'/', '', $tokenCollection->getFilePath()));
22 22
         array_pop($pathParts);
23 23
         foreach ($tokenCollection->getTokens() as $token) {
24
-            $newKeyParts = array_filter(array_map('strtolower', $pathParts), function ($pathPart) {
24
+            $newKeyParts = array_filter(array_map('strtolower', $pathParts), function($pathPart) {
25 25
                 return !in_array($pathPart, $this->excludeDirectoryNames);
26 26
             });
27 27
             $newKeyParts[] = $token->getTranslationKey();
Please login to merge, or discard this patch.
Bridge/KdybyTranslation/TokenModifier/OneTranslationFileTokenModifier.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
 
17 17
     protected function modify(Token $token): Token
18 18
     {
19
-        $token->changeTranslationKey($this->translationFilePrefix . '.' . $token->getTranslationKey());
19
+        $token->changeTranslationKey($this->translationFilePrefix.'.'.$token->getTranslationKey());
20 20
         return $token;
21 21
     }
22 22
 }
Please login to merge, or discard this patch.