mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 05:34:06 -08:00
removed unused variables
This commit is contained in:
parent
ce68f550d8
commit
58ff641f82
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue