Test Setup Failed
Push — master ( f7c390...b0d8e7 )
by Gianluca
03:14
created
src/Client.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     public function listProjects($page = 1, $itemsPerPage = 6)
64 64
     {
65
-        return $this->request('GET', '/projects', [], [
65
+        return $this->request('GET', '/projects', [ ], [
66 66
             'page' => $page,
67 67
             'itemsPerPage' => $itemsPerPage
68 68
         ]);
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
     public function setProjectPassword($projectId, string $password)
92 92
     {
93
-        return $this->request('POST', "/projects/{$projectId}/password", ['password' => $password]);
93
+        return $this->request('POST', "/projects/{$projectId}/password", [ 'password' => $password ]);
94 94
     }
95 95
 
96 96
     public function publishProject($projectId)
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
      * @param array $queryStringParams
278 278
      * @return LushResponse
279 279
      */
280
-    private function request(string $method, string $path, array $params = [], array $queryStringParams = [])
280
+    private function request(string $method, string $path, array $params = [ ], array $queryStringParams = [ ])
281 281
     {
282 282
         return $this->httpClient
283 283
                 ->url($this->getRequestUri($path, $queryStringParams), $params)
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
     private function getRequestHeaders()
292 292
     {
293 293
         if (!$this->token) {
294
-            return [];
294
+            return [ ];
295 295
         }
296 296
 
297 297
         return [
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
      * @param array $params
304 304
      * @return string
305 305
      */
306
-    private function getRequestQueryString(array $params = [])
306
+    private function getRequestQueryString(array $params = [ ])
307 307
     {
308 308
         if (count($params) === 0) {
309 309
             return "";
@@ -311,10 +311,10 @@  discard block
 block discarded – undo
311 311
 
312 312
         $queryString = query_string($params);
313 313
 
314
-        return "?" . urldecode((string) $queryString);
314
+        return "?".urldecode((string) $queryString);
315 315
     }
316 316
 
317
-    private function getRequestUri(string $path, array $queryStringParams = [])
317
+    private function getRequestUri(string $path, array $queryStringParams = [ ])
318 318
     {
319 319
         $queryString = $this->getRequestQueryString($queryStringParams);
320 320
 
Please login to merge, or discard this patch.