cs: Fix code-style.

This commit is contained in:
Pol Dellaiera
2021-12-21 12:13:20 +01:00
parent e2bc868495
commit 530ad497bc
12 changed files with 23 additions and 16 deletions

View File

@@ -73,9 +73,9 @@ final class SingleTaskAclAwareRepository implements SingleTaskAclAwareRepository
$orXDate
->add(
$qb->expr()->orX(
$qb->expr()->isNull('t.endDate'),
$qb->expr()->gte('t.endDate - COALESCE(t.warningInterval, :intervalBlank)', ':now')
)
$qb->expr()->isNull('t.endDate'),
$qb->expr()->gte('t.endDate - COALESCE(t.warningInterval, :intervalBlank)', ':now')
)
);
$qb
->setParameter('intervalBlank', new DateInterval('P0D'))
@@ -87,11 +87,11 @@ final class SingleTaskAclAwareRepository implements SingleTaskAclAwareRepository
$orXDate
->add(
$qb->expr()->andX(
$qb->expr()->not($qb->expr()->isNull('t.endDate')),
$qb->expr()->not($qb->expr()->isNull('t.warningInterval')),
$qb->expr()->lte('t.endDate - t.warningInterval', ':now'),
$qb->expr()->gt('t.endDate', ':now')
)
$qb->expr()->not($qb->expr()->isNull('t.endDate')),
$qb->expr()->not($qb->expr()->isNull('t.warningInterval')),
$qb->expr()->lte('t.endDate - t.warningInterval', ':now'),
$qb->expr()->gt('t.endDate', ':now')
)
);
$qb
->setParameter('now', $now);
@@ -102,9 +102,9 @@ final class SingleTaskAclAwareRepository implements SingleTaskAclAwareRepository
$orXDate
->add(
$qb->expr()->andX(
$qb->expr()->not($qb->expr()->isNull('t.endDate')),
$qb->expr()->lte('t.endDate', ':now')
)
$qb->expr()->not($qb->expr()->isNull('t.endDate')),
$qb->expr()->lte('t.endDate', ':now')
)
);
$qb
->setParameter('now', $now);