|
|
@@ -398,8 +398,8 @@ 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 float $check The value the test for decimal
|
|
|
- * @param integer $places
|
|
|
+ * @param float $check The value the test for decimal.
|
|
|
+ * @param integer $places Decimal places.
|
|
|
* @param string $regex If a custom regular expression is used, this is the only validation that will occur.
|
|
|
* @return boolean Success
|
|
|
*/
|
|
|
@@ -900,8 +900,8 @@ class Validation {
|
|
|
/**
|
|
|
* Luhn algorithm
|
|
|
*
|
|
|
- * @param string|array $check
|
|
|
- * @param boolean $deep
|
|
|
+ * @param string|array $check Value to check.
|
|
|
+ * @param boolean $deep If true performs deep check.
|
|
|
* @return boolean Success
|
|
|
* @see http://en.wikipedia.org/wiki/Luhn_algorithm
|
|
|
*/
|
|
|
@@ -933,7 +933,7 @@ class Validation {
|
|
|
/**
|
|
|
* Checks the mime type of a file.
|
|
|
*
|
|
|
- * @param string|array $check
|
|
|
+ * @param string|array $check Value to check.
|
|
|
* @param array|string $mimeTypes Array of mime types or regex pattern to check.
|
|
|
* @return boolean Success
|
|
|
* @throws CakeException when mime type can not be determined.
|
|
|
@@ -963,9 +963,9 @@ class Validation {
|
|
|
/**
|
|
|
* Checks the filesize
|
|
|
*
|
|
|
- * @param string|array $check
|
|
|
- * @param integer|string $size Size in bytes or human readable string like '5MB'
|
|
|
- * @param string $operator See `Validation::comparison()`
|
|
|
+ * @param string|array $check Value to check.
|
|
|
+ * @param string $operator See `Validation::comparison()`.
|
|
|
+ * @param integer|string $size Size in bytes or human readable string like '5MB'.
|
|
|
* @return boolean Success
|
|
|
*/
|
|
|
public static function fileSize($check, $operator = null, $size = null) {
|
|
|
@@ -984,7 +984,7 @@ class Validation {
|
|
|
/**
|
|
|
* Checking for upload errors
|
|
|
*
|
|
|
- * @param string|array $check
|
|
|
+ * @param string|array $check Value to check.
|
|
|
* @return boolean
|
|
|
* @see http://www.php.net/manual/en/features.file-upload.errors.php
|
|
|
*/
|