1
0
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:
Ruben Calvo
2022-12-11 16:54:22 +01:00
parent f9f55eb012
commit 6de699d318
9 changed files with 14 additions and 23 deletions

View File

@@ -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'));
}
/**

View File

@@ -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')
)
;
);
}
/**

View File

@@ -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')
)
;
);
}
/**

View File

@@ -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);