Fixed coding styles

This commit is contained in:
Alejandro Celaya 2022-12-11 13:03:19 +01:00
parent 8807a78463
commit 931bdb0cd7

View File

@ -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');