@@ -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. |
@@ -32,7 +32,7 @@ discard block |
||
| 32 | 32 | final class Configuration |
| 33 | 33 | { |
| 34 | 34 | private const DEFAULT_ALIAS = 'default.phar'; |
| 35 | - private const DEFAULT_MAIN = 'index.php'; // See Phar::setDefaultStub() |
|
| 35 | + private const DEFAULT_MAIN = 'index.php'; // See Phar::setDefaultStub() |
|
| 36 | 36 | private const DEFAULT_DATETIME_FORMAT = 'Y-m-d H:i:s'; |
| 37 | 37 | private const DEFAULT_REPLACEMENT_SIGIL = '@'; |
| 38 | 38 | |
@@ -539,7 +539,7 @@ discard block |
||
| 539 | 539 | |
| 540 | 540 | array_walk( |
| 541 | 541 | $directories, |
| 542 | - function (&$directory) use ($basePath): void { |
|
| 542 | + function(&$directory) use ($basePath): void { |
|
| 543 | 543 | $directory = $basePath |
| 544 | 544 | .DIRECTORY_SEPARATOR |
| 545 | 545 | .canonicalize($directory); |
@@ -614,7 +614,7 @@ discard block |
||
| 614 | 614 | |
| 615 | 615 | array_walk( |
| 616 | 616 | $blacklist, |
| 617 | - function (&$file): void { |
|
| 617 | + function(&$file): void { |
|
| 618 | 618 | $file = canonicalize($file); |
| 619 | 619 | } |
| 620 | 620 | ); |
@@ -638,7 +638,7 @@ discard block |
||
| 638 | 638 | preg_quote($basePath.DIRECTORY_SEPARATOR, '/') |
| 639 | 639 | ); |
| 640 | 640 | |
| 641 | - return function (SplFileInfo $file) use ($base, $blacklist): ?bool { |
|
| 641 | + return function(SplFileInfo $file) use ($base, $blacklist): ?bool { |
|
| 642 | 642 | $path = canonicalize( |
| 643 | 643 | preg_replace($base, '', $file->getPathname()) |
| 644 | 644 | ); |
@@ -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); |
@@ -789,7 +789,7 @@ discard block |
||
| 789 | 789 | { |
| 790 | 790 | // TODO: add an example in the doc about the finder and a mention in `finder-bin` to look at finder |
| 791 | 791 | |
| 792 | - $processFinderConfig = function ($methods) use ($basePath, $blacklistFilter): Finder { |
|
| 792 | + $processFinderConfig = function($methods) use ($basePath, $blacklistFilter): Finder { |
|
| 793 | 793 | $finder = Finder::create() |
| 794 | 794 | ->files() |
| 795 | 795 | ->filter($blacklistFilter) |
@@ -801,7 +801,7 @@ discard block |
||
| 801 | 801 | |
| 802 | 802 | array_walk( |
| 803 | 803 | $methods->in, |
| 804 | - function (&$directory) use ($basePath): void { |
|
| 804 | + function(&$directory) use ($basePath): void { |
|
| 805 | 805 | $directory = canonicalize( |
| 806 | 806 | $basePath.DIRECTORY_SEPARATOR.$directory |
| 807 | 807 | ); |