@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | $contentMD5Mode = !is_null($body) ? 'body' : 'url'; |
| 166 | 166 | } |
| 167 | 167 | |
| 168 | - $request = new Request($method, $this->apiEndpoint . $endpointUrl); |
|
| 168 | + $request = new Request($method, $this->apiEndpoint.$endpointUrl); |
|
| 169 | 169 | $uri = $request->getUri(); |
| 170 | 170 | |
| 171 | 171 | if ($queryString) { |
@@ -253,9 +253,9 @@ discard block |
||
| 253 | 253 | throw new ObjectNotFound($this->verboseErrors ? $body : Blocktrail::EXCEPTION_OBJECT_NOT_FOUND, $httpResponseCode); |
| 254 | 254 | } |
| 255 | 255 | } elseif ($httpResponseCode == 500) { |
| 256 | - throw new GenericServerError(Blocktrail::EXCEPTION_GENERIC_SERVER_ERROR . "\nServer Response: " . $body, $httpResponseCode); |
|
| 256 | + throw new GenericServerError(Blocktrail::EXCEPTION_GENERIC_SERVER_ERROR."\nServer Response: ".$body, $httpResponseCode); |
|
| 257 | 257 | } else { |
| 258 | - throw new GenericHTTPError(Blocktrail::EXCEPTION_GENERIC_HTTP_ERROR . "\nServer Response: " . $body, $httpResponseCode); |
|
| 258 | + throw new GenericHTTPError(Blocktrail::EXCEPTION_GENERIC_HTTP_ERROR."\nServer Response: ".$body, $httpResponseCode); |
|
| 259 | 259 | } |
| 260 | 260 | } |
| 261 | 261 | |
@@ -61,7 +61,7 @@ |
||
| 61 | 61 | 'handler' => $handler, |
| 62 | 62 | 'base_uri' => $this->apiEndpoint, |
| 63 | 63 | 'headers' => array( |
| 64 | - 'User-Agent' => Blocktrail::SDK_USER_AGENT . '/' . Blocktrail::SDK_VERSION, |
|
| 64 | + 'User-Agent' => Blocktrail::SDK_USER_AGENT.'/'.Blocktrail::SDK_VERSION, |
|
| 65 | 65 | ), |
| 66 | 66 | 'http_errors' => false, |
| 67 | 67 | 'connect_timeout' => 3, |