diff --git a/lib/Cake/Console/Command/Task/ProjectTask.php b/lib/Cake/Console/Command/Task/ProjectTask.php index 4e2f3cc61..8784c4cde 100644 --- a/lib/Cake/Console/Command/Task/ProjectTask.php +++ b/lib/Cake/Console/Command/Task/ProjectTask.php @@ -136,7 +136,7 @@ class ProjectTask extends Shell { /** * Checks PHP's include_path for CakePHP. * - * @return bool Indicates whether or not CakePHP exists on include_path + * @return boolean Indicates whether or not CakePHP exists on include_path */ public function cakeOnIncludePath() { $paths = explode(PATH_SEPARATOR, ini_get('include_path')); @@ -304,7 +304,7 @@ class ProjectTask extends Shell { * Generates and writes CAKE_CORE_INCLUDE_PATH * * @param string $path Project path - * @param bool $hardCode Wether or not define calls should be hardcoded. + * @param boolean $hardCode Wether or not define calls should be hardcoded. * @return boolean Success */ public function corePath($path, $hardCode = true) { @@ -326,7 +326,7 @@ class ProjectTask extends Shell { * * @param string $filename The filename to operate on. * @param boolean $hardCode Whether or not the define should be uncommented. - * @retun bool Success + * @return boolean Success */ protected function _replaceCorePath($filename, $hardCode) { $contents = file_get_contents($filename); diff --git a/lib/Cake/Console/ConsoleInputOption.php b/lib/Cake/Console/ConsoleInputOption.php index 4144c11a3..d52e3cb6e 100644 --- a/lib/Cake/Console/ConsoleInputOption.php +++ b/lib/Cake/Console/ConsoleInputOption.php @@ -75,6 +75,7 @@ class ConsoleInputOption { * @param boolean $boolean Whether this option is a boolean option. Boolean options don't consume extra tokens * @param string $default The default value for this option. * @param array $choices Valid choices for this option. + * @throws ConsoleException */ public function __construct($name, $short = null, $help = '', $boolean = false, $default = '', $choices = array()) { if (is_array($name) && isset($name['name'])) { diff --git a/lib/Cake/View/Helper/CacheHelper.php b/lib/Cake/View/Helper/CacheHelper.php index a09623afe..1e1e97800 100644 --- a/lib/Cake/View/Helper/CacheHelper.php +++ b/lib/Cake/View/Helper/CacheHelper.php @@ -185,10 +185,9 @@ class CacheHelper extends AppHelper { * Munges the output from a view with cache tags, and numbers the sections. * This helps solve issues with empty/duplicate content. * - * @param string $content The content to munge. * @return string The content with cake:nocache tags replaced. */ - function _replaceSection($matches) { + function _replaceSection() { $this->_counter += 1; return sprintf('', $this->_counter); }