Skip to content

Commit

Permalink
fix indent
Browse files Browse the repository at this point in the history
  • Loading branch information
thomas-kl1 committed Aug 22, 2021
1 parent e1afb02 commit 20a6034
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Model/Customer/SourceProvider/FilterModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ public function apply(Collection $collection, Filter $filter): void
null
);
$collection->getSelect()->where(
$connection->prepareSqlCondition('IFNULL(' .
'cv.last_visit_at,'.
'GREATEST(IFNULL(cl.last_login_at, e.created_at), IFNULL(cl.last_logout_at, e.updated_at))' .
')', [$filter->getConditionType() => $filter->getValue()])
$connection->prepareSqlCondition(
'IFNULL(cv.last_visit_at, GREATEST(IFNULL(cl.last_login_at, e.created_at), IFNULL(cl.last_logout_at, e.updated_at)))',
[$filter->getConditionType() => $filter->getValue()]
)
);
}
}
Expand Down

0 comments on commit 20a6034

Please sign in to comment.