mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-09 09:54:33 +02:00
Applied symplify rules to codebase.
This commit is contained in:
parent
2f20d90041
commit
388e847b17
136 changed files with 1370 additions and 789 deletions
|
@ -26,6 +26,7 @@ namespace App\Services;
|
|||
|
||||
use App\Entity\PriceInformations\Currency;
|
||||
use Locale;
|
||||
use NumberFormatter;
|
||||
|
||||
class MoneyFormatter
|
||||
{
|
||||
|
@ -55,7 +56,7 @@ class MoneyFormatter
|
|||
$iso_code = $currency->getIsoCode();
|
||||
}
|
||||
|
||||
$number_formatter = new \NumberFormatter($this->locale, \NumberFormatter::CURRENCY);
|
||||
$number_formatter = new NumberFormatter($this->locale, NumberFormatter::CURRENCY);
|
||||
if ($show_all_digits) {
|
||||
$number_formatter->setAttribute(\NumberFormatter::FRACTION_DIGITS, $decimals);
|
||||
} else {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue