Skip to content

Commit

Permalink
MAGETWO-30415: [GITHUB] \Magento\Framework\Pricing\PriceCurrencyInter…
Browse files Browse the repository at this point in the history
…face depends on Magento application code #682

    - Change parameter name in implementation class to be consistent with interface
  • Loading branch information
Yu Tang committed Jan 9, 2015
1 parent 819015c commit b7cde02
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/code/Magento/Directory/Model/PriceCurrency.php
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,10 @@ public function convert($amount, $scope = null, $currency = null)
/**
* {@inheritdoc}
*/
public function convertAndRound($amount, $store = null, $currency = null, $precision = self::DEFAULT_PRECISION)
public function convertAndRound($amount, $scope = null, $currency = null, $precision = self::DEFAULT_PRECISION)
{
$currentCurrency = $this->getCurrency($store, $currency);
$convertedValue = $this->getStore($store)->getBaseCurrency()->convert($amount, $currentCurrency);
$currentCurrency = $this->getCurrency($scope, $currency);
$convertedValue = $this->getStore($scope)->getBaseCurrency()->convert($amount, $currentCurrency);
return round($convertedValue, $precision);
}

Expand Down

0 comments on commit b7cde02

Please sign in to comment.