@@ -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. |
@@ -542,7 +542,7 @@ discard block |
||
| 542 | 542 | |
| 543 | 543 | array_walk( |
| 544 | 544 | $directories, |
| 545 | - function (&$directory) use ($basePath): void { |
|
| 545 | + function(&$directory) use ($basePath): void { |
|
| 546 | 546 | $directory = $basePath |
| 547 | 547 | .DIRECTORY_SEPARATOR |
| 548 | 548 | .canonicalize($directory); |
@@ -616,7 +616,7 @@ discard block |
||
| 616 | 616 | |
| 617 | 617 | array_walk( |
| 618 | 618 | $blacklist, |
| 619 | - function (&$file): void { |
|
| 619 | + function(&$file): void { |
|
| 620 | 620 | $file = canonicalize($file); |
| 621 | 621 | } |
| 622 | 622 | ); |
@@ -640,7 +640,7 @@ discard block |
||
| 640 | 640 | preg_quote($basePath.DIRECTORY_SEPARATOR, '/') |
| 641 | 641 | ); |
| 642 | 642 | |
| 643 | - return function (SplFileInfo $file) use ($base, $blacklist): ?bool { |
|
| 643 | + return function(SplFileInfo $file) use ($base, $blacklist): ?bool { |
|
| 644 | 644 | $path = canonicalize( |
| 645 | 645 | preg_replace($base, '', $file->getPathname()) |
| 646 | 646 | ); |
@@ -682,7 +682,7 @@ discard block |
||
| 682 | 682 | |
| 683 | 683 | array_walk( |
| 684 | 684 | $directories, |
| 685 | - function (&$directory) use ($basePath): void { |
|
| 685 | + function(&$directory) use ($basePath): void { |
|
| 686 | 686 | $directory = $basePath |
| 687 | 687 | .DIRECTORY_SEPARATOR |
| 688 | 688 | .rtrim(canonicalize($directory), DIRECTORY_SEPARATOR); |
@@ -785,7 +785,7 @@ discard block |
||
| 785 | 785 | */ |
| 786 | 786 | private static function processFinders(array $findersConfig, string $basePath, Closure $blacklistFilter): array |
| 787 | 787 | { |
| 788 | - $processFinderConfig = function ($methods) use ($basePath, $blacklistFilter): Finder { |
|
| 788 | + $processFinderConfig = function($methods) use ($basePath, $blacklistFilter): Finder { |
|
| 789 | 789 | $finder = Finder::create() |
| 790 | 790 | ->files() |
| 791 | 791 | ->filter($blacklistFilter) |
@@ -797,7 +797,7 @@ discard block |
||
| 797 | 797 | |
| 798 | 798 | array_walk( |
| 799 | 799 | $methods->in, |
| 800 | - function (&$directory) use ($basePath): void { |
|
| 800 | + function(&$directory) use ($basePath): void { |
|
| 801 | 801 | $directory = canonicalize( |
| 802 | 802 | $basePath.DIRECTORY_SEPARATOR.$directory |
| 803 | 803 | ); |
@@ -943,7 +943,7 @@ discard block |
||
| 943 | 943 | return null; |
| 944 | 944 | } |
| 945 | 945 | |
| 946 | - private static function retrieveMainScriptContents(?string $mainScriptPath, string $basePath): ?string |
|
| 946 | + private static function retrieveMainScriptContents(?string $mainScriptPath, string $basePath) : ?string |
|
| 947 | 947 | { |
| 948 | 948 | if (null === $mainScriptPath) { |
| 949 | 949 | return null; |
@@ -995,7 +995,7 @@ discard block |
||
| 995 | 995 | |
| 996 | 996 | private static function retrieveMapper(array $map): Closure |
| 997 | 997 | { |
| 998 | - return function (string $path) use ($map): ?string { |
|
| 998 | + return function(string $path) use ($map): ?string { |
|
| 999 | 999 | foreach ($map as $item) { |
| 1000 | 1000 | foreach ($item as $match => $replace) { |
| 1001 | 1001 | if (empty($match)) { |
@@ -1336,7 +1336,7 @@ discard block |
||
| 1336 | 1336 | return null; |
| 1337 | 1337 | } |
| 1338 | 1338 | |
| 1339 | - private static function retrieveStubBannerFromFile(string $basePath, ?string $stubBannerPath): ?string |
|
| 1339 | + private static function retrieveStubBannerFromFile(string $basePath, ?string $stubBannerPath) : ?string |
|
| 1340 | 1340 | { |
| 1341 | 1341 | if (null == $stubBannerPath) { |
| 1342 | 1342 | return null; |