@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the box project. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the box project. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the box project. |
@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the box project. |
@@ -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 |
@@ -1,6 +1,6 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | -declare(strict_types=1); |
|
3 | +declare(strict_types = 1); |
|
4 | 4 | |
5 | 5 | /* |
6 | 6 | * This file is part of the box project. |
@@ -123,7 +123,7 @@ discard block |
||
123 | 123 | |
124 | 124 | array_walk( |
125 | 125 | $directories, |
126 | - function (&$directory) use ($base): void { |
|
126 | + function(&$directory) use ($base): void { |
|
127 | 127 | $directory = $base |
128 | 128 | .DIRECTORY_SEPARATOR |
129 | 129 | .Path::canonical($directory); |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | |
218 | 218 | array_walk( |
219 | 219 | $blacklist, |
220 | - function (&$file): void { |
|
220 | + function(&$file): void { |
|
221 | 221 | $file = Path::canonical($file); |
222 | 222 | } |
223 | 223 | ); |
@@ -240,7 +240,7 @@ discard block |
||
240 | 240 | .preg_quote($this->getBasePath().DIRECTORY_SEPARATOR, '/') |
241 | 241 | .'/'; |
242 | 242 | |
243 | - return function (SplFileInfo $file) use ($base, $blacklist) { |
|
243 | + return function(SplFileInfo $file) use ($base, $blacklist) { |
|
244 | 244 | $path = Path::canonical( |
245 | 245 | preg_replace($base, '', $file->getPathname()) |
246 | 246 | ); |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | |
379 | 379 | array_walk( |
380 | 380 | $directories, |
381 | - function (&$directory) use ($base): void { |
|
381 | + function(&$directory) use ($base): void { |
|
382 | 382 | $directory = $base |
383 | 383 | .DIRECTORY_SEPARATOR |
384 | 384 | .rtrim(Path::canonical($directory), DIRECTORY_SEPARATOR); |
@@ -710,7 +710,7 @@ discard block |
||
710 | 710 | { |
711 | 711 | $map = $this->getMap(); |
712 | 712 | |
713 | - return function ($path) use ($map) { |
|
713 | + return function($path) use ($map) { |
|
714 | 714 | foreach ($map as $item) { |
715 | 715 | foreach ($item as $match => $replace) { |
716 | 716 | if (empty($match)) { |
@@ -1159,7 +1159,7 @@ discard block |
||
1159 | 1159 | |
1160 | 1160 | array_walk( |
1161 | 1161 | $methods->in, |
1162 | - function (&$directory) use ($base): void { |
|
1162 | + function(&$directory) use ($base): void { |
|
1163 | 1163 | $directory = Path::canonical( |
1164 | 1164 | $base.DIRECTORY_SEPARATOR.$directory |
1165 | 1165 | ); |