Passed
Pull Request — master (#1)
by Jérémy
02:45 queued 52s
created
src/Model/TimeIntervalDto.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -15,9 +15,9 @@
 block discarded – undo
15 15
     public static function fromArray(array $data): self
16 16
     {
17 17
         return new self(
18
-            new DateTimeImmutable($data['start']),
19
-            new DateTimeImmutable($data['end']),
20
-            $data['duration']
18
+            new DateTimeImmutable($data[ 'start' ]),
19
+            new DateTimeImmutable($data[ 'end' ]),
20
+            $data[ 'duration' ]
21 21
         );
22 22
     }
23 23
 
Please login to merge, or discard this patch.
src/Model/TimeEntryDtoImpl.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -20,16 +20,16 @@
 block discarded – undo
20 20
     public static function fromArray(array $data): self
21 21
     {
22 22
         return new self(
23
-            $data['billable'],
24
-            $data['description'],
25
-            $data['id'],
26
-            $data['isLocked'],
27
-            $data['projectId'],
28
-            $data['tagIds'],
29
-            $data['taskId'],
30
-            TimeIntervalDto::fromArray($data['timeInterval']),
31
-            $data['userId'],
32
-            $data['workspaceId']
23
+            $data[ 'billable' ],
24
+            $data[ 'description' ],
25
+            $data[ 'id' ],
26
+            $data[ 'isLocked' ],
27
+            $data[ 'projectId' ],
28
+            $data[ 'tagIds' ],
29
+            $data[ 'taskId' ],
30
+            TimeIntervalDto::fromArray($data[ 'timeInterval' ]),
31
+            $data[ 'userId' ],
32
+            $data[ 'workspaceId' ]
33 33
         );
34 34
     }
35 35
 
Please login to merge, or discard this patch.