From 9e75de2f28e19ce1153f0cacbc7a8fcc6e4c098b Mon Sep 17 00:00:00 2001 From: Juan Basso Date: Thu, 28 Jul 2011 23:24:31 -0400 Subject: [PATCH] Fixed some API doc in core and utility folders. --- lib/Cake/Console/Shell.php | 2 +- lib/Cake/Core/CakePlugin.php | 23 +++++++++++++++++++++++ lib/Cake/Core/Configure.php | 2 ++ lib/Cake/Utility/ClassRegistry.php | 1 + lib/Cake/Utility/Debugger.php | 16 +++++++--------- lib/Cake/Utility/File.php | 1 + lib/Cake/Utility/Folder.php | 5 ++--- lib/Cake/Utility/Inflector.php | 12 ++---------- lib/Cake/Utility/Set.php | 6 +++--- lib/Cake/Utility/Validation.php | 7 ++++--- 10 files changed, 46 insertions(+), 29 deletions(-) diff --git a/lib/Cake/Console/Shell.php b/lib/Cake/Console/Shell.php index e0c4d33d4..0507b88c6 100644 --- a/lib/Cake/Console/Shell.php +++ b/lib/Cake/Console/Shell.php @@ -430,7 +430,7 @@ class Shell extends Object { * @param string $prompt Prompt text. * @param mixed $options Array or string of options. * @param string $default Default input value. - * @return Either the default value, or the user-provided input. + * @return mixed Either the default value, or the user-provided input. */ public function in($prompt, $options = null, $default = null) { if (!$this->interactive) { diff --git a/lib/Cake/Core/CakePlugin.php b/lib/Cake/Core/CakePlugin.php index 8551f82d8..0a12d97a6 100644 --- a/lib/Cake/Core/CakePlugin.php +++ b/lib/Cake/Core/CakePlugin.php @@ -1,5 +1,27 @@ path = $path; @@ -479,7 +479,6 @@ class Folder { /** * Returns the size in bytes of this Folder and its contents. * - * @param string $directory Path to directory * @return int size in bytes of current folder */ public function dirsize() { diff --git a/lib/Cake/Utility/Inflector.php b/lib/Cake/Utility/Inflector.php index 752167789..a7403ec31 100644 --- a/lib/Cake/Utility/Inflector.php +++ b/lib/Cake/Utility/Inflector.php @@ -438,9 +438,8 @@ class Inflector { /** * Returns the given lower_case_and_underscored_word as a CamelCased word. * - * @param string $lower_case_and_underscored_word Word to camelize + * @param string $lowerCaseAndUnderscoredWord Word to camelize * @return string Camelized word. LikeThis. - * @access public * @link http://book.cakephp.org/view/1479/Class-methods */ public static function camelize($lowerCaseAndUnderscoredWord) { @@ -456,7 +455,6 @@ class Inflector { * * @param string $camelCasedWord Camel-cased word to be "underscorized" * @return string Underscore-syntaxed version of the $camelCasedWord - * @access public * @link http://book.cakephp.org/view/1479/Class-methods */ public static function underscore($camelCasedWord) { @@ -471,9 +469,8 @@ class Inflector { * Returns the given underscored_word_group as a Human Readable Word Group. * (Underscores are replaced by spaces and capitalized following words.) * - * @param string $lower_case_and_underscored_word String to be made more readable + * @param string $lowerCaseAndUnderscoredWord String to be made more readable * @return string Human-readable string - * @access public * @link http://book.cakephp.org/view/1479/Class-methods */ public static function humanize($lowerCaseAndUnderscoredWord) { @@ -489,7 +486,6 @@ class Inflector { * * @param string $className Name of class to get database table name for * @return string Name of the database table for given class - * @access public * @link http://book.cakephp.org/view/1479/Class-methods */ public static function tableize($className) { @@ -505,7 +501,6 @@ class Inflector { * * @param string $tableName Name of database table to get class name for * @return string Class name - * @access public * @link http://book.cakephp.org/view/1479/Class-methods */ public static function classify($tableName) { @@ -521,7 +516,6 @@ class Inflector { * * @param string $string * @return string in variable form - * @access public * @link http://book.cakephp.org/view/1479/Class-methods */ public static function variable($string) { @@ -540,9 +534,7 @@ class Inflector { * * @param string $string the string you want to slug * @param string $replacement will replace keys in map - * @param array $map extra elements to map to the replacement * @return string - * @access public * @link http://book.cakephp.org/view/1479/Class-methods */ public static function slug($string, $replacement = '_') { diff --git a/lib/Cake/Utility/Set.php b/lib/Cake/Utility/Set.php index bd4c742ed..3af12a795 100644 --- a/lib/Cake/Utility/Set.php +++ b/lib/Cake/Utility/Set.php @@ -59,8 +59,7 @@ class Set { /** * Filters empty elements out of a route array, excluding '0'. * - * @param mixed $var Either an array to filter, or value when in callback - * @param boolean $isArray Force to tell $var is an array when $var is empty + * @param array $var Either an array to filter, or value when in callback * @return mixed Either filtered array, or true/false when in callback */ public static function filter(array $var) { @@ -159,7 +158,7 @@ class Set { * returned object (recursively). If $key is numeric will maintain array * structure * - * @param mixed $value Value to map + * @param array $array Array to map * @param string $class Class name * @param boolean $primary whether to assign first array key as the _name_ * @return mixed Mapped object @@ -506,6 +505,7 @@ class Set { * @param mixed $conditions An array of condition strings or an XPath expression * @param array $data An array of data to execute the match on * @param integer $i Optional: The 'nth'-number of the item being matched. + * @param integer $length * @return boolean */ public static function matches($conditions, $data = array(), $i = null, $length = null) { diff --git a/lib/Cake/Utility/Validation.php b/lib/Cake/Utility/Validation.php index 24275b272..3fef0cdec 100644 --- a/lib/Cake/Utility/Validation.php +++ b/lib/Cake/Utility/Validation.php @@ -462,7 +462,7 @@ class Validation { * Validation of an IP address. * * @param string $check The string to test. - * @param string $ipVersion The IP Protocol version to validate against + * @param string $type The IP Protocol version to validate against * @return boolean Success */ public static function ip($check, $type = 'both') { @@ -697,7 +697,6 @@ class Validation { * * @param string $check Value to check * @param boolean $strict Require URL to be prefixed by a valid scheme (one of http(s)/ftp(s)/file/news/gopher) - * @param string $ipVersion The IP Protocol version to validate against * @return boolean Success */ public static function url($check, $strict = false) { @@ -814,8 +813,10 @@ class Validation { /** * Luhn algorithm * - * @see http://en.wikipedia.org/wiki/Luhn_algorithm + * @param string|array $check + * @param boolean $deep * @return boolean Success + * @see http://en.wikipedia.org/wiki/Luhn_algorithm */ public static function luhn($check, $deep = false) { if (is_array($check)) {