Skip to content

Commit

Permalink
Merge pull request #24 from WeareJH/bug/fix-constant-success-message
Browse files Browse the repository at this point in the history
Fix success message
  • Loading branch information
bartoszkubicki authored Apr 22, 2024
2 parents 189d97e + 7503db4 commit ee9b461
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Console/ImportFromRemoteCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ class ImportFromRemoteCommand extends Command
private const ARGUMENT_PROJECT_NAME = 'source-project-name';
private const OPTION_NO_ADMIN_ACCOUNT_BACKUP = 'no-admin-backup';

private const SUCCESS = 1;

public function __construct(
private DbFacade $dbFacade,
string $name = null
Expand Down Expand Up @@ -60,7 +62,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
);

if (!$helper->ask($input, $output, $question)) {
return Command::SUCCESS;
return self::SUCCESS;
}

try {
Expand Down Expand Up @@ -101,6 +103,6 @@ protected function execute(InputInterface $input, OutputInterface $output): int
}
}

return Command::SUCCESS;
return self::SUCCESS;
}
}

0 comments on commit ee9b461

Please sign in to comment.