Commit 3de8630f by Alexander Kochetov

Code readability fix

parent af09fe16
...@@ -66,8 +66,10 @@ class RangeValidator extends Validator ...@@ -66,8 +66,10 @@ class RangeValidator extends Validator
$valid = false; $valid = false;
foreach ((array)$value as $v) { foreach ((array)$value as $v) {
if (!($valid = !$this->not && in_array($v, $this->range, $this->strict) $valid = !$this->not && in_array($v, $this->range, $this->strict)
|| $this->not && !in_array($v, $this->range, $this->strict))) { || $this->not && !in_array($v, $this->range, $this->strict);
if ($valid) {
break; break;
} }
} }
......
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