Skip to content

Commit 572e318

Browse files
authored
[automated] Apply Coding Standard (#7926)
Co-authored-by: TomasVotruba <924196+TomasVotruba@users.noreply.github.com>
1 parent 014b976 commit 572e318

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

‎src/Console/ConsoleApplication.php‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ final class ConsoleApplication extends Application
2626
/**
2727
* @param Command[] $commands
2828
*/
29-
public function __construct(array $commands, private readonly SymfonyStyle $symfonyStyle)
30-
{
29+
public function __construct(
30+
array $commands,
31+
private readonly SymfonyStyle $symfonyStyle
32+
) {
3133
parent::__construct(self::NAME, VersionResolver::PACKAGE_VERSION);
3234

3335
Assert::notEmpty($commands);
@@ -66,7 +68,8 @@ public function doRun(InputInterface $input, OutputInterface $output): int
6668
// bin/rector src
6769
// bin/rector --only "RemovePhpVersionIdCheckRector"
6870
// file_exists() can check directory and file
69-
if ((file_exists($commandName) || isset($_SERVER['argv'][1])
71+
if ((
72+
file_exists($commandName) || isset($_SERVER['argv'][1])
7073
&& $commandName !== $_SERVER['argv'][1]
7174
// ensure verify has parameter option, eg: --only
7275
&& $input->hasParameterOption($_SERVER['argv'][1])

0 commit comments

Comments
 (0)