@@ -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. |
@@ -1231,7 +1231,7 @@ |
||
1231 | 1231 | return file_exists($configFilePath) |
1232 | 1232 | ? PhpScoperConfiguration::load($configFilePath) |
1233 | 1233 | : PhpScoperConfiguration::load() |
1234 | - ; |
|
1234 | + ; |
|
1235 | 1235 | } |
1236 | 1236 | |
1237 | 1237 | $configFile = $raw->phpScoper; |
@@ -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. |
@@ -528,7 +528,7 @@ discard block |
||
528 | 528 | { |
529 | 529 | $blacklist = self::retrieveBlacklist($raw, $basePath, ...$excludedPaths); |
530 | 530 | |
531 | - $blacklistFilter = function (SplFileInfo $file) use ($blacklist): ?bool { |
|
531 | + $blacklistFilter = function(SplFileInfo $file) use ($blacklist): ?bool { |
|
532 | 532 | if ($file->isLink()) { |
533 | 533 | return false; |
534 | 534 | } |
@@ -592,7 +592,7 @@ discard block |
||
592 | 592 | |
593 | 593 | Assertion::allString($files); |
594 | 594 | |
595 | - $normalizePath = function (string $file) use ($basePath, $key): SplFileInfo { |
|
595 | + $normalizePath = function(string $file) use ($basePath, $key): SplFileInfo { |
|
596 | 596 | $file = self::normalizePath($file, $basePath); |
597 | 597 | |
598 | 598 | if (is_link($file)) { |
@@ -692,7 +692,7 @@ discard block |
||
692 | 692 | Closure $blacklistFilter, |
693 | 693 | array $devPackages |
694 | 694 | ): array { |
695 | - $processFinderConfig = function (stdClass $config) use ($basePath, $blacklistFilter, $devPackages) { |
|
695 | + $processFinderConfig = function(stdClass $config) use ($basePath, $blacklistFilter, $devPackages) { |
|
696 | 696 | return self::processFinder($config, $basePath, $blacklistFilter, $devPackages); |
697 | 697 | }; |
698 | 698 | |
@@ -717,7 +717,7 @@ discard block |
||
717 | 717 | ->files() |
718 | 718 | ->filter($blacklistFilter) |
719 | 719 | ->filter( |
720 | - function (SplFileInfo $fileInfo) use ($devPackages): bool { |
|
720 | + function(SplFileInfo $fileInfo) use ($devPackages): bool { |
|
721 | 721 | foreach ($devPackages as $devPackage) { |
722 | 722 | if ($devPackage === longest_common_base_path([$devPackage, $fileInfo->getRealPath()])) { |
723 | 723 | // File belongs to the dev package |
@@ -731,7 +731,7 @@ discard block |
||
731 | 731 | ->ignoreVCS(true) |
732 | 732 | ; |
733 | 733 | |
734 | - $normalizedConfig = (function (array $config, Finder $finder): array { |
|
734 | + $normalizedConfig = (function(array $config, Finder $finder): array { |
|
735 | 735 | $normalizedConfig = []; |
736 | 736 | |
737 | 737 | foreach ($config as $method => $arguments) { |
@@ -752,7 +752,7 @@ discard block |
||
752 | 752 | return $normalizedConfig; |
753 | 753 | })((array) $config, $finder); |
754 | 754 | |
755 | - $createNormalizedDirectories = function (string $directory) use ($basePath): ?string { |
|
755 | + $createNormalizedDirectories = function(string $directory) use ($basePath): ?string { |
|
756 | 756 | $directory = self::normalizePath($directory, $basePath); |
757 | 757 | |
758 | 758 | if (is_link($directory)) { |
@@ -770,7 +770,7 @@ discard block |
||
770 | 770 | return $directory; |
771 | 771 | }; |
772 | 772 | |
773 | - $normalizeFileOrDirectory = function (string &$fileOrDirectory) use ($basePath): void { |
|
773 | + $normalizeFileOrDirectory = function(string &$fileOrDirectory) use ($basePath): void { |
|
774 | 774 | $fileOrDirectory = self::normalizePath($fileOrDirectory, $basePath); |
775 | 775 | |
776 | 776 | if (is_link($fileOrDirectory)) { |
@@ -841,7 +841,7 @@ discard block |
||
841 | 841 | array $devPackages |
842 | 842 | ): array { |
843 | 843 | $relativeDevPackages = array_map( |
844 | - function (string $packagePath) use ($basePath): string { |
|
844 | + function(string $packagePath) use ($basePath): string { |
|
845 | 845 | return make_path_relative($packagePath, $basePath); |
846 | 846 | }, |
847 | 847 | $devPackages |
@@ -859,12 +859,12 @@ discard block |
||
859 | 859 | $excludedPaths = array_unique( |
860 | 860 | array_filter( |
861 | 861 | array_map( |
862 | - function (string $path) use ($basePath): string { |
|
862 | + function(string $path) use ($basePath): string { |
|
863 | 863 | return make_path_relative($path, $basePath); |
864 | 864 | }, |
865 | 865 | $excludedPaths |
866 | 866 | ), |
867 | - function (string $path): bool { |
|
867 | + function(string $path): bool { |
|
868 | 868 | return '..' !== substr($path, 0, 2); |
869 | 869 | } |
870 | 870 | ) |
@@ -899,7 +899,7 @@ discard block |
||
899 | 899 | |
900 | 900 | $directories = $raw->{$key}; |
901 | 901 | |
902 | - $normalizeDirectory = function (string $directory) use ($basePath, $key): string { |
|
902 | + $normalizeDirectory = function(string $directory) use ($basePath, $key): string { |
|
903 | 903 | $directory = self::normalizePath($directory, $basePath); |
904 | 904 | |
905 | 905 | if (is_link($directory)) { |
@@ -943,7 +943,7 @@ discard block |
||
943 | 943 | $compactorClasses = array_unique((array) $raw->compactors); |
944 | 944 | |
945 | 945 | return array_map( |
946 | - function (string $class) use ($raw, $basePath): Compactor { |
|
946 | + function(string $class) use ($raw, $basePath): Compactor { |
|
947 | 947 | Assertion::classExists($class, 'The compactor class "%s" does not exist.'); |
948 | 948 | Assertion::implementsInterface($class, Compactor::class, 'The class "%s" is not a compactor class.'); |
949 | 949 | |
@@ -1024,7 +1024,7 @@ discard block |
||
1024 | 1024 | |
1025 | 1025 | private static function retrieveComposerFiles(string $basePath): array |
1026 | 1026 | { |
1027 | - $retrieveFileAndContents = function (string $file): array { |
|
1027 | + $retrieveFileAndContents = function(string $file): array { |
|
1028 | 1028 | $json = new Json(); |
1029 | 1029 | |
1030 | 1030 | if (false === file_exists($file) || false === is_file($file) || false === is_readable($file)) { |
@@ -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 @@ 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. |
@@ -53,7 +53,7 @@ discard block |
||
53 | 53 | } |
54 | 54 | } |
55 | 55 | |
56 | - return false === $assoc ? (object) $data : $data; // If JSON is an empty JSON json_decode returns an empty |
|
56 | + return false === $assoc ? (object) $data : $data; // If JSON is an empty JSON json_decode returns an empty |
|
57 | 57 | // array instead of an stdClass instance |
58 | 58 | } |
59 | 59 |
@@ -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. |
@@ -223,7 +223,7 @@ discard block |
||
223 | 223 | 'Registering compactors' |
224 | 224 | ); |
225 | 225 | |
226 | - $logCompactors = function (Compactor $compactor) use ($logger): void { |
|
226 | + $logCompactors = function(Compactor $compactor) use ($logger): void { |
|
227 | 227 | $logger->log( |
228 | 228 | BuildLogger::PLUS_PREFIX, |
229 | 229 | get_class($compactor) |
@@ -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. |