@@ -208,12 +208,12 @@ |
||
| 208 | 208 | { |
| 209 | 209 | $body = ''; |
| 210 | 210 | $options = array_merge($this->getOptions(), $options); |
| 211 | - $options['auth'] = [$this->getKey() . ':', '']; |
|
| 211 | + $options['auth'] = [$this->getKey().':', '']; |
|
| 212 | 212 | |
| 213 | 213 | try { |
| 214 | - $response = $this->getHttpClient()->request($method, $this->getApiEndPoint() . $path, $options); |
|
| 214 | + $response = $this->getHttpClient()->request($method, $this->getApiEndPoint().$path, $options); |
|
| 215 | 215 | $this->setLastResponse($response); |
| 216 | - $body = json_decode((string)$response->getBody()); |
|
| 216 | + $body = json_decode((string) $response->getBody()); |
|
| 217 | 217 | } catch (BadResponseException $exception) { |
| 218 | 218 | $this->handleError($exception); |
| 219 | 219 | } |
@@ -27,8 +27,8 @@ |
||
| 27 | 27 | { |
| 28 | 28 | $errorCode = $this->exception->getResponse()->getStatusCode(); |
| 29 | 29 | |
| 30 | - if (method_exists($this, 'handle' . $errorCode)) { |
|
| 31 | - $this->{'handle' . $errorCode}(); |
|
| 30 | + if (method_exists($this, 'handle'.$errorCode)) { |
|
| 31 | + $this->{'handle'.$errorCode}(); |
|
| 32 | 32 | } |
| 33 | 33 | $this->handleUnknown(); |
| 34 | 34 | |