From d5bcc7fcbd2756a3095b67b838adce80685b7d1a Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Wed, 15 Jun 2022 13:23:08 +0000 Subject: [PATCH] Apply fixes from StyleCI --- .../Driver/GroupableNotificationDriverInterface.php | 8 +++++++- .../Notification/Job/DelayedBlueprintGroupingJob.php | 10 ++++++++-- framework/core/src/Notification/NotificationSyncer.php | 2 +- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/framework/core/src/Notification/Driver/GroupableNotificationDriverInterface.php b/framework/core/src/Notification/Driver/GroupableNotificationDriverInterface.php index 0e7921e3e..6882d80a5 100644 --- a/framework/core/src/Notification/Driver/GroupableNotificationDriverInterface.php +++ b/framework/core/src/Notification/Driver/GroupableNotificationDriverInterface.php @@ -1,10 +1,16 @@ user->id))->dontRelease() + (new WithoutOverlapping('delayed-blueprint-grouping:'.$this->user->id))->dontRelease() ]; } } diff --git a/framework/core/src/Notification/NotificationSyncer.php b/framework/core/src/Notification/NotificationSyncer.php index 564199bea..332a9f0e1 100644 --- a/framework/core/src/Notification/NotificationSyncer.php +++ b/framework/core/src/Notification/NotificationSyncer.php @@ -120,7 +120,7 @@ class NotificationSyncer if ($driver instanceof GroupableNotificationDriverInterface) { $delay = $driver->blueprintGroupingDelay(); - foreach($newRecipients as $recipient) { + foreach ($newRecipients as $recipient) { $job = new DelayedBlueprintGroupingJob( $blueprint, $recipient,