Skip to content

Commit 64066c4

Browse files
improved variable name
1 parent ec464f5 commit 64066c4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

app/code/Magento/Newsletter/Model/Plugin/RemoveSubscriberFromQueue.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,14 +18,14 @@ class RemoveSubscriberFromQueue
1818
/**
1919
* @var RemoveSubscriberFromQueueLink
2020
*/
21-
private $removeSubscriberFromQueue;
21+
private $removeSubscriberFromQueueLink;
2222

2323
/**
24-
* @param RemoveSubscriberFromQueueLink $removeSubscriberFromQueue
24+
* @param RemoveSubscriberFromQueueLink $removeSubscriberFromQueueLink
2525
*/
26-
public function __construct(RemoveSubscriberFromQueueLink $removeSubscriberFromQueue)
26+
public function __construct(RemoveSubscriberFromQueueLink $removeSubscriberFromQueueLink)
2727
{
28-
$this->removeSubscriberFromQueue = $removeSubscriberFromQueue;
28+
$this->removeSubscriberFromQueueLink = $removeSubscriberFromQueueLink;
2929
}
3030

3131
/**
@@ -39,7 +39,7 @@ public function __construct(RemoveSubscriberFromQueueLink $removeSubscriberFromQ
3939
public function afterUnsubscribe(Subscriber $subject, Subscriber $subscriber): Subscriber
4040
{
4141
if ($subscriber->isStatusChanged() && $subscriber->getSubscriberStatus() === Subscriber::STATUS_UNSUBSCRIBED) {
42-
$this->removeSubscriberFromQueue->execute((int) $subscriber->getId());
42+
$this->removeSubscriberFromQueueLink->execute((int) $subscriber->getId());
4343
}
4444

4545
return $subscriber;

0 commit comments

Comments
 (0)