Passed
Push — master ( 881b80...a7445e )
by Jérémy
01:38
created
src/Api/Client/Client.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,17 +20,17 @@
 block discarded – undo
20 20
     /**
21 21
      * @return ClientDto[]
22 22
      */
23
-    public function clients(string $workspaceId, array $params = []): array
23
+    public function clients(string $workspaceId, array $params = [ ]): array
24 24
     {
25
-        if (isset($params['name']) && empty($params['name'])) {
25
+        if (isset($params[ 'name' ]) && empty($params[ 'name' ])) {
26 26
             throw new ClockifyException('Invalid "name" parameter');
27 27
         }
28 28
 
29
-        if (isset($params['page']) && (!is_int($params['page']) || $params['page'] < 1)) {
29
+        if (isset($params[ 'page' ]) && (!is_int($params[ 'page' ]) || $params[ 'page' ] < 1)) {
30 30
             throw new ClockifyException('Invalid "page" parameter');
31 31
         }
32 32
 
33
-        if (isset($params['page-size']) && (!is_int($params['page-size']) || $params['page-size'] < 1)) {
33
+        if (isset($params[ 'page-size' ]) && (!is_int($params[ 'page-size' ]) || $params[ 'page-size' ] < 1)) {
34 34
             throw new ClockifyException('Invalid "page-size" parameter');
35 35
         }
36 36
 
Please login to merge, or discard this patch.
src/Model/ClientDto.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -13,9 +13,9 @@
 block discarded – undo
13 13
     public static function fromArray(array $data): self
14 14
     {
15 15
         return new self(
16
-            $data['id'],
17
-            $data['name'],
18
-            $data['workspaceId']
16
+            $data[ 'id' ],
17
+            $data[ 'name' ],
18
+            $data[ 'workspaceId' ]
19 19
         );
20 20
     }
21 21
 
Please login to merge, or discard this patch.