@@ -106,8 +106,8 @@ discard block |
||
| 106 | 106 | public function getBasePathRegex() |
| 107 | 107 | { |
| 108 | 108 | return '/' |
| 109 | - .preg_quote($this->getBasePath().DIRECTORY_SEPARATOR, '/') |
|
| 110 | - .'/'; |
|
| 109 | + .preg_quote($this->getBasePath().DIRECTORY_SEPARATOR, '/') |
|
| 110 | + .'/'; |
|
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | /** |
@@ -125,8 +125,8 @@ discard block |
||
| 125 | 125 | $directories, |
| 126 | 126 | function (&$directory) use ($base): void { |
| 127 | 127 | $directory = $base |
| 128 | - .DIRECTORY_SEPARATOR |
|
| 129 | - .Path::canonical($directory); |
|
| 128 | + .DIRECTORY_SEPARATOR |
|
| 129 | + .Path::canonical($directory); |
|
| 130 | 130 | } |
| 131 | 131 | ); |
| 132 | 132 | |
@@ -237,8 +237,8 @@ discard block |
||
| 237 | 237 | { |
| 238 | 238 | $blacklist = $this->getBlacklist(); |
| 239 | 239 | $base = '/^' |
| 240 | - .preg_quote($this->getBasePath().DIRECTORY_SEPARATOR, '/') |
|
| 241 | - .'/'; |
|
| 240 | + .preg_quote($this->getBasePath().DIRECTORY_SEPARATOR, '/') |
|
| 241 | + .'/'; |
|
| 242 | 242 | |
| 243 | 243 | return function (SplFileInfo $file) use ($base, $blacklist) { |
| 244 | 244 | $path = Path::canonical( |
@@ -380,8 +380,8 @@ discard block |
||
| 380 | 380 | $directories, |
| 381 | 381 | function (&$directory) use ($base): void { |
| 382 | 382 | $directory = $base |
| 383 | - .DIRECTORY_SEPARATOR |
|
| 384 | - .rtrim(Path::canonical($directory), DIRECTORY_SEPARATOR); |
|
| 383 | + .DIRECTORY_SEPARATOR |
|
| 384 | + .rtrim(Path::canonical($directory), DIRECTORY_SEPARATOR); |
|
| 385 | 385 | } |
| 386 | 386 | ); |
| 387 | 387 | |