Completed
Pull Request — master (#42)
by Greg
02:53
created
src/Hooks/HookManager.php 2 patches
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,11 +4,9 @@
 block discarded – undo
4 4
 use Symfony\Component\Console\Command\Command;
5 5
 use Symfony\Component\Console\Input\InputInterface;
6 6
 use Symfony\Component\Console\Output\OutputInterface;
7
-
8 7
 use Symfony\Component\Console\ConsoleEvents;
9 8
 use Symfony\Component\Console\Event\ConsoleCommandEvent;
10 9
 use Symfony\Component\EventDispatcher\EventSubscriberInterface;
11
-
12 10
 use Consolidation\AnnotatedCommand\ExitCodeInterface;
13 11
 use Consolidation\AnnotatedCommand\OutputDataInterface;
14 12
 use Consolidation\AnnotatedCommand\AnnotationData;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -391,7 +391,7 @@  discard block
 block discarded – undo
391 391
     {
392 392
         $names = array_merge(
393 393
             (array)$names,
394
-            ($annotationData == null) ? [] : array_map(function ($item) {
394
+            ($annotationData == null) ? [] : array_map(function($item) {
395 395
                 return "@$item";
396 396
             }, $annotationData->keys())
397 397
         );
@@ -412,7 +412,7 @@  discard block
 block discarded – undo
412 412
         $hooks = [];
413 413
         foreach ($stages as $stage) {
414 414
             foreach ((array)$names as $name) {
415
-                $hooks = array_merge($hooks, $this->getHook($name, $stage . $hook));
415
+                $hooks = array_merge($hooks, $this->getHook($name, $stage.$hook));
416 416
             }
417 417
         }
418 418
         return $hooks;
Please login to merge, or discard this patch.