diff --git a/src/Infrastructure/ORM/Notification/Repository/Notification.php b/src/Infrastructure/ORM/Notification/Repository/Notification.php index 6969c56301987ba1ba7421db69346ad141195c49..cef850c2950b663b779ee765c79ff66971191138 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();