some doc block corrections as well a !! to (bool) convertion

remove nonsense default value
This commit is contained in:
euromark 2012-11-22 14:28:09 +01:00
parent 5870d71e84
commit 18fb132d41
3 changed files with 5 additions and 5 deletions

View file

@ -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;
}

View file

@ -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') {

View file

@ -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