refactoring validation class.
This commit is contained in:
@@ -489,10 +489,7 @@ class Validator {
|
|||||||
{
|
{
|
||||||
list($rule, $parameters) = $this->parse($rule);
|
list($rule, $parameters) = $this->parse($rule);
|
||||||
|
|
||||||
if (in_array($rule, $rules))
|
if (in_array($rule, $rules)) return true;
|
||||||
{
|
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user