From 3f923eef78b9f7818034f0c1dfcac07522999c44 Mon Sep 17 00:00:00 2001 From: iRaziul Date: Mon, 2 Sep 2024 07:40:25 +0000 Subject: [PATCH] Fix styling --- src/Data/PaymentResponse.php | 3 +-- src/Data/RefundResponse.php | 3 +-- src/Data/RefundStatus.php | 3 +-- src/Exceptions/SslcommerzException.php | 4 +--- src/SslcommerzClient.php | 12 ++++++------ 5 files changed, 10 insertions(+), 15 deletions(-) diff --git a/src/Data/PaymentResponse.php b/src/Data/PaymentResponse.php index 5fa4ba6..53b8c8f 100644 --- a/src/Data/PaymentResponse.php +++ b/src/Data/PaymentResponse.php @@ -6,8 +6,7 @@ class PaymentResponse { public function __construct( protected ?array $data = null - ) { - } + ) {} /** * Get the status of the payment response in lowercase. diff --git a/src/Data/RefundResponse.php b/src/Data/RefundResponse.php index c1ca339..1af41ef 100644 --- a/src/Data/RefundResponse.php +++ b/src/Data/RefundResponse.php @@ -6,8 +6,7 @@ class RefundResponse { public function __construct( protected ?array $data - ) { - } + ) {} /** * Get the status of the transaction. diff --git a/src/Data/RefundStatus.php b/src/Data/RefundStatus.php index 7cbf25c..9ba99f6 100644 --- a/src/Data/RefundStatus.php +++ b/src/Data/RefundStatus.php @@ -6,8 +6,7 @@ class RefundStatus { public function __construct( protected ?array $data - ) { - } + ) {} /** * Get the status of the transaction. diff --git a/src/Exceptions/SslcommerzException.php b/src/Exceptions/SslcommerzException.php index ac95352..77be7dd 100644 --- a/src/Exceptions/SslcommerzException.php +++ b/src/Exceptions/SslcommerzException.php @@ -2,6 +2,4 @@ namespace Raziul\Sslcommerz\Exceptions; -class SslcommerzException extends \Exception -{ -} +class SslcommerzException extends \Exception {} diff --git a/src/SslcommerzClient.php b/src/SslcommerzClient.php index eec600e..e8684c5 100755 --- a/src/SslcommerzClient.php +++ b/src/SslcommerzClient.php @@ -123,7 +123,7 @@ public function setCustomer( string $state = ' ', string $postal = ' ', string $country = 'Bangladesh', - string $fax = null + ?string $fax = null ): self { $this->customer = [ 'cus_name' => $name, @@ -146,11 +146,11 @@ public function setCustomer( public function setShippingInfo( int $quantity, string $address, - string $name = null, - string $city = null, - string $state = null, - string $postal = null, - string $country = null + ?string $name = null, + ?string $city = null, + ?string $state = null, + ?string $postal = null, + ?string $country = null ): self { $this->shipping = [ 'shipping_method' => 'NO',