Skip to content

Commit

Permalink
Refactor console command return statements to use built-in constants
Browse files Browse the repository at this point in the history
  • Loading branch information
0m3r committed May 2, 2023
1 parent 5b16383 commit afb97a2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Console/Command/ModuleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,5 +163,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
// $table->setHeaders(['Param', 'Value']);
$table->setRows($rows);
$table->render();

return Cli::RETURN_SUCCESS;
}
}
2 changes: 2 additions & 0 deletions Console/Command/ModuleListCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
$table->setRows($rows);

$table->render();

return Command::SUCCESS;
}
}
2 changes: 2 additions & 0 deletions Console/Command/ThemeCreateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,7 @@ protected function execute(InputInterface $input, OutputInterface $output)

$output->writeln('<success>New Local Swissup theme create done!</success>');
$output->writeln('<warn>Please run setup:upgrade from Magento CLI</warn>');

return Command::SUCCESS;
}
}

0 comments on commit afb97a2

Please sign in to comment.