Test Setup Failed
Push — master ( b0d8e7...7f2504 )
by Gianluca
04:54
created
src/Client.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     // Templates
47 47
     public function listTemplates($page = 1, $itemsPerPage = 6)
48 48
     {
49
-        return $this->request('GET', '/projects/templates', [], [
49
+        return $this->request('GET', '/projects/templates', [ ], [
50 50
             'page' => $page,
51 51
             'itemsPerPage' => $itemsPerPage
52 52
         ]);
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
     public function listProjects($page = 1, $itemsPerPage = 6)
67 67
     {
68
-        return $this->request('GET', '/projects', [], [
68
+        return $this->request('GET', '/projects', [ ], [
69 69
             'page' => $page,
70 70
             'itemsPerPage' => $itemsPerPage
71 71
         ]);
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
     public function setProjectPassword($projectId, string $password)
95 95
     {
96
-        return $this->request('POST', "/projects/{$projectId}/password", ['password' => $password]);
96
+        return $this->request('POST', "/projects/{$projectId}/password", [ 'password' => $password ]);
97 97
     }
98 98
 
99 99
     public function publishProject($projectId)
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
      * @param array $queryStringParams
281 281
      * @return LushResponse
282 282
      */
283
-    private function request(string $method, string $path, array $params = [], array $queryStringParams = [])
283
+    private function request(string $method, string $path, array $params = [ ], array $queryStringParams = [ ])
284 284
     {
285 285
         return $this->httpClient
286 286
                 ->url($this->getRequestUri($path, $queryStringParams), $params)
@@ -294,7 +294,7 @@  discard block
 block discarded – undo
294 294
     private function getRequestHeaders()
295 295
     {
296 296
         if (!$this->token) {
297
-            return [];
297
+            return [ ];
298 298
         }
299 299
 
300 300
         return [
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
      * @param array $params
307 307
      * @return string
308 308
      */
309
-    private function getRequestQueryString(array $params = [])
309
+    private function getRequestQueryString(array $params = [ ])
310 310
     {
311 311
         if (count($params) === 0) {
312 312
             return "";
@@ -314,10 +314,10 @@  discard block
 block discarded – undo
314 314
 
315 315
         $queryString = query_string($params);
316 316
 
317
-        return "?" . urldecode((string) $queryString);
317
+        return "?".urldecode((string) $queryString);
318 318
     }
319 319
 
320
-    private function getRequestUri(string $path, array $queryStringParams = [])
320
+    private function getRequestUri(string $path, array $queryStringParams = [ ])
321 321
     {
322 322
         $queryString = $this->getRequestQueryString($queryStringParams);
323 323
 
Please login to merge, or discard this patch.