Passed
Push — master ( 067f9c...72cbdc )
by Michal
03:15
created
src/TokenModifier/FilePathToKeyTokenModifier.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@
 block discarded – undo
18 18
 
19 19
     public function modifyAll(TokenCollection $tokenCollection): TokenCollection
20 20
     {
21
-        $pathParts = array_unique(explode('/', str_replace($this->basePath . '/', '', pathinfo($tokenCollection->getFilePath(), PATHINFO_DIRNAME) . '/' . pathinfo($tokenCollection->getFilePath(), PATHINFO_FILENAME))));
21
+        $pathParts = array_unique(explode('/', str_replace($this->basePath.'/', '', pathinfo($tokenCollection->getFilePath(), PATHINFO_DIRNAME).'/'.pathinfo($tokenCollection->getFilePath(), PATHINFO_FILENAME))));
22 22
         foreach ($tokenCollection->getTokens() as $token) {
23
-            $newKeyParts = array_filter(array_map('strtolower', $pathParts), function ($pathPart) {
23
+            $newKeyParts = array_filter(array_map('strtolower', $pathParts), function($pathPart) {
24 24
                 return !in_array($pathPart, $this->excludeDirectoryNames);
25 25
             });
26 26
             $newKeyParts[] = $token->getTranslationKey();
Please login to merge, or discard this patch.