Skip to content

Commit

Permalink
Refactor composer require command in
Browse files Browse the repository at this point in the history
PhpCheckCommand.php
  • Loading branch information
Baptiste committed Nov 13, 2023
1 parent 4fa5941 commit efcb6a6
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions src/Commands/PhpCheckCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,12 @@ public function handle(): int
return self::SUCCESS;
}

if ($confirmed) {
$cmd = 'composer require -W '.$selected->implode(' ');
info($cmd);
spin(
fn () => self::runCmd($cmd),
'Updating ...'
);
}
$cmd = 'composer require -W '.$selected->implode(' ');
info($cmd);
spin(
fn () => self::runCmd($cmd),
'Updating ...'
);

info('✅ Done!');

Expand Down

0 comments on commit efcb6a6

Please sign in to comment.