Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
iRaziul authored and github-actions[bot] committed Sep 2, 2024
1 parent d7c718c commit 3f923ee
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 15 deletions.
3 changes: 1 addition & 2 deletions src/Data/PaymentResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ class PaymentResponse
{
public function __construct(
protected ?array $data = null
) {
}
) {}

/**
* Get the status of the payment response in lowercase.
Expand Down
3 changes: 1 addition & 2 deletions src/Data/RefundResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ class RefundResponse
{
public function __construct(
protected ?array $data
) {
}
) {}

/**
* Get the status of the transaction.
Expand Down
3 changes: 1 addition & 2 deletions src/Data/RefundStatus.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ class RefundStatus
{
public function __construct(
protected ?array $data
) {
}
) {}

/**
* Get the status of the transaction.
Expand Down
4 changes: 1 addition & 3 deletions src/Exceptions/SslcommerzException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

namespace Raziul\Sslcommerz\Exceptions;

class SslcommerzException extends \Exception
{
}
class SslcommerzException extends \Exception {}
12 changes: 6 additions & 6 deletions src/SslcommerzClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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',
Expand Down

0 comments on commit 3f923ee

Please sign in to comment.