mirror of
https://github.com/archtechx/money.git
synced 2025-12-12 11:24:03 +00:00
Fix code style (php-cs-fixer)
This commit is contained in:
parent
38c6326a4d
commit
01fd16f71b
1 changed files with 1 additions and 1 deletions
|
|
@ -33,7 +33,7 @@ class PriceFormatter
|
|||
$formatted = ltrim($formatted, $currency->prefix());
|
||||
$formatted = rtrim($formatted, $currency->suffix());
|
||||
|
||||
$removeNonDigits = preg_replace('/[^\d'.preg_quote($currency->decimalSeparator()).']/', '', $formatted);
|
||||
$removeNonDigits = preg_replace('/[^\d' . preg_quote($currency->decimalSeparator()) . ']/', '', $formatted);
|
||||
|
||||
return (float) str_replace($currency->decimalSeparator(), '.', $removeNonDigits);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue