From 37a2ac6a39be588b659f480ae738858e4731abd8 Mon Sep 17 00:00:00 2001 From: StyleCI Bot Date: Mon, 22 May 2023 04:07:27 +0000 Subject: [PATCH] Apply fixes from StyleCI --- src/Traits/Request.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Traits/Request.php b/src/Traits/Request.php index d156eb3..5908bbd 100644 --- a/src/Traits/Request.php +++ b/src/Traits/Request.php @@ -334,7 +334,7 @@ protected function convertPayloadAmountsToInteger($payload) { if (isset($payload['amount'])) { $payload['amount'] = match ($amountType = config('paymongo.amount_type', 'float')) { - 'float' => (int) number_format(($payload['amount'] * 100), 0, '', ''), + 'float' => (int) number_format($payload['amount'] * 100, 0, '', ''), 'int' => (int) $payload['amount'], default => throw new AmountTypeNotSupportedException("The amount_type [$amountType] used is not supported."), };