refactoring the validator.

This commit is contained in:
Taylor Otwell 2011-10-29 21:27:03 -05:00
parent bb2cd3e373
commit faaea17fd3
1 changed files with 3 additions and 1 deletions

View File

@ -292,7 +292,9 @@ protected function validate_size($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];
}
/**