Skip to content

Commit

Permalink
fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
theofidry committed Mar 11, 2024
1 parent f82f967 commit 06fdc8c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
12 changes: 11 additions & 1 deletion fixtures/requirement-checker/complete/index.php
Original file line number Diff line number Diff line change
@@ -1 +1,11 @@
<?php
<?php declare(strict_types=1);

/*
* This file is part of the box project.
*
* (c) Kevin Herrera <[email protected]>
* Théo Fidry <[email protected]>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
6 changes: 2 additions & 4 deletions src/Console/Command/Info/Requirements.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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('<comment>No provided extension found.</comment>');
Expand Down

0 comments on commit 06fdc8c

Please sign in to comment.