Completed
Push — d64 ( 411103...6436c6 )
by Welling
02:33
created
src/BaseClientRemote.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -115,18 +115,18 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.