From 931bdb0cd76e2f4cc434e5197aae6478de7c2eda Mon Sep 17 00:00:00 2001 From: Alejandro Celaya Date: Sun, 11 Dec 2022 13:03:19 +0100 Subject: [PATCH] Fixed coding styles --- .../src/ShortUrl/Repository/ShortUrlRepository.php | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/module/Core/src/ShortUrl/Repository/ShortUrlRepository.php b/module/Core/src/ShortUrl/Repository/ShortUrlRepository.php index 34c3b34c..b1c82973 100644 --- a/module/Core/src/ShortUrl/Repository/ShortUrlRepository.php +++ b/module/Core/src/ShortUrl/Repository/ShortUrlRepository.php @@ -144,11 +144,12 @@ class ShortUrlRepository extends EntitySpecificationRepository implements ShortU } if ($filtering->excludePastValidUntil) { - $qb->andWhere($qb->expr()->orX( - $qb->expr()->isNull('s.validUntil'), - $qb->expr()->gte('s.validUntil', ':minValidSince'), - )) - ->setParameter('minValidSince', Chronos::now()->toDateTimeString()); + $qb + ->andWhere($qb->expr()->orX( + $qb->expr()->isNull('s.validUntil'), + $qb->expr()->gte('s.validUntil', ':minValidSince'), + )) + ->setParameter('minValidSince', Chronos::now()->toDateTimeString()); } $this->applySpecification($qb, $filtering->apiKey?->spec(), 's');