@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | * @param array $filters |
| 27 | 27 | * @return mixed |
| 28 | 28 | */ |
| 29 | - public function all($filters = []) |
|
| 29 | + public function all($filters = [ ]) |
|
| 30 | 30 | { |
| 31 | 31 | return $this->client->get('transactions?'.http_build_query($filters)); |
| 32 | 32 | } |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | public function getByRequestId(string $requestId) |
| 65 | 65 | { |
| 66 | - $query = ['id_type' => 'request_id']; |
|
| 66 | + $query = [ 'id_type' => 'request_id' ]; |
|
| 67 | 67 | return $this->client->get(self::ENDPOINT.'/'.$requestId.'?'.http_build_query($query)); |
| 68 | 68 | } |
| 69 | 69 | } |
@@ -74,7 +74,7 @@ discard block |
||
| 74 | 74 | * @param string $mode |
| 75 | 75 | * @param array $clientOptions |
| 76 | 76 | */ |
| 77 | - public function __construct(string $apiKey, $mode = 'production', array $clientOptions = []) |
|
| 77 | + public function __construct(string $apiKey, $mode = 'production', array $clientOptions = [ ]) |
|
| 78 | 78 | { |
| 79 | 79 | $this->apiKey = $apiKey; |
| 80 | 80 | $this->mode = $mode; |
@@ -106,7 +106,7 @@ discard block |
||
| 106 | 106 | { |
| 107 | 107 | $options = [ |
| 108 | 108 | 'headers' => [ |
| 109 | - 'Authorization' => 'Bearer ' . $this->apiKey, |
|
| 109 | + 'Authorization' => 'Bearer '.$this->apiKey, |
|
| 110 | 110 | ] |
| 111 | 111 | ]; |
| 112 | 112 | |
@@ -138,7 +138,7 @@ discard block |
||
| 138 | 138 | */ |
| 139 | 139 | public function post($endpoint, $json) |
| 140 | 140 | { |
| 141 | - $response = $this->httpClient->request('POST', $this->buildBaseUrl().$endpoint, ['json' => $json]); |
|
| 141 | + $response = $this->httpClient->request('POST', $this->buildBaseUrl().$endpoint, [ 'json' => $json ]); |
|
| 142 | 142 | return $this->handleResponse($response); |
| 143 | 143 | } |
| 144 | 144 | |