Completed
Pull Request — master (#97)
by
unknown
02:45
created
src/Hooks/Dispatchers/ReplaceCommandHookDispatcher.php 2 patches
Unused Use Statements   -4 removed lines patch added patch discarded remove patch
@@ -4,11 +4,7 @@
 block discarded – undo
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.
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
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";
Please login to merge, or discard this patch.