From 00e09772e765e7f032c5dbce3478e68c2edebf7d Mon Sep 17 00:00:00 2001 From: getsolaris Date: Mon, 2 Sep 2024 01:22:32 +0000 Subject: [PATCH] style: fix psr-12 code style issues --- src/Attributes/Transaction.php | 2 +- src/Enums/CodeProvider.php | 2 +- src/Handlers/TossPaymentsWebhookHandler.php | 2 +- tests/PaymentTest.php | 4 +--- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/Attributes/Transaction.php b/src/Attributes/Transaction.php index 20360bc..8ad2901 100644 --- a/src/Attributes/Transaction.php +++ b/src/Attributes/Transaction.php @@ -73,7 +73,7 @@ public function get(?string $startingAfter = null, ?int $limit = null): PromiseI if ($limit) { if ($limit > 10000) { - throw new LargeLimitException(); + throw new LargeLimitException; } $parameters['limit'] = $limit; diff --git a/src/Enums/CodeProvider.php b/src/Enums/CodeProvider.php index c736587..ce6f328 100644 --- a/src/Enums/CodeProvider.php +++ b/src/Enums/CodeProvider.php @@ -33,6 +33,6 @@ public static function toCode(int|string $code): string|int } } - throw new InvalidInputTargetCodeException(); + throw new InvalidInputTargetCodeException; } } diff --git a/src/Handlers/TossPaymentsWebhookHandler.php b/src/Handlers/TossPaymentsWebhookHandler.php index 72c6cf8..ee2f63e 100644 --- a/src/Handlers/TossPaymentsWebhookHandler.php +++ b/src/Handlers/TossPaymentsWebhookHandler.php @@ -17,7 +17,7 @@ public function __invoke(Request $request) $payload = json_decode($request->getContent(), true, 512, JSON_THROW_ON_ERROR); if (! $payload) { - throw new WebhookPayloadException(); + throw new WebhookPayloadException; } $target = new \ReflectionClass(config('tosspayments.webhook.handler.controller')); diff --git a/tests/PaymentTest.php b/tests/PaymentTest.php index 917e430..e8ab8fd 100644 --- a/tests/PaymentTest.php +++ b/tests/PaymentTest.php @@ -2,6 +2,4 @@ namespace Getsolaris\LaravelTossPayments\tests; -class PaymentTest -{ -} +class PaymentTest {}