Skip to content

Commit 1844c43

Browse files
committed
MAGETWO-44192: Tax rules in catalog does not work according to persisted customer data
1 parent c333b43 commit 1844c43

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

app/code/Magento/Persistent/Observer/EmulateCustomerObserver.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ public function __construct(
6060
\Magento\Customer\Model\Session $customerSession,
6161
\Magento\Customer\Api\CustomerRepositoryInterface $customerRepository,
6262
\Magento\Customer\Api\AddressRepositoryInterface $addressRepository
63-
6463
) {
6564
$this->_persistentSession = $persistentSession;
6665
$this->_persistentData = $persistentData;
@@ -73,6 +72,8 @@ public function __construct(
7372
* Set persistent data to customer session
7473
*
7574
* @param \Magento\Framework\Event\Observer $observer
75+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
76+
*
7677
* @return $this
7778
*/
7879
public function execute(\Magento\Framework\Event\Observer $observer)
@@ -95,7 +96,8 @@ public function execute(\Magento\Framework\Event\Observer $observer)
9596
? $address->getRegionId()
9697
: null,
9798
'postcode' => $address->getPostcode(),
98-
]);
99+
]
100+
);
99101
}
100102
}
101103

0 commit comments

Comments
 (0)