Passed
Push — master ( c97f61...125742 )
by Jérémy
01:58
created
src/Model/TaskStatus.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,6 +12,6 @@
 block discarded – undo
12 12
  */
13 13
 class TaskStatus extends Enum
14 14
 {
15
-    private const ACTIVE ='ACTIVE';
16
-    private const DONE ='DONE';
15
+    private const ACTIVE = 'ACTIVE';
16
+    private const DONE = 'DONE';
17 17
 }
Please login to merge, or discard this patch.
src/Model/TaskDto.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -16,12 +16,12 @@
 block discarded – undo
16 16
     public static function fromArray(array $data): self
17 17
     {
18 18
         return new self(
19
-            $data['assigneeId'],
20
-            $data['estimate'],
21
-            $data['id'],
22
-            $data['name'],
23
-            $data['projectId'],
24
-            new TaskStatus($data['status']),
19
+            $data[ 'assigneeId' ],
20
+            $data[ 'estimate' ],
21
+            $data[ 'id' ],
22
+            $data[ 'name' ],
23
+            $data[ 'projectId' ],
24
+            new TaskStatus($data[ 'status' ]),
25 25
         );
26 26
     }
27 27
 
Please login to merge, or discard this patch.
src/Api/Task/Task.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -20,21 +20,21 @@
 block discarded – undo
20 20
     /**
21 21
      * @return TaskDto[]
22 22
      */
23
-    public function tasks(string $workspaceId, string $projectId, array $params = []): array
23
+    public function tasks(string $workspaceId, string $projectId, array $params = [ ]): array
24 24
     {
25
-        if (isset($params['is-active']) && !is_bool($params['is-active'])) {
25
+        if (isset($params[ 'is-active' ]) && !is_bool($params[ 'is-active' ])) {
26 26
             throw new ClockifyException('Invalid "is-active" parameter (should be a boolean value)');
27 27
         }
28 28
 
29
-        if (isset($params['name']) && empty($params['name'])) {
29
+        if (isset($params[ 'name' ]) && empty($params[ 'name' ])) {
30 30
             throw new ClockifyException('Invalid "name" parameter');
31 31
         }
32 32
 
33
-        if (isset($params['page']) && (!is_int($params['page']) || $params['page'] < 1)) {
33
+        if (isset($params[ 'page' ]) && (!is_int($params[ 'page' ]) || $params[ 'page' ] < 1)) {
34 34
             throw new ClockifyException('Invalid "page" parameter');
35 35
         }
36 36
 
37
-        if (isset($params['page-size']) && (!is_int($params['page-size']) || $params['page-size'] < 1)) {
37
+        if (isset($params[ 'page-size' ]) && (!is_int($params[ 'page-size' ]) || $params[ 'page-size' ] < 1)) {
38 38
             throw new ClockifyException('Invalid "page-size" parameter');
39 39
         }
40 40
 
Please login to merge, or discard this patch.