mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 20:08:55 +00:00
[ticket/12655] Fix coding style in \phpbb\console\application
PHPBB3-12655
This commit is contained in:
parent
a14d16172c
commit
99ebf4b8dd
1 changed files with 8 additions and 2 deletions
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue