mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02:00
[ticket/12655] Fix coding style in \phpbb\console\application
PHPBB3-12655
This commit is contained in:
@@ -31,7 +31,12 @@ class application extends \Symfony\Component\Console\Application
|
|||||||
{
|
{
|
||||||
parent::__construct($name, $version);
|
parent::__construct($name, $version);
|
||||||
|
|
||||||
$this->getDefinition()->addOption(new InputOption('--shell', '-s', InputOption::VALUE_NONE, $user->lang('CLI_DESCRIPTION_OPTION_SHELL')));
|
$this->getDefinition()->addOption(new InputOption(
|
||||||
|
'--shell',
|
||||||
|
'-s',
|
||||||
|
InputOption::VALUE_NONE,
|
||||||
|
$user->lang('CLI_DESCRIPTION_OPTION_SHELL')
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -53,7 +58,8 @@ class application extends \Symfony\Component\Console\Application
|
|||||||
*/
|
*/
|
||||||
public function doRun(InputInterface $input, OutputInterface $output)
|
public function doRun(InputInterface $input, OutputInterface $output)
|
||||||
{
|
{
|
||||||
if ($input->hasParameterOption(array('--shell', '-s')) === true) {
|
if ($input->hasParameterOption(array('--shell', '-s')) === true)
|
||||||
|
{
|
||||||
$shell = new Shell($this);
|
$shell = new Shell($this);
|
||||||
$shell->run();
|
$shell->run();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user