Skip to content

Commit 3b62c8f

Browse files
committed
PSR-2 Fix
1 parent a32592a commit 3b62c8f

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Message/RapidDirectUpdateCardRequest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public function getData()
6464

6565
$this->validate('cardReference');
6666

67-
$data['Payment'] = array();
67+
$data['Payment'] = [];
6868
$data['Payment']['TotalAmount'] = 0;
6969

7070
$data['Customer']['TokenCustomerID'] = $this->getCardReference();
@@ -76,13 +76,16 @@ public function getData()
7676

7777
protected function getEndpoint()
7878
{
79-
return $this->getEndpointBase().'/DirectPayment.json';
79+
return $this->getEndpointBase() . '/DirectPayment.json';
8080
}
8181

8282
public function sendData($data)
8383
{
8484
$httpResponse = $this->httpClient->request('POST', $this->getEndpoint(), [], json_encode($data));
8585

86-
return $this->response = new RapidDirectCreateCardResponse($this, json_decode((string) $httpResponse->getBody(), true));
86+
return $this->response = new RapidDirectCreateCardResponse(
87+
$this,
88+
json_decode((string) $httpResponse->getBody(), true)
89+
);
8790
}
8891
}

0 commit comments

Comments
 (0)