@@ -4,11 +4,7 @@ |
||
4 | 4 | |
5 | 5 | use Consolidation\AnnotatedCommand\CommandData; |
6 | 6 | use Consolidation\AnnotatedCommand\Hooks\HookManager; |
7 | -use Symfony\Component\Console\Command\Command; |
|
8 | -use Symfony\Component\Console\ConsoleEvents; |
|
9 | -use Symfony\Component\Console\Event\ConsoleCommandEvent; |
|
10 | 7 | use Symfony\Component\Console\Output\OutputInterface; |
11 | -use Symfony\Component\EventDispatcher\EventSubscriberInterface; |
|
12 | 8 | |
13 | 9 | /** |
14 | 10 | * Call hooks. |
@@ -53,7 +53,7 @@ |
||
53 | 53 | if (count($replaceCommandHooks) > 1) { |
54 | 54 | $command_name = $commandData->annotationData()->get('command', 'unknown'); |
55 | 55 | $output->writeln("<comment>Warning: multiple implementations of the \"replace-command\" hook exist for the \"$command_name\" command:</comment>"); |
56 | - foreach($replaceCommandHooks as $replaceCommandHook) { |
|
56 | + foreach ($replaceCommandHooks as $replaceCommandHook) { |
|
57 | 57 | $class = get_class($replaceCommandHook[0]); |
58 | 58 | $method = $replaceCommandHook[1]; |
59 | 59 | $hook_name = "$class->$method"; |