Skip to content

A free open source IT asset/license management system

Improve method name

Marcus Moorea7054f0b1e7c
diff --git a/app/Listeners/CheckoutableListener.php b/app/Listeners/CheckoutableListener.php
index 75c2806a2a..970a385a91 100644
--- a/app/Listeners/CheckoutableListener.php
+++ b/app/Listeners/CheckoutableListener.php
@@ -46,7 +46,7 @@ class CheckoutableListener
*/
public function onCheckedOut($event)
{
- if ($this->shouldNotSendAnyNotifications($event->checkoutable)) {
+ if ($this->shouldNotSendEmailNotifications($event->checkoutable)) {
return;
}
@@ -141,7 +141,7 @@ class CheckoutableListener
{
Log::debug('onCheckedIn in the Checkoutable listener fired');
- if ($this->shouldNotSendAnyNotifications($event->checkoutable)) {
+ if ($this->shouldNotSendEmailNotifications($event->checkoutable)) {
return;
}
@@ -383,7 +383,7 @@ class CheckoutableListener
);
}
- private function shouldNotSendAnyNotifications($checkoutable): bool
+ private function shouldNotSendEmailNotifications($checkoutable): bool
{
if(in_array(get_class($checkoutable), $this->skipNotificationsFor)) {
return true;