From b51d3c9773ef3ecbeeb42bcbe37b17b630765c9a Mon Sep 17 00:00:00 2001 From: Mark Story Date: Tue, 27 Jun 2017 22:13:17 -0400 Subject: [PATCH] Fix PHPCS errors. --- src/Shell/HelpShell.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/Shell/HelpShell.php b/src/Shell/HelpShell.php index 10a5a669373..10a195de864 100644 --- a/src/Shell/HelpShell.php +++ b/src/Shell/HelpShell.php @@ -25,6 +25,11 @@ */ class HelpShell extends Shell { + /** + * The command collection to get help on. + * + * @var \Cake\Console\CommandCollection + */ protected $commands; /** @@ -69,12 +74,12 @@ public function main() if (!$this->commands) { $this->err('Could not print command list, no CommandCollection was set using setCommandCollection()'); + return; } if ($this->param('xml')) { - $this->asXml($this->commands); - return; + return $this->asXml($this->commands); } $this->asText($this->commands); }