@@ -49,7 +49,7 @@ public function __construct($client)
4949 __METHOD__ ,
5050 Client::class,
5151 HttpClient::class,
52- (is_object ($ client )) ? get_class ($ client ) : gettype ($ client )
52+ (is_object ($ client )) ? get_class ($ client ) : gettype ($ client ),
5353 ));
5454 }
5555
@@ -117,7 +117,7 @@ protected function get($path, $decodeIfJson = true)
117117 $ this ->lastResponse = $ this ->getHttpClient ()->request (HttpFactory::makeRequest (
118118 'GET ' ,
119119 strval ($ path ),
120- $ this ->getContentTypeFromPath (strval ($ path ))
120+ $ this ->getContentTypeFromPath (strval ($ path )),
121121 ));
122122
123123 $ body = $ this ->lastResponse ->getContent ();
@@ -158,7 +158,7 @@ protected function post($path, $data)
158158 'POST ' ,
159159 strval ($ path ),
160160 $ this ->getContentTypeFromPath (strval ($ path )),
161- $ data
161+ $ data,
162162 ));
163163
164164 $ body = $ this ->lastResponse ->getContent ();
@@ -191,7 +191,7 @@ protected function put($path, $data)
191191 'PUT ' ,
192192 strval ($ path ),
193193 $ this ->getContentTypeFromPath (strval ($ path )),
194- $ data
194+ $ data,
195195 ));
196196
197197 $ body = $ this ->lastResponse ->getContent ();
@@ -222,7 +222,7 @@ protected function delete($path)
222222 $ this ->lastResponse = $ this ->getHttpClient ()->request (HttpFactory::makeRequest (
223223 'DELETE ' ,
224224 strval ($ path ),
225- $ this ->getContentTypeFromPath (strval ($ path ))
225+ $ this ->getContentTypeFromPath (strval ($ path )),
226226 ));
227227
228228 return $ this ->lastResponse ->getContent ();
@@ -251,7 +251,7 @@ protected function sanitizeParams(array $defaults, array $params)
251251 {
252252 return array_filter (
253253 array_merge ($ defaults , $ params ),
254- [$ this , 'isNotNull ' ]
254+ [$ this , 'isNotNull ' ],
255255 );
256256 }
257257
@@ -301,7 +301,7 @@ protected function retrieveData(string $endpoint, array $params = []): array
301301 $ this ->lastResponse = $ this ->getHttpClient ()->request (HttpFactory::makeRequest (
302302 'GET ' ,
303303 strval ($ endpoint ),
304- $ this ->getContentTypeFromPath (strval ($ endpoint ))
304+ $ this ->getContentTypeFromPath (strval ($ endpoint )),
305305 ));
306306
307307 return $ this ->getResponseAsArray ($ this ->lastResponse );
@@ -312,7 +312,7 @@ protected function retrieveData(string $endpoint, array $params = []): array
312312 'limit ' => 25 ,
313313 'offset ' => 0 ,
314314 ],
315- $ params
315+ $ params,
316316 );
317317
318318 $ returnData = [];
@@ -334,7 +334,7 @@ protected function retrieveData(string $endpoint, array $params = []): array
334334 $ this ->lastResponse = $ this ->getHttpClient ()->request (HttpFactory::makeRequest (
335335 'GET ' ,
336336 PathSerializer::create ($ endpoint , $ params )->getPath (),
337- $ this ->getContentTypeFromPath ($ endpoint )
337+ $ this ->getContentTypeFromPath ($ endpoint ),
338338 ));
339339
340340 $ newDataSet = $ this ->getResponseAsArray ($ this ->lastResponse );
@@ -457,7 +457,7 @@ public function request(Request $request): Response
457457 return HttpFactory::makeResponse (
458458 $ this ->client ->getLastResponseStatusCode (),
459459 $ this ->client ->getLastResponseContentType (),
460- $ this ->client ->getLastResponseBody ()
460+ $ this ->client ->getLastResponseBody (),
461461 );
462462 }
463463 };
0 commit comments