diff --git a/fixtures/requirement-checker/complete/index.php b/fixtures/requirement-checker/complete/index.php index b3d9bbc7f..80c8b2af6 100644 --- a/fixtures/requirement-checker/complete/index.php +++ b/fixtures/requirement-checker/complete/index.php @@ -1 +1,11 @@ - + * Théo Fidry + * + * This source file is subject to the MIT license that is bundled + * with this source code in the file LICENSE. + */ diff --git a/src/Console/Command/Info/Requirements.php b/src/Console/Command/Info/Requirements.php index 6a4621a97..cd2acd7d0 100644 --- a/src/Console/Command/Info/Requirements.php +++ b/src/Console/Command/Info/Requirements.php @@ -27,9 +27,7 @@ use KevinGH\Box\RequirementChecker\RequirementType; use stdClass; use Symfony\Component\Console\Input\InputOption; -use function array_filter; use function array_map; -use function implode; use function iter\filter; use function iter\toArray; use function sprintf; @@ -100,7 +98,7 @@ public function execute(IO $io): int $optimizedRequiredRequirements = toArray( filter( - static fn (Requirement $requirement) => $requirement->type === RequirementType::EXTENSION, + static fn (Requirement $requirement) => RequirementType::EXTENSION === $requirement->type, $this->factory ->create( $composerJson, @@ -212,7 +210,7 @@ private static function renderRequiredExtensionsSection( */ private static function renderProvidedExtensionsSection( array $provided, - IO $io, + IO $io, ): void { if (0 === count($provided)) { $io->writeln('No provided extension found.');