Improve method name

This commit is contained in:
Marcus Moore
2025-05-20 16:41:52 -07:00
parent dc6951f341
commit 69cc46c2b8

View File

@@ -69,7 +69,7 @@ class CheckoutableListener
return;
}
$shouldSendEmailToUser = $this->shouldSendEmailToUser($event->checkoutable);
$shouldSendEmailToUser = $this->shouldSendCheckoutEmailToUser($event->checkoutable);
$shouldSendEmailToAlertAddress = $this->shouldSendEmailToAlertAddress();
$shouldSendWebhookNotification = $this->shouldSendWebhookNotification();
@@ -395,7 +395,7 @@ class CheckoutableListener
return Setting::getSettings()->webhook_selected === 'microsoft' && Str::contains(Setting::getSettings()->webhook_endpoint, 'workflows');
}
private function shouldSendEmailToUser(Model $checkoutable): bool
private function shouldSendCheckoutEmailToUser(Model $checkoutable): bool
{
/**
* Send an email if any of the following conditions are met: