Commit faaea17f by Taylor Otwell

refactoring the validator.

parent bb2cd3e3
...@@ -292,7 +292,9 @@ class Validator { ...@@ -292,7 +292,9 @@ class Validator {
*/ */
protected function validate_between($attribute, $value, $parameters) protected function validate_between($attribute, $value, $parameters)
{ {
return $this->size($attribute, $value) >= $parameters[0] and $this->size($attribute, $value) <= $parameters[1]; $size = $this->size($attribute, $value);
return $size >= $parameters[0] and $size <= $parameters[1];
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment