Skip to content

Commit

Permalink
dead-code: update (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
mysiar authored May 18, 2022
1 parent 98224a2 commit 8abde3a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Message/RefundsRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public function sendData($data): ResponseInterface

$responseData = json_decode($httpResponse->getBody()->getContents(), true);

return $this->response = new RefundsResponse($this, $responseData, $this->getEndpoint());
return $this->response = new RefundsResponse($this, $responseData);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/Message/RefundsResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ class RefundsResponse extends AbstractResponse

private $responseCode;

public function __construct(RequestInterface $request, $data, $endpoint)
public function __construct(RequestInterface $request, $data)
{
parent::__construct($request, $data, $endpoint);
parent::__construct($request, $data);
$this->refunds = $data['data'] ?? null;
if (isset($data['responseCode'])) {
$this->responseCode = (int) $data['responseCode'];
Expand Down

0 comments on commit 8abde3a

Please sign in to comment.