Skip to content
This repository has been archived by the owner on Feb 20, 2023. It is now read-only.

Commit

Permalink
Merge pull request #34 from mageplaza/2.4-develop
Browse files Browse the repository at this point in the history
merge branch 2.4 develop into 2.4
  • Loading branch information
namnh112 authored Mar 3, 2022
2 parents 667575e + 04d9d5a commit 225aff1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Plugin/Directory/PriceCurrency.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class PriceCurrency extends AbstractFormat
* @return int
* @throws NoSuchEntityException
*/
public function getPrecision(): int
public function getPrecision()
{
$baseCurrencyCode = $this->_storeManager->getStore()->getBaseCurrency()->getCode();
$code = $this->getCurrencyCode();
Expand All @@ -58,7 +58,7 @@ public function getPrecision(): int
* @throws NoSuchEntityException
* @throws Zend_Currency_Exception
*/
public function aroundRound(DirectoryPriceCurrency $subject, callable $proceed, float $price): float
public function aroundRound(DirectoryPriceCurrency $subject, callable $proceed, $price)
{
if (!$this->_helperData->isEnabled()) {
return $proceed($price);
Expand All @@ -80,9 +80,9 @@ public function aroundRound(DirectoryPriceCurrency $subject, callable $proceed,
public function aroundRoundPrice(
DirectoryPriceCurrency $subject,
callable $proceed,
float $price,
int $precision
): float {
$price,
$precision = DirectoryPriceCurrency::DEFAULT_PRECISION
) {
if (!$this->_helperData->isEnabled()) {
return $proceed($price, $precision);
}
Expand Down

0 comments on commit 225aff1

Please sign in to comment.