|
|
@@ -859,7 +859,7 @@ class Validation
|
|
|
* @param string $check Value to check
|
|
|
* @param bool $allowZero Set true to allow zero, defaults to false
|
|
|
* @return bool Success
|
|
|
- * @see http://en.wikipedia.org/wiki/Natural_number
|
|
|
+ * @see https://en.wikipedia.org/wiki/Natural_number
|
|
|
*/
|
|
|
public static function naturalNumber($check, $allowZero = false)
|
|
|
{
|
|
|
@@ -896,13 +896,13 @@ class Validation
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Checks that a value is a valid URL according to http://www.w3.org/Addressing/URL/url-spec.txt
|
|
|
+ * Checks that a value is a valid URL according to https://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
|
|
|
+ * a valid domain name as defined by section 2.3.1 of https://www.ietf.org/rfc/rfc1035.txt
|
|
|
* with an optional port number
|
|
|
* - an optional valid path
|
|
|
* - an optional query string (get parameters)
|
|
|
@@ -966,7 +966,7 @@ class Validation
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Checks that a value is a valid UUID - http://tools.ietf.org/html/rfc4122
|
|
|
+ * Checks that a value is a valid UUID - https://tools.ietf.org/html/rfc4122
|
|
|
*
|
|
|
* @param string $check Value to check
|
|
|
* @return bool Success
|
|
|
@@ -995,7 +995,7 @@ class Validation
|
|
|
*
|
|
|
* @param string|array $check Value to check.
|
|
|
* @return bool Success
|
|
|
- * @see http://en.wikipedia.org/wiki/Luhn_algorithm
|
|
|
+ * @see https://en.wikipedia.org/wiki/Luhn_algorithm
|
|
|
*/
|
|
|
public static function luhn($check)
|
|
|
{
|
|
|
@@ -1122,7 +1122,7 @@ class Validation
|
|
|
* @param string|array|\Psr\Http\Message\UploadedFileInterface $check Value to check.
|
|
|
* @param bool $allowNoFile Set to true to allow UPLOAD_ERR_NO_FILE as a pass.
|
|
|
* @return bool
|
|
|
- * @see http://www.php.net/manual/en/features.file-upload.errors.php
|
|
|
+ * @see https://secure.php.net/manual/en/features.file-upload.errors.php
|
|
|
*/
|
|
|
public static function uploadError($check, $allowNoFile = false)
|
|
|
{
|