Skip to content
Permalink
Browse files

Correct return types.

  • Loading branch information...
dereuromark committed Sep 16, 2014
1 parent 6e8f607 commit 1d8e4a9ad90743cc89862f6fc0432da974681246
Showing with 4 additions and 3 deletions.
  1. +4 −3 src/Console/Shell.php
@@ -321,7 +321,7 @@ public function dispatchShell() {
* @param array $argv Array of arguments to run the shell with. This array should be missing the shell name.
* @param bool $autoMethod Set to true to allow any public method to be called even if it
* was not defined as a subcommand. This is used by ShellDispatcher to make building simple shells easy.
* @return void
* @return mixed
* @link http://book.cakephp.org/3.0/en/console-and-shells.html#the-cakephp-console
*/
public function runCommand($argv, $autoMethod = false) {
@@ -384,7 +384,7 @@ public function runCommand($argv, $autoMethod = false) {
* Display the help in the correct format
*
* @param string $command The command to get help for.
* @return void
* @return int|bool
*/
protected function _displayHelp($command) {
$format = 'text';
@@ -591,7 +591,8 @@ public function createFile($path, $contents) {
if (strtolower($key) === 'q') {
$this->_io->out('<error>Quitting</error>.', 2);
return $this->_stop();
} elseif (strtolower($key) !== 'y') {
}
if (strtolower($key) !== 'y') {
$this->_io->out(sprintf('Skip `%s`', $path), 2);
return false;
}

0 comments on commit 1d8e4a9

Please sign in to comment.
You can’t perform that action at this time.