Completed
Pull Request — master (#97)
by
unknown
02:25
created
src/CommandProcessor.php 4 patches
Doc Comments   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -301,7 +301,7 @@  discard block
 block discarded – undo
301 301
      * @param int $status
302 302
      * @param string $structuredOutput
303 303
      * @param mixed $originalResult
304
-     * @return type
304
+     * @return integer
305 305
      */
306 306
     protected function writeErrorMessage($output, $status, $structuredOutput, $originalResult)
307 307
     {
@@ -331,6 +331,7 @@  discard block
 block discarded – undo
331 331
     /**
332 332
      * If a status code was set, then return it; otherwise,
333 333
      * presume success.
334
+     * @param null|integer $status
334 335
      */
335 336
     protected function interpretStatusCode($status)
336 337
     {
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -7,12 +7,10 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
         if ($replaceDispatcher->hasReplaceCommandHook()) {
149 149
             $commandCallback = $replaceDispatcher->getReplacementCommand($commandData);
150 150
             $args_and_options = $commandData->getArgsAndOptions();
151
-            $args = [ $args_and_options ];
151
+            $args = [$args_and_options];
152 152
             $result = $this->runCommandCallback($commandCallback, $commandData, $args);
153 153
         }
154 154
         else {
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -150,8 +150,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Hooks/Dispatchers/ReplaceCommandHookDispatcher.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
         if ($this->logger && count($replaceCommandHooks) > 1) {
64 64
             $command_name = $commandData->annotationData()->get('command', 'unknown');
65 65
             $message = "Multiple implementations of the \"replace - command\" hook exist for the \"$command_name\" command.\n";
66
-            foreach($replaceCommandHooks as $replaceCommandHook) {
66
+            foreach ($replaceCommandHooks as $replaceCommandHook) {
67 67
                 $class = get_class($replaceCommandHook[0]);
68 68
                 $method = $replaceCommandHook[1];
69 69
                 $hook_name = "$class->$method";
Please login to merge, or discard this patch.