Skip to content

Commit 746add6

Browse files
committed
Make isLoading private with no prefix
1 parent 8be25bf commit 746add6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/code/Magento/Checkout/Model/Session.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class Session extends \Magento\Framework\Session\SessionManager
4848
*
4949
* @var bool
5050
*/
51-
protected $_isLoading = false;
51+
private $isLoading = false;
5252

5353
/**
5454
* Loaded order instance
@@ -219,10 +219,10 @@ public function getQuote()
219219
$this->_eventManager->dispatch('custom_quote_process', ['checkout_session' => $this]);
220220

221221
if ($this->_quote === null) {
222-
if ($this->_isLoading) {
222+
if ($this->isLoading) {
223223
throw new \LogicException("Infinite loop detected, review the trace for the looping path");
224224
}
225-
$this->_isLoading = true;
225+
$this->isLoading = true;
226226
$quote = $this->quoteFactory->create();
227227
if ($this->getQuoteId()) {
228228
try {
@@ -275,7 +275,7 @@ public function getQuote()
275275

276276
$quote->setStore($this->_storeManager->getStore());
277277
$this->_quote = $quote;
278-
$this->_isLoading = false;
278+
$this->isLoading = false;
279279
}
280280

281281
if (!$this->isQuoteMasked() && !$this->_customerSession->isLoggedIn() && $this->getQuoteId()) {

0 commit comments

Comments
 (0)