mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/12683] Small code style improvements
PHPBB3-12683
This commit is contained in:
@@ -49,10 +49,8 @@ class list_all extends \phpbb\console\command\command
|
||||
*/
|
||||
protected function configure()
|
||||
{
|
||||
$this
|
||||
->setName('reparser:list')
|
||||
->setDescription($this->user->lang('CLI_DESCRIPTION_REPARSER_LIST'))
|
||||
;
|
||||
$this->setName('reparser:list')
|
||||
->setDescription($this->user->lang('CLI_DESCRIPTION_REPARSER_LIST'));
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -74,15 +74,13 @@ class create extends command
|
||||
*/
|
||||
protected function configure()
|
||||
{
|
||||
$this
|
||||
->setName('searchindex:create')
|
||||
$this->setName('searchindex:create')
|
||||
->setDescription($this->language->lang('CLI_DESCRIPTION_SEARCHINDEX_CREATE'))
|
||||
->addArgument(
|
||||
'search-backend',
|
||||
InputArgument::REQUIRED,
|
||||
$this->language->lang('CLI_SEARCHINDEX_SEARCH_BACKEND_NAME')
|
||||
)
|
||||
;
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -74,15 +74,13 @@ class delete extends command
|
||||
*/
|
||||
protected function configure()
|
||||
{
|
||||
$this
|
||||
->setName('searchindex:delete')
|
||||
$this->setName('searchindex:delete')
|
||||
->setDescription($this->language->lang('CLI_DESCRIPTION_SEARCHINDEX_DELETE'))
|
||||
->addArgument(
|
||||
'search-backend',
|
||||
InputArgument::REQUIRED,
|
||||
$this->language->lang('CLI_SEARCHINDEX_SEARCH_BACKEND_NAME')
|
||||
)
|
||||
;
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -58,10 +58,8 @@ class list_all extends command
|
||||
*/
|
||||
protected function configure()
|
||||
{
|
||||
$this
|
||||
->setName('searchindex:list')
|
||||
->setDescription($this->language->lang('CLI_DESCRIPTION_SEARCHINDEX_LIST'))
|
||||
;
|
||||
$this->setName('searchindex:list')
|
||||
->setDescription($this->language->lang('CLI_DESCRIPTION_SEARCHINDEX_LIST'));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -74,7 +72,7 @@ class list_all extends command
|
||||
*
|
||||
* @return int 0 if all is well, 1 if any errors occurred
|
||||
*/
|
||||
protected function execute(InputInterface $input, OutputInterface $output)
|
||||
protected function execute(InputInterface $input, OutputInterface $output): int
|
||||
{
|
||||
$io = new SymfonyStyle($input, $output);
|
||||
|
||||
|
Reference in New Issue
Block a user