@@ -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 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | */ |
29 | 29 | public function get(string $from, string $to, float $amount) |
30 | 30 | { |
31 | - $params = ['from' => $from, 'to' => $to, 'amount' => $amount]; |
|
31 | + $params = [ 'from' => $from, 'to' => $to, 'amount' => $amount ]; |
|
32 | 32 | return $this->client->get(self::ENDPOINT.'?'.http_build_query($params)); |
33 | 33 | } |
34 | 34 | } |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | * @param string $mode |
91 | 91 | * @param array $clientOptions |
92 | 92 | */ |
93 | - public function __construct(AccessToken $accessToken, $mode = 'production', array $clientOptions = []) |
|
93 | + public function __construct(AccessToken $accessToken, $mode = 'production', array $clientOptions = [ ]) |
|
94 | 94 | { |
95 | 95 | $this->accessToken = $accessToken; |
96 | 96 | $this->mode = $mode; |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | { |
126 | 126 | $options = [ |
127 | 127 | 'headers' => [ |
128 | - 'Authorization' => 'Bearer ' . $this->accessToken->getToken(), |
|
128 | + 'Authorization' => 'Bearer '.$this->accessToken->getToken(), |
|
129 | 129 | ] |
130 | 130 | ]; |
131 | 131 | |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | */ |
158 | 158 | public function post($endpoint, $json) |
159 | 159 | { |
160 | - $response = $this->httpClient->request('POST', $this->buildBaseUrl().$endpoint, ['json' => $json]); |
|
160 | + $response = $this->httpClient->request('POST', $this->buildBaseUrl().$endpoint, [ 'json' => $json ]); |
|
161 | 161 | return $this->handleResponse($response); |
162 | 162 | } |
163 | 163 | |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | */ |
170 | 170 | public function patch($endpoint, $json) |
171 | 171 | { |
172 | - $response = $this->httpClient->request('PATCH', $this->buildBaseUrl().$endpoint, ['json' => $json]); |
|
172 | + $response = $this->httpClient->request('PATCH', $this->buildBaseUrl().$endpoint, [ 'json' => $json ]); |
|
173 | 173 | return $this->handleResponse($response); |
174 | 174 | } |
175 | 175 |