Skip to content

Commit

Permalink
fix for styleci and static analysis
Browse files Browse the repository at this point in the history
  • Loading branch information
rajabilal555 committed Aug 16, 2023
1 parent 0d36770 commit 1d93cf8
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/NewCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,8 @@ protected function installPest(string $directory, InputInterface $input, OutputI
{
chdir($directory);

if ($this->removeComposerPackages(['phpunit/phpunit'], true, $output)
&& $this->requireComposerPackages(['pestphp/pest:^2.0', 'pestphp/pest-plugin-laravel:^2.0'], true, $output)) {
if ($this->removeComposerPackages(['phpunit/phpunit'], $output, true)
&& $this->requireComposerPackages(['pestphp/pest:^2.0', 'pestphp/pest-plugin-laravel:^2.0'], $output, true)) {
$commands = array_filter([
'"'.PHP_BINARY.'" ./vendor/bin/pest --init',
]);
Expand Down Expand Up @@ -556,11 +556,9 @@ protected function findComposer()
/**
* Installs the given Composer Packages into the application.
*
* @param bool $asDev
*
* @return bool
*/
protected function requireComposerPackages(array $packages, $asDev = false, OutputInterface $output)
protected function requireComposerPackages(array $packages, OutputInterface $output, bool $asDev = false)
{
$composer = $this->findComposer();
$command = explode(' ', $composer);
Expand All @@ -582,11 +580,9 @@ protected function requireComposerPackages(array $packages, $asDev = false, Outp
/**
* Removes the given Composer Packages from the application.
*
* @param bool $asDev
*
* @return bool
*/
protected function removeComposerPackages(array $packages, $asDev = false, OutputInterface $output)
protected function removeComposerPackages(array $packages, OutputInterface $output, bool $asDev = false)
{
$composer = $this->findComposer();
$command = explode(' ', $composer);
Expand Down

0 comments on commit 1d93cf8

Please sign in to comment.