Skip to content

Commit

Permalink
Apply fixes from StyleCI
Browse files Browse the repository at this point in the history
[ci skip] [skip ci]
  • Loading branch information
StyleCIBot committed May 21, 2024
1 parent ffb2a00 commit 5ef030d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LaraCart.php
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ public static function formatMoney($number, $locale = null, $currencyCode = null
// When prices in cents needs to be formatted, divide by 100 to allow formatting in whole units
if (config('laracart.prices_in_cents', false) === true && $format) {
$number = $number / 100;
// When prices in cents do not need to be formatted then cast to integer and round the price
// When prices in cents do not need to be formatted then cast to integer and round the price
} elseif (config('laracart.prices_in_cents', false) === true && !$format) {
$number = (int) round($number);
} else {
Expand Down

0 comments on commit 5ef030d

Please sign in to comment.