verify: missing "static" on static methods
git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@3708 bf3deb0d-5f1a-0410-827f-c0cc1f45334c
This commit is contained in:
@@ -22,7 +22,7 @@ class verify
|
||||
* Return true or false
|
||||
* @param string $val The IP to test
|
||||
*/
|
||||
public function staticIs_ip ($val)
|
||||
public static function staticIs_ip ($val)
|
||||
{
|
||||
if (filter_var ($val, FILTER_VALIDATE_IP))
|
||||
return true;
|
||||
@@ -42,7 +42,7 @@ class verify
|
||||
* Return true or false
|
||||
* @param string $val The IPv4 to test
|
||||
*/
|
||||
public function staticIs_ipv4 ($val)
|
||||
public static function staticIs_ipv4 ($val)
|
||||
{
|
||||
if (filter_var ($val, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4))
|
||||
return true;
|
||||
@@ -240,7 +240,7 @@ class verify
|
||||
* @param string $val The string to test
|
||||
* @param string $allowedChars The allowed chars
|
||||
*/
|
||||
public function staticIsAllowedChars ($val, $allowedChars)
|
||||
public static function staticIsAllowedChars ($val, $allowedChars)
|
||||
{
|
||||
preg_match ('/^['.$allowedChars.']+/u', $val, $matches);
|
||||
if (isset ($matches[0]) &&
|
||||
|
||||
Reference in New Issue
Block a user