From eab4abeca7c81ec489513bd1903298aabea35bba Mon Sep 17 00:00:00 2001 From: Jonathan Foucher <jfoucher@gmail.com> Date: Thu, 7 Sep 2023 10:40:24 +0200 Subject: [PATCH] cs fix --- .../ORM/Notification/Repository/Notification.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Infrastructure/ORM/Notification/Repository/Notification.php b/src/Infrastructure/ORM/Notification/Repository/Notification.php index 6969c5630..cef850c29 100644 --- a/src/Infrastructure/ORM/Notification/Repository/Notification.php +++ b/src/Infrastructure/ORM/Notification/Repository/Notification.php @@ -137,11 +137,11 @@ class Notification extends CRUDRepository implements Repository\Notification } // If notifications are active, delete old notifications - + $qb = $this->getManager()->createQueryBuilder(); $qb->where('o.createdAt < :date'); $prevDate = new \DateTime(); - $prevDate->modify('-'.$this->saveNotificationsDuration); + $prevDate->modify('-' . $this->saveNotificationsDuration); $qb->setParameter('date', $prevDate); $qb->delete('App\Domain\Notification\Model\NotificationUser as o'); $qb->getQuery()->execute(); @@ -149,7 +149,7 @@ class Notification extends CRUDRepository implements Repository\Notification $qb = $this->getManager()->createQueryBuilder(); $qb->where('o.createdAt < :date'); $prevDate = new \DateTime(); - $prevDate->modify('-'.$this->saveNotificationsDuration); + $prevDate->modify('-' . $this->saveNotificationsDuration); $qb->setParameter('date', $prevDate); $qb->delete('App\Domain\Notification\Model\Notification as o'); $qb->getQuery()->execute(); -- GitLab