@@ -4,8 +4,6 @@ |
||
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 |
@@ -1,11 +1,9 @@ |
||
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; |
@@ -4,11 +4,9 @@ |
||
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; |
@@ -293,10 +293,11 @@ |
||
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 |