1
0
Fork 0
mirror of https://github.com/archtechx/money.git synced 2025-12-12 11:24:03 +00:00

fix comment grammar

This commit is contained in:
Samuel Štancl 2022-05-16 12:48:51 +02:00 committed by GitHub
parent 6c5f1feec4
commit f24ced5445
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -24,9 +24,10 @@ class PriceFormatter
);
if ($currency->trimTrailingDecimalZeros()) {
// Remove trailing zeros from price
// Remove trailing zeros from the formatted string
$decimal = rtrim($decimal, '0');
// If there is no more decimal values, remove the trailing decimal separator as well
// Once there are no more decimal values, remove the decimal separator as well
$decimal = rtrim($decimal, $currency->decimalSeparator());
}