Browse Source

Fixing more documentations.

Juan Basso 14 years ago
parent
commit
40654df5ab

+ 3 - 3
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);

+ 1 - 0
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'])) {

+ 1 - 2
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('<!--nocache:%03d-->', $this->_counter);
 	}