Skip to content

Commit

Permalink
pint
Browse files Browse the repository at this point in the history
  • Loading branch information
recca0120 committed Oct 12, 2024
1 parent 8c52b03 commit f944729
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/Gateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
*/
class Gateway extends AbstractGateway
{
use HasStore;
use HasLocale;
use HasStore;

public function getName()
{
Expand Down
1 change: 1 addition & 0 deletions src/Message/CompletePurchaseRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class CompletePurchaseRequest extends BaseAbstractRequest

/**
* @return array
*
* @throws JsonException
*/
public function getData()
Expand Down
4 changes: 1 addition & 3 deletions src/Message/FetchTransactionResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@

namespace Omnipay\MyPay\Message;

class FetchTransactionResponse extends CompletePurchaseResponse
{
}
class FetchTransactionResponse extends CompletePurchaseResponse {}
12 changes: 6 additions & 6 deletions src/Message/PurchaseRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,16 @@
*/
class PurchaseRequest extends AbstractRequest
{
use HasOrderInfo;
use HasUserInfo;
use HasRegular;
use HasAgent;
use HasAmount;
use HasCardLess;
use HasEcho;
use HasEWallet;
use HasCardLess;
use HasInvoice;
use HasLocale;
use HasAgent;
use HasAmount;
use HasOrderInfo;
use HasRegular;
use HasUserInfo;

public function setVouchers($value)
{
Expand Down
6 changes: 3 additions & 3 deletions src/Message/RefundRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@

class RefundRequest extends AbstractRequest
{
use HasAmount;
use HasCost;
use HasKey;
use HasStore;
use HasUid;
use HasKey;
use HasCost;
use HasAmount;

/**
* 4.作廢或作廢重開(預設)
Expand Down
4 changes: 2 additions & 2 deletions src/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ class User
/**
* Voucher constructor.
*/
public function __construct(array $parameters = null)
public function __construct(?array $parameters = null)
{
$this->initialize($parameters);
}

/**
* @return $this
*/
public function initialize(array $parameters = null)
public function initialize(?array $parameters = null)
{
$this->parameters = new ParameterBag;
Helper::initialize($this, $parameters);
Expand Down
4 changes: 2 additions & 2 deletions src/Voucher.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ class Voucher
/**
* Voucher constructor.
*/
public function __construct(array $parameters = null)
public function __construct(?array $parameters = null)
{
$this->initialize($parameters);
}

/**
* @return $this
*/
public function initialize(array $parameters = null)
public function initialize(?array $parameters = null)
{
$this->parameters = new ParameterBag;
Helper::initialize($this, $parameters);
Expand Down

0 comments on commit f944729

Please sign in to comment.