Skip to content
Permalink
Browse files

shorter boolean checks

  • Loading branch information...
Jonas
Jonas committed May 30, 2016
1 parent 363ff8e commit a248513cdf8f237dbe0db5c44ee1a9df24fcd6ce
Showing with 1 addition and 3 deletions.
  1. +1 −3 src/ORM/Rule/ExistsIn.php
@@ -110,9 +110,7 @@ public function __invoke(EntityInterface $entity, array $options)
return true;
}
if ($this->_options['allowPartialNulls'] === true
&& $this->_checkPartialSchemaNulls($entity, $source) === true
) {
if ($this->_options['allowPartialNulls'] && $this->_checkPartialSchemaNulls($entity, $source)) {
return true;
}
if ($this->_fieldsAreNull($entity, $source)) {

0 comments on commit a248513

Please sign in to comment.
You can’t perform that action at this time.