@@ -59,15 +59,15 @@ |
||
59 | 59 | $files = []; |
60 | 60 | foreach ($paths as $path) { |
61 | 61 | if (is_dir($path)) { |
62 | - $path = rtrim($path, DIRECTORY_SEPARATOR) . DIRECTORY_SEPARATOR; |
|
62 | + $path = rtrim($path, DIRECTORY_SEPARATOR).DIRECTORY_SEPARATOR; |
|
63 | 63 | $directory = new RecursiveDirectoryIterator($path); |
64 | 64 | $iterator = new RecursiveIteratorIterator($directory); |
65 | 65 | |
66 | 66 | $filterRegex = sprintf( |
67 | 67 | '`^%s%s%s$`', |
68 | 68 | preg_quote($path, '`'), |
69 | - !empty($this->excludedDirs) ? '((?!' . implode('|', array_map('preg_quote', $this->excludedDirs)) . ').)+' : '.+', |
|
70 | - '\.(' . implode('|', $this->extensions) . ')' |
|
69 | + !empty($this->excludedDirs) ? '((?!'.implode('|', array_map('preg_quote', $this->excludedDirs)).').)+' : '.+', |
|
70 | + '\.('.implode('|', $this->extensions).')' |
|
71 | 71 | ); |
72 | 72 | |
73 | 73 | $filteredIterator = new RegexIterator( |