Skip to content

Commit dc7fc40

Browse files
MusahMusahgithub-actions[bot]
authored andcommitted
Fix styling
1 parent a1584e1 commit dc7fc40

File tree

7 files changed

+30
-38
lines changed

7 files changed

+30
-38
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

tests/Paystack/PaystackTest.php

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -86,41 +86,41 @@
8686
]);
8787
});
8888

89-
//it('can make fake http request to get list of banks', function () {
89+
// it('can make fake http request to get list of banks', function () {
9090
// $body = file_get_contents(__DIR__.'/Fixtures/banks.json');
9191
//
9292
// Http::fake([
9393
// 'https://api.paystack.co/bank' => Http::response($body, 200),
9494
// ]);
9595
//
9696
// // assert if there is a bank with name "Abbey Mortgage Bank" in the list of banks
97-
//// $body =
97+
// // $body =
9898
//
9999
//
100-
//// expect(json_decode($body, true)['data'])
101-
//// ->toBeArray()
102-
////// ->dd()
103-
//// ->toContain(fn ($bank) => $bank['name'] === 'Abbey Mortgage Bank');
100+
// // expect(json_decode($body, true)['data'])
101+
// // ->toBeArray()
102+
// //// ->dd()
103+
// // ->toContain(fn ($bank) => $bank['name'] === 'Abbey Mortgage Bank');
104104
//
105-
//// expect(
106-
//// collect(json_decode($body, true)['data'])
107-
//// ->where('name', 'Abbey Mortgage Bank')
108-
//// ->isNotEmpty()
109-
//// )
110-
//// ->toBeTrue();
105+
// // expect(
106+
// // collect(json_decode($body, true)['data'])
107+
// // ->where('name', 'Abbey Mortgage Bank')
108+
// // ->isNotEmpty()
109+
// // )
110+
// // ->toBeTrue();
111111
//
112112
//
113113
//
114-
//// expect($body)
115-
//// ->toBeString()
116-
//// ->toContain('Abbey Mortgage Bank');
114+
// // expect($body)
115+
// // ->toBeString()
116+
// // ->toContain('Abbey Mortgage Bank');
117117
//
118-
//// expect(json_decode($body, true))
119-
//// ->toBeArray()
120-
//// ->toHaveKeys([
121-
//// 'status',
122-
//// 'message',
123-
//// 'data',
124-
//// ])
125-
//// ->toContain('data');
126-
//});
118+
// // expect(json_decode($body, true))
119+
// // ->toBeArray()
120+
// // ->toHaveKeys([
121+
// // 'status',
122+
// // 'message',
123+
// // 'data',
124+
// // ])
125+
// // ->toContain('data');
126+
// });

0 commit comments

Comments
 (0)