Skip to content

Commit

Permalink
Minor doc block and code improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
burzum committed Apr 3, 2018
1 parent 60c0b63 commit cd2c34a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Database/Query.php
Expand Up @@ -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
Expand All @@ -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);
});
}

Expand Down

0 comments on commit cd2c34a

Please sign in to comment.