Skip to content

Commit

Permalink
styling
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Mar 29, 2024
1 parent 11d61be commit c26184b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Money.php
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ public function formatForHumans(?string $locale = null, ?Closure $callback = nul
$prefix = $this->currency->getPrefix();
$suffix = $this->currency->getSuffix();

$formatter = new \NumberFormatter(is_null($locale) ? static::getLocale():$locale, \NumberFormatter::PADDING_POSITION);
$formatter = new \NumberFormatter(is_null($locale) ? static::getLocale() : $locale, \NumberFormatter::PADDING_POSITION);

$formatter->setSymbol(\NumberFormatter::DECIMAL_SEPARATOR_SYMBOL, $this->currency->getDecimalMark());
$formatter->setSymbol(\NumberFormatter::GROUPING_SEPARATOR_SYMBOL, $this->currency->getThousandsSeparator());
Expand All @@ -634,7 +634,7 @@ public function formatLocale(?string $locale = null, ?Closure $callback = null):
}
// @codeCoverageIgnoreEnd

$formatter = new \NumberFormatter(is_null($locale) ? static::getLocale():$locale, \NumberFormatter::CURRENCY);
$formatter = new \NumberFormatter(is_null($locale) ? static::getLocale() : $locale, \NumberFormatter::CURRENCY);

$formatter->setSymbol(\NumberFormatter::DECIMAL_SEPARATOR_SYMBOL, $this->currency->getDecimalMark());
$formatter->setSymbol(\NumberFormatter::GROUPING_SEPARATOR_SYMBOL, $this->currency->getThousandsSeparator());
Expand Down

0 comments on commit c26184b

Please sign in to comment.