Skip to content

Commit 4b0fdba

Browse files
MusahMusahgithub-actions[bot]
authored andcommitted
Fix styling
1 parent 72c9a2a commit 4b0fdba

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

src/Contracts/PaystackContract.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ interface PaystackContract
1313
/**
1414
* Redirect the user to Paystack's payment page
1515
*/
16-
public function redirectToCheckout(array $data = null): RedirectResponse;
16+
public function redirectToCheckout(?array $data = null): RedirectResponse;
1717

1818
/**
1919
* Hit Paystack's verify endpoint to validate the payment and get the payment details

src/Gateways/FlutterwaveService.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@
2020

2121
class FlutterwaveService extends BaseGateWay implements FlutterwaveContract
2222
{
23-
use ConsumesExternalServices,
24-
BankTrait,
23+
use BankTrait,
24+
ChargeTrait,
25+
ConsumesExternalServices,
26+
OtpTrait,
27+
PaymentPlanTrait,
2528
SettlementTrait,
2629
SubscriptionTrait,
27-
PaymentPlanTrait,
30+
TransactionTrait,
2831
TransferBeneficiaryTrait,
29-
TransferTrait,
30-
OtpTrait,
31-
ChargeTrait,
32-
TransactionTrait;
32+
TransferTrait;
3333

3434
/**
3535
* The redirect url to consume the Flutterwave's service

src/Gateways/PaystackService.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313

1414
class PaystackService extends BaseGateWay implements PaystackContract
1515
{
16-
use TransactionTrait,
17-
TransferTrait,
18-
BankTrait;
16+
use BankTrait,
17+
TransactionTrait,
18+
TransferTrait;
1919

2020
/**
2121
* The payload to initiate the transaction

src/Services/PaymentWebhookHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ class PaymentWebhookHandler
3333
const WEBHOOK_RESPONSE_STATUS = 200;
3434

3535
public function __construct(
36-
Request $request,
37-
PaymentWebhookConfig $webhookConfig
36+
Request $request,
37+
PaymentWebhookConfig $webhookConfig
3838
) {
3939
$this->request = $request;
4040
$this->webhookConfig = $webhookConfig;
@@ -143,7 +143,7 @@ protected function storeWebhook(): PaymentWebhookLog
143143
*
144144
* @throws InvalidPaymentWebhookConfig|InvalidPaymentWebhookHandler
145145
*/
146-
protected function processPaymentWebhook(PaymentWebhookLog $webhookLog = null): void
146+
protected function processPaymentWebhook(?PaymentWebhookLog $webhookLog = null): void
147147
{
148148
try {
149149
$paymentWebhookHandler = $this->webhookConfig->paymentWebhookHandler ?? self::WEBHOOK_HANDLER_JOB;

src/Traits/Paystack/TransactionTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ private function redirectRequest(): RedirectResponse
5959
/**
6060
* Redirect the user to Paystack's payment checkout page
6161
*/
62-
public function redirectToCheckout(array $data = null): RedirectResponse
62+
public function redirectToCheckout(?array $data = null): RedirectResponse
6363
{
6464
is_null($data) ?: $this->payload = $data;
6565

0 commit comments

Comments
 (0)