@@ -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 | |