Skip to content

Commit b7cde02

Browse files
author
Yu Tang
committed
MAGETWO-30415: [GITHUB] \Magento\Framework\Pricing\PriceCurrencyInterface depends on Magento application code #682
- Change parameter name in implementation class to be consistent with interface
1 parent 819015c commit b7cde02

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/Directory/Model/PriceCurrency.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,10 +59,10 @@ public function convert($amount, $scope = null, $currency = null)
5959
/**
6060
* {@inheritdoc}
6161
*/
62-
public function convertAndRound($amount, $store = null, $currency = null, $precision = self::DEFAULT_PRECISION)
62+
public function convertAndRound($amount, $scope = null, $currency = null, $precision = self::DEFAULT_PRECISION)
6363
{
64-
$currentCurrency = $this->getCurrency($store, $currency);
65-
$convertedValue = $this->getStore($store)->getBaseCurrency()->convert($amount, $currentCurrency);
64+
$currentCurrency = $this->getCurrency($scope, $currency);
65+
$convertedValue = $this->getStore($scope)->getBaseCurrency()->convert($amount, $currentCurrency);
6666
return round($convertedValue, $precision);
6767
}
6868

0 commit comments

Comments
 (0)