1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-10 02:36:38 +02:00

[ticket/12692] Fix tests and update style

PHPBB3-12692
This commit is contained in:
Tristan Darricau
2015-07-08 16:58:45 +02:00
parent e3e293f5a6
commit 618065ec16
5 changed files with 134 additions and 78 deletions

View File

@@ -49,12 +49,11 @@ class recreate extends \phpbb\console\command\command
if ($input->getOption('verbose'))
{
$parameters['-v'] = true;
$parameters['-' . str_repeat('v', $output->getVerbosity() - 1)] = true;
}
$this->getApplication()->setAutoExit(false);
$output->writeln('<comment>' . $this->user->lang('CLI_THUMBNAIL_DELETING') . '</comment>');
$input_delete = new ArrayInput($parameters);
$return = $this->getApplication()->run($input_delete, $output);
@@ -62,8 +61,6 @@ class recreate extends \phpbb\console\command\command
{
$parameters['command'] = 'thumbnail:generate';
$output->writeln('');
$output->writeln('<comment>' . $this->user->lang('CLI_THUMBNAIL_GENERATING') . '</comment>');
$input_create = new ArrayInput($parameters);
$return = $this->getApplication()->run($input_create, $output);
}