Skip to content

Commit

Permalink
simplify return types
Browse files Browse the repository at this point in the history
  • Loading branch information
davidrans committed Aug 20, 2024
1 parent baae44b commit 3957efd
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions QueryGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,10 +412,8 @@ private static function getPrimaryClauses(): array {
* Return the primary clause in this QueryGenerator instance.
* If multiple primary clauses have been set, all but the first set clause
* will be ignored.
*
* @return string|false
*/
private function getPrimaryMethod(): string|bool {
private function getPrimaryMethod(): string|false {
$primaryClauses = self::getPrimaryClauses();
$setMethods = $this->getSetMethods();
$setPrimaryClauses = array_intersect($primaryClauses, $setMethods);
Expand Down Expand Up @@ -464,10 +462,8 @@ private function constructClause(string $method, bool $skipClause = false): stri
/**
* return the appropriate glue string for the given clause, taking into
* account $this->useOr
*
* @return string|false
*/
private function getGlue(string $method): string|bool {
private function getGlue(string $method): string|false {
if ($method !== 'where' || !$this->useOr) {
return self::$methods[$method]['glue'];
} else {
Expand Down

0 comments on commit 3957efd

Please sign in to comment.