From f24ced54456d733bc094abb67777ae5521564d57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Samuel=20=C5=A0tancl?= Date: Mon, 16 May 2022 12:48:51 +0200 Subject: [PATCH] fix comment grammar --- src/PriceFormatter.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/PriceFormatter.php b/src/PriceFormatter.php index 803d147..61ea4bc 100644 --- a/src/PriceFormatter.php +++ b/src/PriceFormatter.php @@ -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()); }