|
20 | 20 | use Symfony\Component\Console\Output\OutputInterface; |
21 | 21 | use Symfony\Component\DependencyInjection\Alias; |
22 | 22 | use Symfony\Component\DependencyInjection\Definition; |
23 | | -use Symfony\Component\DependencyInjection\ContainerBuilder; |
24 | 23 | use Symfony\Component\DependencyInjection\Reference; |
25 | 24 |
|
26 | 25 | /** |
|
31 | 30 | class debug extends \phpbb\console\command\command |
32 | 31 | { |
33 | 32 | /** |
34 | | - * @var ContainerBuilder|null |
| 33 | + * @var \Symfony\Component\DependencyInjection\ContainerBuilder|null |
35 | 34 | */ |
36 | 35 | protected $containerBuilder; |
37 | 36 |
|
@@ -168,7 +167,7 @@ protected function validateInput(InputInterface $input) |
168 | 167 | { |
169 | 168 | throw new \InvalidArgumentException($this->user->lang('NICOFUMA_DEBUGTOOLS_CLI_EXCEPTION_CONTAINER_DEBUG_INCOMPATIBLE_OPTIONS_ARGUMENTS')); |
170 | 169 | } |
171 | | - elseif ((null === $name) && $optionsCount > 1) |
| 170 | + else if ((null === $name) && $optionsCount > 1) |
172 | 171 | { |
173 | 172 | throw new \InvalidArgumentException($this->user->lang('NICOFUMA_DEBUGTOOLS_CLI_EXCEPTION_CONTAINER_DEBUG_INCOMPATIBLE_OPTIONS')); |
174 | 173 | } |
@@ -297,7 +296,7 @@ protected function outputServices(OutputInterface $output, $serviceIds, $showPri |
297 | 296 | $output->writeln(vsprintf($format, $arguments)); |
298 | 297 | } |
299 | 298 | } |
300 | | - elseif ($definition instanceof Alias) |
| 299 | + else if ($definition instanceof Alias) |
301 | 300 | { |
302 | 301 | $alias = $definition; |
303 | 302 | $output->writeln(vsprintf($format, $this->buildArgumentsArray($serviceId, 'n/a', sprintf('<comment>' . $this->user->lang('ALIAS_FOR') . '</comment> <info>%s</info>', (string) $alias), count($maxTags) ? array_fill(0, count($maxTags), "") : array()))); |
@@ -400,7 +399,7 @@ protected function outputService(OutputInterface $output, $serviceId) |
400 | 399 | $file = $definition->getFile() ? $definition->getFile() : '-'; |
401 | 400 | $output->writeln(sprintf('<comment>' . $this->user->lang('REQUIRED_FILE') . '</comment> %s', $file)); |
402 | 401 | } |
403 | | - elseif ($definition instanceof Alias) |
| 402 | + else if ($definition instanceof Alias) |
404 | 403 | { |
405 | 404 | $alias = $definition; |
406 | 405 | $output->writeln($this->user->lang('NICOFUMA_DEBUGTOOLS_CLI_CONTAINER_SERVICE_ALIAS_FOR', (string) $alias)); |
@@ -467,7 +466,7 @@ protected function outputParameters(OutputInterface $output, $parameters) |
467 | 466 | /** |
468 | 467 | * Loads the ContainerBuilder from the cache. |
469 | 468 | * |
470 | | - * @return ContainerBuilder |
| 469 | + * @return \Symfony\Component\DependencyInjection\ContainerBuilder |
471 | 470 | * |
472 | 471 | * @throws \LogicException |
473 | 472 | */ |
|
0 commit comments