Completed
Pull Request — master (#49)
by thomas
18:33 queued 07:32
created
src/Connection/BaseRestClient.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Connection/RestClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.