Skip to content

Commit

Permalink
shorter boolean checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas committed May 30, 2016
1 parent 363ff8e commit a248513
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/ORM/Rule/ExistsIn.php
Expand Up @@ -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)) {
Expand Down

0 comments on commit a248513

Please sign in to comment.