Completed
Push — master ( cb169f...e72b8e )
by Greg
02:15
created
src/Parser/Internal/CommandDocBlockParser2.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,6 @@
 block discarded – undo
4 4
 use phpDocumentor\Reflection\DocBlock;
5 5
 use phpDocumentor\Reflection\DocBlock\Tag\ParamTag;
6 6
 use phpDocumentor\Reflection\DocBlock\Tag\ReturnTag;
7
-use Consolidation\AnnotatedCommand\Parser\CommandInfo;
8
-use Consolidation\AnnotatedCommand\Parser\DefaultsWithDescriptions;
9 7
 
10 8
 /**
11 9
  * Given a class and method name, parse the annotations in the
Please login to merge, or discard this patch.
src/CommandProcessor.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,11 +1,9 @@
 block discarded – undo
1 1
 <?php
2 2
 namespace Consolidation\AnnotatedCommand;
3 3
 
4
-use Symfony\Component\Console\Command\Command;
5 4
 use Symfony\Component\Console\Input\InputInterface;
6 5
 use Symfony\Component\Console\Output\OutputInterface;
7 6
 use Symfony\Component\Console\Output\ConsoleOutputInterface;
8
-
9 7
 use Consolidation\OutputFormatters\FormatterManager;
10 8
 use Consolidation\OutputFormatters\FormatterOptions;
11 9
 use Consolidation\AnnotatedCommand\Hooks\HookManager;
Please login to merge, or discard this patch.
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.
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -293,10 +293,11 @@
 block discarded – undo
293 293
     {
294 294
         $result = [];
295 295
         $names = $this->addWildcardHooksToNames($command->getNames(), $command->getAnnotationData());
296
-        foreach ($names as $name)
297
-        if (isset($this->hookOptions[$name])) {
296
+        foreach ($names as $name) {
297
+                if (isset($this->hookOptions[$name])) {
298 298
             $result = array_merge($result, $this->hookOptions[$name]);
299 299
         }
300
+        }
300 301
         return $result;
301 302
     }
302 303
 
Please login to merge, or discard this patch.