Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
kfriars authored and github-actions[bot] committed Mar 8, 2024
1 parent 961509f commit e003a7d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Concerns/QueriesPublishableModels.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,8 @@ public function where($column, $operator = null, $value = null, $boolean = 'and'

protected function draftAllowedQuery($query, $column, $operator = null, $value = null, $boolean = 'and')
{
return $query->where(fn ($query) =>
$query->where(fn ($query) => $this->publishedWhere($query, $column, $operator, $value, $boolean))
->orWhere(fn ($query) => $this->unpublishedWhere($query, $column, $operator, $value, $boolean))
return $query->where(fn ($query) => $query->where(fn ($query) => $this->publishedWhere($query, $column, $operator, $value, $boolean))
->orWhere(fn ($query) => $this->unpublishedWhere($query, $column, $operator, $value, $boolean))
);
}

Expand Down

0 comments on commit e003a7d

Please sign in to comment.