Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Reformatting doc blocks.

  • Loading branch information...
commit 47e6f332d7264ddfe3345a5c853e6a59edfc056d 1 parent 63ee8f0
@markstory markstory authored
Showing with 16 additions and 13 deletions.
  1. +16 −13 cake/libs/validation.php
View
29 cake/libs/validation.php
@@ -213,8 +213,8 @@ function blank($check) {
*
* @param mixed $check credit card number to validate
* @param mixed $type 'all' may be passed as a sting, defaults to fast which checks format of most major credit cards
- * if an array is used only the values of the array are checked.
- * Example: array('amex', 'bankcard', 'maestro')
+ * if an array is used only the values of the array are checked.
+ * Example: array('amex', 'bankcard', 'maestro')
* @param boolean $deep set to true this will check the Luhn algorithm of the credit card.
* @param string $regex A custom regex can also be passed, this will be used instead of the defined regex values
* @return boolean Success
@@ -608,12 +608,14 @@ function money($check, $symbolPosition = 'left') {
/**
* Validate a multiple select.
*
+ * Valid Options
+ *
+ * - in => provide a list of choices that selections must be made from
+ * - max => maximun number of non-zero choices that can be made
+ * - min => minimum number of non-zero choices that can be made
+ *
* @param mixed $check Value to check
* @param mixed $options Options for the check.
- * Valid options
- * in => provide a list of choices that selections must be made from
- * max => maximun number of non-zero choices that can be made
- * min => minimum number of non-zero choices that can be made
* @return boolean Success
* @access public
*/
@@ -792,13 +794,14 @@ function ssn($check, $regex = null, $country = null) {
* Checks that a value is a valid URL according to http://www.w3.org/Addressing/URL/url-spec.txt
*
* The regex checks for the following component parts:
- * a valid, optional, scheme
- * a valid ip address OR
- * a valid domain name as defined by section 2.3.1 of http://www.ietf.org/rfc/rfc1035.txt
- * with an optional port number
- * an optional valid path
- * an optional query string (get parameters)
- * an optional fragment (anchor tag)
+ *
+ * - a valid, optional, scheme
+ * - a valid ip address OR
+ * a valid domain name as defined by section 2.3.1 of http://www.ietf.org/rfc/rfc1035.txt
+ * with an optional port number
+ * - an optional valid path
+ * - an optional query string (get parameters)
+ * - an optional fragment (anchor tag)
*
* @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)
Please sign in to comment.
Something went wrong with that request. Please try again.