Skip to content
Permalink
Browse files

Minor doc block and code improvement

  • Loading branch information...
burzum committed Apr 3, 2018
1 parent 60c0b63 commit cd2c34a445eb34aebc3570a430b2b25f5344b85e
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/Database/Query.php
@@ -882,7 +882,7 @@ public function where($conditions = null, $types = [], $overwrite = false)
}
/**
* Convenience method that adds a NOT NULL condition to the query
* Adds a NOT NULL or IS NULL expression to the query
*
* @param array $fields A list of fields that should be not null
* @param bool $isNull Toggles between NOT NULL and NULL checks
@@ -894,9 +894,9 @@ protected function whereNullOrNotNull($fields, $isNull = true)
$this->where(function ($exp) use ($condition, $isNull) {
if ($isNull) {
return $exp->isNull($condition);
} else {
return $exp->isNotNull($condition);
}
return $exp->isNotNull($condition);
});
}

0 comments on commit cd2c34a

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