@@ -23,8 +23,8 @@ discard block |
||
| 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 |
||
| 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 | |
@@ -34,7 +34,7 @@ |
||
| 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 | } |