Skip to content

Commit

Permalink
Correct return types.
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Sep 16, 2014
1 parent 6e8f607 commit 1d8e4a9
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/Console/Shell.php
Expand Up @@ -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) {
Expand Down Expand Up @@ -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';
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 1d8e4a9

Please sign in to comment.