Skip to content

Commit

Permalink
Merge pull request #2 from Awolacademy/master
Browse files Browse the repository at this point in the history
Fix for PSR2 standard
  • Loading branch information
iddqdidkfa authored May 27, 2017
2 parents ce70ae1 + 51152f4 commit 5783c84
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 7 deletions.
5 changes: 4 additions & 1 deletion src/AbstractGateway.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [])
Expand Down
2 changes: 1 addition & 1 deletion src/Message/Check/CreateCardRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ public function getData()
}
return array_merge($data, $this->getBillingData());
}
}
}
2 changes: 1 addition & 1 deletion src/Message/Check/RefundRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
3 changes: 2 additions & 1 deletion src/Message/CreditCard/AbstractRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ protected function getBaseData()
];
}

protected function getCardData() {
protected function getCardData()
{
$this->validate('card');
$this->getCard()->validate();
$card = $this->getCard();
Expand Down
2 changes: 1 addition & 1 deletion src/Message/CreditCard/CreateCardRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ public function getData()
}
return array_merge($data, $this->getBillingData());
}
}
}
2 changes: 1 addition & 1 deletion src/Message/CreditCard/CreateCardResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,4 @@ public function getCardReference()
{
return isset($this->data['CUSTOMERID']) ? $this->data['CUSTOMERID'] : null;
}
}
}
2 changes: 1 addition & 1 deletion src/Message/CreditCard/RefundRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 5783c84

Please sign in to comment.