Skip to content

Commit

Permalink
Fix phpcs
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Aug 29, 2024
1 parent 6babf7f commit 10dded7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/Command/UpgradeCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,18 @@ public function execute(Arguments $args, ConsoleIo $io): ?int
};

$io->out('<info>Applying cakephp50 Rector rules</info>');
$this->mapCommand($io, $paths, fn ($directory) => $this->executeCommand(RectorCommand::class, $withDryRun(['--rules', 'cakephp50', $directory]), $io));
$this->mapCommand($io, $paths, fn ($directory) => $this->executeCommand(
RectorCommand::class,
$withDryRun(['--rules', 'cakephp50', $directory]),
$io
));

$io->out('<info>Applying cakephp51 Rector rules</info>');
$this->mapCommand($io, $paths, fn ($directory) => $this->executeCommand(RectorCommand::class, $withDryRun(['--rules', 'cakephp51', $directory]), $io));
$this->mapCommand($io, $paths, fn ($directory) => $this->executeCommand(
RectorCommand::class,
$withDryRun(['--rules', 'cakephp51', $directory]),
$io
));

$io->out('Next upgrade your <info>composer.json</info>.');
$version = '5.0';
Expand Down

0 comments on commit 10dded7

Please sign in to comment.