refactoring validation class.
This commit is contained in:
parent
6c98f5faee
commit
46199478d8
|
@ -489,10 +489,7 @@ protected function has_rule($attribute, $rules)
|
||||||
{
|
{
|
||||||
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;
|
||||||
|
|
Loading…
Reference in New Issue