removed unused variables

This commit is contained in:
Godfrey M 2024-10-24 22:53:53 -07:00
parent ce68f550d8
commit 58ff641f82

View file

@ -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);