@@ -301,7 +301,7 @@ discard block |
||
| 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 |
||
| 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 | { |
@@ -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 | } |