1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 04:04:12 +02:00

Merge pull request #6225 from rubencm/ticket/16790

[ticket/16790] Remove unused code
This commit is contained in:
Marc Alexander
2022-12-09 21:17:23 +01:00
committed by GitHub
34 changed files with 93 additions and 278 deletions

View File

@@ -44,9 +44,9 @@ class recreate extends \phpbb\console\command\command
*/
protected function execute(InputInterface $input, OutputInterface $output)
{
$parameters = array(
'command' => 'thumbnail:delete'
);
$command = $this->getApplication()->find('thumbnail:delete');
$parameters = [];
if ($input->getOption('verbose'))
{
@@ -56,14 +56,14 @@ class recreate extends \phpbb\console\command\command
$this->getApplication()->setAutoExit(false);
$input_delete = new ArrayInput($parameters);
$return = $this->getApplication()->run($input_delete, $output);
$return = $command->run($input_delete, $output);
if ($return === symfony_command::SUCCESS)
{
$parameters['command'] = 'thumbnail:generate';
$command = $this->getApplication()->find('thumbnail:generate');
$input_create = new ArrayInput($parameters);
$return = $this->getApplication()->run($input_create, $output);
$input_create = new ArrayInput([]);
$return = $command->run($input_create, $output);
}
$this->getApplication()->setAutoExit(true);