Skip to content

Commit 2aecd08

Browse files
committed
Merge remote-tracking branch 'origin/bump/laravel-12' into bump/laravel-12
# Conflicts: # tests/Paystack/PaystackTest.php
2 parents 3e6b4a9 + eb09233 commit 2aecd08

File tree

6 files changed

+6
-14
lines changed

6 files changed

+6
-14
lines changed

src/Events/PaymentWebhookReceivedEvent.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ class PaymentWebhookReceivedEvent
1616
*
1717
* @return void
1818
*/
19-
public function __construct(public $webhookPayload)
20-
{
21-
}
19+
public function __construct(public $webhookPayload) {}
2220

2321
/**
2422
* Get the channels the event should broadcast on.

src/Exceptions/InvalidConfigurationException.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@
44

55
use Exception;
66

7-
class InvalidConfigurationException extends Exception
8-
{
9-
}
7+
class InvalidConfigurationException extends Exception {}

src/Jobs/ProcessPaymentWebhookJob.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,5 @@ class ProcessPaymentWebhookJob implements ShouldQueue
1717
*
1818
* @return void
1919
*/
20-
public function __construct(public $webhookPayload)
21-
{
22-
}
20+
public function __construct(public $webhookPayload) {}
2321
}

src/LaravelMultipaymentGatewaysServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ private function registerWebHookRoute()
6363
private function registerWebHookBindings()
6464
{
6565
$this->app->scoped(PaymentWebhookConfigRepository::class, function () {
66-
$configRepository = new PaymentWebhookConfigRepository();
66+
$configRepository = new PaymentWebhookConfigRepository;
6767
$webhookConfigs = config('multipayment-gateways.webhooks');
6868

6969
collect($webhookConfigs)

src/Services/HttpClientWrapper.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ class HttpClientWrapper implements HttpClientWrapperContract
99
{
1010
use ConsumesExternalServices;
1111

12-
public function __construct(protected $baseUri, protected $secret)
13-
{
14-
}
12+
public function __construct(protected $baseUri, protected $secret) {}
1513

1614
/**
1715
* Send a GET request to the payment gateway

src/Traits/Paystack/TransactionTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ private function validateTransaction(): void
9090
$this->verifyTransaction(reference: request()->reference ?? request()->trxref);
9191

9292
if ($this->getData()['status'] !== 'success') {
93-
throw new PaymentVerificationException();
93+
throw new PaymentVerificationException;
9494
}
9595
}
9696

0 commit comments

Comments
 (0)