@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | * @param string $mode |
86 | 86 | * @param array $clientOptions |
87 | 87 | */ |
88 | - public function __construct(AccessToken $accessToken, $mode = 'production', array $clientOptions = []) |
|
88 | + public function __construct(AccessToken $accessToken, $mode = 'production', array $clientOptions = [ ]) |
|
89 | 89 | { |
90 | 90 | $this->accessToken = $accessToken; |
91 | 91 | $this->mode = $mode; |
@@ -119,7 +119,7 @@ discard block |
||
119 | 119 | { |
120 | 120 | $options = [ |
121 | 121 | 'headers' => [ |
122 | - 'Authorization' => 'Bearer ' . $this->accessToken->getToken(), |
|
122 | + 'Authorization' => 'Bearer '.$this->accessToken->getToken(), |
|
123 | 123 | ] |
124 | 124 | ]; |
125 | 125 | |
@@ -151,7 +151,7 @@ discard block |
||
151 | 151 | */ |
152 | 152 | public function post($endpoint, $json) |
153 | 153 | { |
154 | - $response = $this->httpClient->request('POST', $this->buildBaseUrl().$endpoint, ['json' => $json]); |
|
154 | + $response = $this->httpClient->request('POST', $this->buildBaseUrl().$endpoint, [ 'json' => $json ]); |
|
155 | 155 | return $this->handleResponse($response); |
156 | 156 | } |
157 | 157 |