refactoring validation class.

This commit is contained in:
Taylor Otwell 2011-08-06 20:51:39 -05:00
parent 6c98f5faee
commit 46199478d8
1 changed files with 1 additions and 4 deletions

View File

@ -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;