From f5a372df99c17c805c6816b3057eb057a357735c Mon Sep 17 00:00:00 2001 From: Benjamin Morel Date: Sat, 3 Apr 2021 22:56:48 +0200 Subject: [PATCH] Update comment --- src/Money.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Money.php b/src/Money.php index adc6a9b..924dfdc 100644 --- a/src/Money.php +++ b/src/Money.php @@ -605,7 +605,7 @@ public function allocateWithRemainder(int ...$ratios) : array $remainder = $remainder->minus($money); $monies[] = $money; } - + $monies[] = $remainder; return $monies; @@ -638,17 +638,17 @@ public function split(int $parts) : array } /** - * Splits this Money into a number of parts and it's respective remainder. - * + * Splits this Money into a number of parts and a remainder. + * * For example, given a `USD 100.00` money in the default context, * `splitWithRemainder(3)` returns [`USD 33.33`, `USD 33.33`, `USD 33.33`, `USD 0.01`] - * + * * The resulting monies have the same context as this Money. - * + * * @param int $parts The number of parts - * + * * @return Money[] - * + * * @throws \InvalidArgumentException If called with invalid parameters. */ public function splitWithRemainder(int $parts) : array