@@ -29,7 +29,7 @@ |
||
29 | 29 | foreach (new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($this->filename)) as $fileInfo) { |
30 | 30 | $basePath = realpath($this->filename); |
31 | 31 | if (in_array(strtolower($fileInfo->getExtension()), ['md', 'mdown', 'markdown'])) { |
32 | - $displayPath = rtrim($this->filename, '/') . str_replace($basePath, '', $fileInfo->getRealPath()); |
|
32 | + $displayPath = rtrim($this->filename, '/').str_replace($basePath, '', $fileInfo->getRealPath()); |
|
33 | 33 | yield $displayPath => $this->readFile($fileInfo->getRealPath()); |
34 | 34 | } |
35 | 35 | } |
@@ -40,7 +40,7 @@ |
||
40 | 40 | */ |
41 | 41 | private function isRegexp(string $input): bool |
42 | 42 | { |
43 | - set_error_handler(function () { |
|
43 | + set_error_handler(function() { |
|
44 | 44 | }); |
45 | 45 | $result = preg_match($input, ''); |
46 | 46 | restore_error_handler(); |
@@ -103,7 +103,7 @@ |
||
103 | 103 | } |
104 | 104 | |
105 | 105 | if (isset($examples[$name])) { |
106 | - throw new \RuntimeException("Example '$name' already exists in definition " . ($index + 1)); |
|
106 | + throw new \RuntimeException("Example '$name' already exists in definition ".($index + 1)); |
|
107 | 107 | } |
108 | 108 | |
109 | 109 | if (!$this->filter->isValid($name)) { |