From 58ff641f822eec54ebd40c9904c26034e215c550 Mon Sep 17 00:00:00 2001 From: Godfrey M Date: Thu, 24 Oct 2024 22:53:53 -0700 Subject: [PATCH] removed unused variables --- app/Listeners/CheckoutableListener.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/Listeners/CheckoutableListener.php b/app/Listeners/CheckoutableListener.php index 3c976eee86..7d8b5c1c9d 100644 --- a/app/Listeners/CheckoutableListener.php +++ b/app/Listeners/CheckoutableListener.php @@ -52,14 +52,13 @@ class CheckoutableListener */ $settings = Setting::getSettings(); $acceptance = $this->getCheckoutAcceptance($event); - $alertsEmailsArray = []; $adminCcEmailsArray = []; if($settings->admin_cc_email !== '') { $adminCcEmail = $settings->admin_cc_email; $adminCcEmailsArray = array_map('trim', explode(',', $adminCcEmail)); } - $ccEmails = array_filter(array_merge($alertsEmailsArray, $adminCcEmailsArray)); + $ccEmails = array_filter($adminCcEmailsArray); $notifiable = $event->checkedOutTo; $mailable = $this->getCheckoutMailType($event, $acceptance); // Send email notifications @@ -121,14 +120,13 @@ class CheckoutableListener } } $settings = Setting::getSettings(); - $alertsEmailsArray = []; $adminCcEmailsArray = []; if($settings->admin_cc_email !== '') { $adminCcEmail = $settings->admin_cc_email; $adminCcEmailsArray = array_map('trim', explode(',', $adminCcEmail)); } - $ccEmails = array_filter(array_merge($alertsEmailsArray, $adminCcEmailsArray)); + $ccEmails = array_filter($adminCcEmailsArray); $notifiable = $event->checkedOutTo; $mailable = $this->getCheckinMailType($event);