mirror of
https://github.com/shlinkio/shlink.git
synced 2024-11-22 08:56:42 -06:00
Fixed coding styles
This commit is contained in:
parent
8807a78463
commit
931bdb0cd7
@ -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');
|
||||
|
Loading…
Reference in New Issue
Block a user