@@ -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. |
@@ -455,7 +455,7 @@ discard block |
||
| 455 | 455 | { |
| 456 | 456 | $blacklist = self::retrieveBlacklist($raw, $basePath); |
| 457 | 457 | |
| 458 | - return function (SplFileInfo $file) use ($blacklist): ?bool { |
|
| 458 | + return function(SplFileInfo $file) use ($blacklist): ?bool { |
|
| 459 | 459 | if (in_array($file->getRealPath(), $blacklist, true)) { |
| 460 | 460 | return false; |
| 461 | 461 | } |
@@ -475,7 +475,7 @@ discard block |
||
| 475 | 475 | |
| 476 | 476 | $blacklist = $raw->blacklist; |
| 477 | 477 | |
| 478 | - $normalizePath = function ($file) use ($basePath): string { |
|
| 478 | + $normalizePath = function($file) use ($basePath): string { |
|
| 479 | 479 | return self::normalizeFilePath($file, $basePath); |
| 480 | 480 | }; |
| 481 | 481 | |
@@ -499,7 +499,7 @@ discard block |
||
| 499 | 499 | |
| 500 | 500 | Assertion::allString($files); |
| 501 | 501 | |
| 502 | - $normalizePath = function (string $file) use ($basePath, $key): SplFileInfo { |
|
| 502 | + $normalizePath = function(string $file) use ($basePath, $key): SplFileInfo { |
|
| 503 | 503 | $file = self::normalizeFilePath($file, $basePath); |
| 504 | 504 | |
| 505 | 505 | if (is_link($file)) { |
@@ -575,7 +575,7 @@ discard block |
||
| 575 | 575 | */ |
| 576 | 576 | private static function processFinders(array $findersConfig, string $basePath, Closure $blacklistFilter): array |
| 577 | 577 | { |
| 578 | - $processFinderConfig = function (stdClass $config) use ($basePath, $blacklistFilter) { |
|
| 578 | + $processFinderConfig = function(stdClass $config) use ($basePath, $blacklistFilter) { |
|
| 579 | 579 | return self::processFinder($config, $basePath, $blacklistFilter); |
| 580 | 580 | }; |
| 581 | 581 | |
@@ -590,7 +590,7 @@ discard block |
||
| 590 | 590 | ->ignoreVCS(true) |
| 591 | 591 | ; |
| 592 | 592 | |
| 593 | - $normalizedConfig = (function (array $config, Finder $finder): array { |
|
| 593 | + $normalizedConfig = (function(array $config, Finder $finder): array { |
|
| 594 | 594 | $normalizedConfig = []; |
| 595 | 595 | |
| 596 | 596 | foreach ($config as $method => $arguments) { |
@@ -611,7 +611,7 @@ discard block |
||
| 611 | 611 | return $normalizedConfig; |
| 612 | 612 | })((array) $config, $finder); |
| 613 | 613 | |
| 614 | - $createNormalizedDirectories = function (string $directory) use ($basePath): ?string { |
|
| 614 | + $createNormalizedDirectories = function(string $directory) use ($basePath): ?string { |
|
| 615 | 615 | $directory = self::normalizeDirectoryPath($directory, $basePath); |
| 616 | 616 | |
| 617 | 617 | if (is_link($directory)) { |
@@ -629,7 +629,7 @@ discard block |
||
| 629 | 629 | return $directory; |
| 630 | 630 | }; |
| 631 | 631 | |
| 632 | - $normalizeFileOrDirectory = function (string &$fileOrDirectory) use ($basePath): void { |
|
| 632 | + $normalizeFileOrDirectory = function(string &$fileOrDirectory) use ($basePath): void { |
|
| 633 | 633 | $fileOrDirectory = self::normalizeDirectoryPath($fileOrDirectory, $basePath); |
| 634 | 634 | |
| 635 | 635 | if (is_link($fileOrDirectory)) { |
@@ -702,7 +702,7 @@ discard block |
||
| 702 | 702 | return array_filter( |
| 703 | 703 | array_unique( |
| 704 | 704 | array_map( |
| 705 | - function (SplFileInfo $fileInfo): ?string { |
|
| 705 | + function(SplFileInfo $fileInfo): ?string { |
|
| 706 | 706 | return false !== $fileInfo->getRealPath() ? $fileInfo->getRealPath() : null; |
| 707 | 707 | }, |
| 708 | 708 | iterator_to_array( |
@@ -728,7 +728,7 @@ discard block |
||
| 728 | 728 | |
| 729 | 729 | $directories = $raw->{$key}; |
| 730 | 730 | |
| 731 | - $normalizeDirectory = function (string $directory) use ($basePath, $key): string { |
|
| 731 | + $normalizeDirectory = function(string $directory) use ($basePath, $key): string { |
|
| 732 | 732 | $directory = self::normalizeDirectoryPath($directory, $basePath); |
| 733 | 733 | |
| 734 | 734 | if (is_link($directory)) { |