Applied symplify rules to codebase.

This commit is contained in:
Jan Böhmer 2020-01-05 22:49:00 +01:00
parent 2f20d90041
commit 388e847b17
136 changed files with 1370 additions and 789 deletions

View file

@ -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 {