Completed
Push — develop ( 7d4ef0...c248db )
by Jimmy
13s queued 11s
created
src/Api/Client.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
      */
199 199
     public function buildUri($resource)
200 200
     {
201
-        $uri = $this->getUrl() . ltrim($resource, '/');
201
+        $uri = $this->getUrl().ltrim($resource, '/');
202 202
 
203 203
         var_dump($uri);
204 204
 
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
 
241 241
         return array_merge(
242 242
             [
243
-                'Accept' => 'application/vnd.connectwise.com+json; version=' . $this->version,
243
+                'Accept' => 'application/vnd.connectwise.com+json; version='.$this->version,
244 244
             ],
245 245
             $this->headers
246 246
         );
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
      */
274 274
     public function getUrl()
275 275
     {
276
-        return $this->url . '/v4_6_release/apis/3.0/';
276
+        return $this->url.'/v4_6_release/apis/3.0/';
277 277
     }
278 278
 
279 279
     /**
@@ -302,14 +302,14 @@  discard block
 block discarded – undo
302 302
      */
303 303
     protected function processResponse($resource, Response $response)
304 304
     {
305
-        $response = (array)json_decode($response->getBody(), true);
305
+        $response = (array) json_decode($response->getBody(), true);
306 306
 
307 307
         if ($model = $this->resolver->find($resource, $this->version)) {
308
-            $model = 'Spinen\ConnectWise\Models\\' . $model;
308
+            $model = 'Spinen\ConnectWise\Models\\'.$model;
309 309
 
310 310
             if ($this->isCollection($response)) {
311 311
                 $response = array_map(
312
-                    function ($item) use ($model) {
312
+                    function($item) use ($model) {
313 313
                         $item = new $model($item, $this);
314 314
 
315 315
                         return $item;
Please login to merge, or discard this patch.