Skip to content

Commit b344793

Browse files
author
Oleksii Korshenko
committed
MAGETWO-69533: [BUGFIX][6244] Fix Issue with code label display in cart checkout. #9721
- fixed code style issue
1 parent c959d7e commit b344793

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/SalesRule/Plugin/CartTotalRepository.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ class CartTotalRepository
2727
* @var \Magento\SalesRule\Model\Coupon
2828
*/
2929
private $coupon;
30+
3031
/**
3132
* @var StoreManagerInterface
3233
*/
@@ -55,6 +56,8 @@ public function __construct(
5556
* @param \Magento\Quote\Model\Cart\CartTotalRepository $subject
5657
* @param \Magento\Quote\Api\Data\TotalsInterface $result
5758
* @return \Magento\Quote\Api\Data\TotalsInterface
59+
*
60+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
5861
*/
5962
public function afterGet(
6063
\Magento\Quote\Model\Cart\CartTotalRepository $subject,
@@ -86,7 +89,6 @@ public function afterGet(
8689

8790
/* @var $label \Magento\SalesRule\Model\Data\RuleLabel */
8891
foreach ($rule->getStoreLabels() as $label) {
89-
9092
if ($label->getStoreId() === 0) {
9193
$storeLabelFallback = $label->getStoreLabel();
9294
}
@@ -98,9 +100,7 @@ public function afterGet(
98100
}
99101

100102
$extensionAttributes->setCouponLabel(($storeLabel) ? $storeLabel : $storeLabelFallback);
101-
102103
$result->setExtensionAttributes($extensionAttributes);
103-
104104
return $result;
105105
}
106106
}

0 commit comments

Comments
 (0)