@@ -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 |
@@ -3,8 +3,6 @@ |
||
| 3 | 3 | |
| 4 | 4 | use Consolidation\AnnotatedCommand\Hooks\HookManager; |
| 5 | 5 | use Consolidation\AnnotatedCommand\Parser\CommandInfo; |
| 6 | -use Consolidation\OutputFormatters\FormatterManager; |
|
| 7 | -use Consolidation\OutputFormatters\Options\FormatterOptions; |
|
| 8 | 6 | use Consolidation\AnnotatedCommand\Help\HelpDocumentAlter; |
| 9 | 7 | use Symfony\Component\Console\Command\Command; |
| 10 | 8 | use Symfony\Component\Console\Input\InputArgument; |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | namespace Consolidation\AnnotatedCommand\Parser; |
| 3 | 3 | |
| 4 | 4 | use Symfony\Component\Console\Input\InputOption; |
| 5 | -use Consolidation\AnnotatedCommand\Parser\Internal\CommandDocBlockParser; |
|
| 6 | 5 | use Consolidation\AnnotatedCommand\Parser\Internal\CommandDocBlockParserFactory; |
| 7 | 6 | use Consolidation\AnnotatedCommand\AnnotationData; |
| 8 | 7 | |
@@ -7,12 +7,10 @@ |
||
| 7 | 7 | use Symfony\Component\Console\Input\InputInterface; |
| 8 | 8 | use Symfony\Component\Console\Output\OutputInterface; |
| 9 | 9 | use Symfony\Component\Console\Output\ConsoleOutputInterface; |
| 10 | - |
|
| 11 | 10 | use Consolidation\OutputFormatters\FormatterManager; |
| 12 | 11 | use Consolidation\OutputFormatters\Options\FormatterOptions; |
| 13 | 12 | use Consolidation\AnnotatedCommand\Hooks\HookManager; |
| 14 | 13 | use Consolidation\AnnotatedCommand\Options\PrepareFormatter; |
| 15 | - |
|
| 16 | 14 | use Consolidation\AnnotatedCommand\Hooks\Dispatchers\InitializeHookDispatcher; |
| 17 | 15 | use Consolidation\AnnotatedCommand\Hooks\Dispatchers\OptionsHookDispatcher; |
| 18 | 16 | use Consolidation\AnnotatedCommand\Hooks\Dispatchers\InteractHookDispatcher; |
@@ -150,8 +150,7 @@ |
||
| 150 | 150 | $args_and_options = $commandData->getArgsAndOptions(); |
| 151 | 151 | $args = [ $args_and_options ]; |
| 152 | 152 | $result = $this->runCommandCallback($commandCallback, $commandData, $args); |
| 153 | - } |
|
| 154 | - else { |
|
| 153 | + } else { |
|
| 155 | 154 | // Run the command, alter the results, and then handle output and status |
| 156 | 155 | $result = $this->runCommandCallback($commandCallback, $commandData); |
| 157 | 156 | } |