From bf6462293d8768cfce3580605a7c5e0f6234bbda Mon Sep 17 00:00:00 2001 From: 77media-creations <51688338+77media-creations@users.noreply.github.com> Date: Mon, 22 Aug 2022 14:14:49 +1000 Subject: [PATCH] return void in handle method of the listener --- src/Listeners/NotificationSendingListener.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Listeners/NotificationSendingListener.php b/src/Listeners/NotificationSendingListener.php index c1e3195..e6f6db7 100644 --- a/src/Listeners/NotificationSendingListener.php +++ b/src/Listeners/NotificationSendingListener.php @@ -11,15 +11,15 @@ class NotificationSendingListener public function handle(NotificationSending $event) { if (!in_array(HasNotificationSubscriptions::class, class_uses_recursive($event->notifiable))) { - return $event; + return; } if (in_array($event->channel, config('notification-subscriptions.excluded_channels'))) { - return $event; + return; } if ($event->notification->ignoreSubscriptions ?? false) { - return $event; + return; } $model = null; @@ -39,6 +39,6 @@ public function handle(NotificationSending $event) return false; } - return $event; + return; } }