Skip to content

Commit

Permalink
Resolve issues with Magento coding standard line length from previous…
Browse files Browse the repository at this point in the history
… commit
  • Loading branch information
Chris Mallory committed Feb 26, 2021
1 parent 338b6a2 commit 6d5bbbf
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ViewModel/Cart/ProgressBar.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
use Magento\Framework\Exception\LocalizedException;
use Magento\Framework\Exception\NoSuchEntityException;
use Magento\Framework\Pricing\PriceCurrencyInterface;
use Magento\Store\Model\ScopeInterface;
use Magento\Framework\View\Element\Block\ArgumentInterface;
use Magento\Store\Model\ScopeInterface;

class ProgressBar implements ArgumentInterface
{
Expand Down Expand Up @@ -108,7 +108,10 @@ public function isFreeShippingEligible(): bool
$currentTotal = $this->getCurrentTotal();
if ($this->scopeConfig->getValue(self::CHECKOUT_CART_XML_CONFIG_PATH
. 'use_freeshipping_method_config', ScopeInterface::SCOPE_STORE)) {
if ($this->scopeConfig->getValue(self::CARRIERS_FREE_SHIPPING_XML_CONFIG_PATH . 'active', ScopeInterface::SCOPE_STORE)) {
if ($this->scopeConfig->getValue(
self::CARRIERS_FREE_SHIPPING_XML_CONFIG_PATH . 'active',
ScopeInterface::SCOPE_STORE
)) {
return ($currentTotal >= $this->getFreeShippingMethodMinValue());
}
return false;
Expand Down

0 comments on commit 6d5bbbf

Please sign in to comment.