@@ -115,18 +115,18 @@ discard block |
||
| 115 | 115 | |
| 116 | 116 | if (isset($options['base_url'])) { |
| 117 | 117 | $this->baseUrl = rtrim($options['base_url'], '/'); |
| 118 | - $this->baseEndpoint = $this->baseUrl . '/api'; |
|
| 118 | + $this->baseEndpoint = $this->baseUrl.'/api'; |
|
| 119 | 119 | } |
| 120 | 120 | |
| 121 | 121 | $instanceKey = isset($options['instance_key']) ? $options['instance_key'] : false; |
| 122 | 122 | if ($instanceKey) { |
| 123 | 123 | $this->instanceKey = $instanceKey; |
| 124 | 124 | $this->baseUrl = sprintf($this->hostedBaseUrlFormat, $instanceKey); |
| 125 | - $this->baseEndpoint = $this->baseUrl . '/api'; |
|
| 125 | + $this->baseEndpoint = $this->baseUrl.'/api'; |
|
| 126 | 126 | } |
| 127 | 127 | |
| 128 | 128 | $this->apiVersion = isset($options['version']) ? $options['version'] : 1; |
| 129 | - $this->baseEndpoint .= '/' . $this->getAPIVersion(); |
|
| 129 | + $this->baseEndpoint .= '/'.$this->getAPIVersion(); |
|
| 130 | 130 | |
| 131 | 131 | $this->setHTTPClient($this->getDefaultHTTPClient()); |
| 132 | 132 | } |
@@ -218,7 +218,7 @@ discard block |
||
| 218 | 218 | */ |
| 219 | 219 | public function getDefaultHTTPClient() |
| 220 | 220 | { |
| 221 | - return new HTTPClient(array('base_url' => rtrim($this->baseEndpoint, '/') . '/')); |
|
| 221 | + return new HTTPClient(array('base_url' => rtrim($this->baseEndpoint, '/').'/')); |
|
| 222 | 222 | } |
| 223 | 223 | |
| 224 | 224 | public function performRequest($method, $pathFormat, $variables = [], array $body = [], array $query = []) |
@@ -264,7 +264,7 @@ discard block |
||
| 264 | 264 | |
| 265 | 265 | if ($query) { |
| 266 | 266 | $q = $request->getQuery(); |
| 267 | - foreach($query as $key => $value) { |
|
| 267 | + foreach ($query as $key => $value) { |
|
| 268 | 268 | $q->set($key, $value); |
| 269 | 269 | } |
| 270 | 270 | } |