diff --git a/src/AbstractGateway.php b/src/AbstractGateway.php index f1f24fe..51256c7 100644 --- a/src/AbstractGateway.php +++ b/src/AbstractGateway.php @@ -31,7 +31,10 @@ public function authorize(array $params = []) public function createCard(array $params = []) { - return $this->createRequest('\Omnipay\Paytrace\Message\\' . static::GATEWAY_TYPE . '\CreateCardRequest', $params); + return $this->createRequest( + '\Omnipay\Paytrace\Message\\' . static::GATEWAY_TYPE . '\CreateCardRequest', + $params + ); } public function capture(array $params = []) diff --git a/src/Message/Check/CreateCardRequest.php b/src/Message/Check/CreateCardRequest.php index b29409d..ff4641e 100644 --- a/src/Message/Check/CreateCardRequest.php +++ b/src/Message/Check/CreateCardRequest.php @@ -26,4 +26,4 @@ public function getData() } return array_merge($data, $this->getBillingData()); } -} \ No newline at end of file +} diff --git a/src/Message/Check/RefundRequest.php b/src/Message/Check/RefundRequest.php index d913e10..694a506 100644 --- a/src/Message/Check/RefundRequest.php +++ b/src/Message/Check/RefundRequest.php @@ -8,7 +8,7 @@ class RefundRequest extends AuthorizeRequest public function getData() { - if ($this->getCheck()) { + if ($this->getCheck()) { $this->validate('amount', 'check'); $check = $this->getCheck(); $check->validate(); diff --git a/src/Message/CreditCard/AbstractRequest.php b/src/Message/CreditCard/AbstractRequest.php index 751673d..860b7c9 100644 --- a/src/Message/CreditCard/AbstractRequest.php +++ b/src/Message/CreditCard/AbstractRequest.php @@ -22,7 +22,8 @@ protected function getBaseData() ]; } - protected function getCardData() { + protected function getCardData() + { $this->validate('card'); $this->getCard()->validate(); $card = $this->getCard(); diff --git a/src/Message/CreditCard/CreateCardRequest.php b/src/Message/CreditCard/CreateCardRequest.php index 5978cc2..2d1928d 100644 --- a/src/Message/CreditCard/CreateCardRequest.php +++ b/src/Message/CreditCard/CreateCardRequest.php @@ -23,4 +23,4 @@ public function getData() } return array_merge($data, $this->getBillingData()); } -} \ No newline at end of file +} diff --git a/src/Message/CreditCard/CreateCardResponse.php b/src/Message/CreditCard/CreateCardResponse.php index 5620d45..296643c 100644 --- a/src/Message/CreditCard/CreateCardResponse.php +++ b/src/Message/CreditCard/CreateCardResponse.php @@ -19,4 +19,4 @@ public function getCardReference() { return isset($this->data['CUSTOMERID']) ? $this->data['CUSTOMERID'] : null; } -} \ No newline at end of file +} diff --git a/src/Message/CreditCard/RefundRequest.php b/src/Message/CreditCard/RefundRequest.php index 3bad79c..928695b 100644 --- a/src/Message/CreditCard/RefundRequest.php +++ b/src/Message/CreditCard/RefundRequest.php @@ -9,7 +9,7 @@ class RefundRequest extends AbstractRequest public function getData() { - if ($this->getCard()) { + if ($this->getCard()) { $this->validate('amount', 'card'); $this->getCard()->validate(); $data = $this->getBaseData();