Commit 8188cc78 by Alexander Kochetov

Refactoring

parent 3eb257c3
......@@ -96,12 +96,10 @@ class ExistValidator extends Validator
if ($query->count() !== count($object->$attribute)) {
$this->addError($object, $attribute, $this->message);
}
} else {
if (!$query->exists()) {
} elseif (!$query->exists()) {
$this->addError($object, $attribute, $this->message);
}
}
}
/**
* @inheritdoc
......
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