Completed
Pull Request — master (#56)
by Maciej
17s
created
Tests/LanguagesTest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
 
24 24
     public function testFileProvider()
25 25
     {
26
-        $dir = realpath(__DIR__ . '/Samples');
27
-        $out = realpath(__DIR__ . '/Expected/Test');
26
+        $dir = realpath(__DIR__.'/Samples');
27
+        $out = realpath(__DIR__.'/Expected/Test');
28 28
 
29 29
         $iterator = new \RecursiveIteratorIterator(
30 30
             new \RecursiveDirectoryIterator(
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             $pathname = substr($file->getPathname(), strlen($dir) + 1);
40 40
             $language = $this->getLanguageByFilename($pathname);
41 41
 
42
-            yield $pathname => [ $language, $file->getPathname(), "$out/$pathname.tkn" ];
42
+            yield $pathname => [$language, $file->getPathname(), "$out/$pathname.tkn"];
43 43
         }
44 44
     }
45 45
 
Please login to merge, or discard this patch.
Language/Dockerfile.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         ];
35 35
 
36 36
         $this->rules->add('keyword', new Rule(
37
-            new RegexMatcher('/^\s*\b(' . implode('|', $keywords) . ')\b/mi'),
37
+            new RegexMatcher('/^\s*\b('.implode('|', $keywords).')\b/mi'),
38 38
             ['priority' => 2]
39 39
         ));
40 40
     }
Please login to merge, or discard this patch.