diff --git a/lib/Cake/Utility/Folder.php b/lib/Cake/Utility/Folder.php index cc630759e..acd3c56c3 100644 --- a/lib/Cake/Utility/Folder.php +++ b/lib/Cake/Utility/Folder.php @@ -634,7 +634,7 @@ class Folder { * @return boolean Success * @link http://book.cakephp.org/2.0/en/core-utility-libraries/file-folder.html#Folder::copy */ - public function copy($options = array()) { + public function copy($options) { if (!$this->pwd()) { return false; } diff --git a/lib/Cake/Utility/Set.php b/lib/Cake/Utility/Set.php index 3c64d0412..72eba937d 100644 --- a/lib/Cake/Utility/Set.php +++ b/lib/Cake/Utility/Set.php @@ -203,7 +203,7 @@ class Set { * * $list defaults to 0 = no 1 = yes if param is not passed * - * @param array $select Key in $list to return + * @param string $select Key in $list to return * @param array|string $list can be an array or a comma-separated list. * @return string the value of the array key or null if no match * @link http://book.cakephp.org/2.0/en/core-utility-libraries/set.html#Set::enum @@ -467,7 +467,7 @@ class Set { return true; } if (is_string($conditions)) { - return !!Set::extract($conditions, $data); + return (bool)Set::extract($conditions, $data); } foreach ($conditions as $condition) { if ($condition === ':last') { diff --git a/lib/Cake/Utility/Validation.php b/lib/Cake/Utility/Validation.php index 6251ebb4c..40b8696d7 100644 --- a/lib/Cake/Utility/Validation.php +++ b/lib/Cake/Utility/Validation.php @@ -321,7 +321,7 @@ class Validation { * Validates a datetime value * All values matching the "date" core validation rule, and the "time" one will be valid * - * @param array $check Value to check + * @param string $check Value to check * @param string|array $dateFormat Format of the date part * Use a string or an array of the keys below. Arrays should be passed as array('dmy', 'mdy', etc) * ## Keys: @@ -381,7 +381,7 @@ class Validation { * - true => Any number of decimal places greater than 0, or a float|double. The '.' is required. * - 1..N => Exactly that many number of decimal places. The '.' is required. * - * @param integer $check The value the test for decimal + * @param float $check The value the test for decimal * @param integer $places * @param string $regex If a custom regular expression is used, this is the only validation that will occur. * @return boolean Success