Passed
Pull Request — master (#97)
by Maximilian
04:17
created
src/Request/UserPermissions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     public static function fromAmazonRequest(array $amazonRequest): self
20 20
     {
21 21
         return new self(
22
-            consentToken: PropertyHelper::checkNullValueString($amazonRequest, 'consentToken'),
22
+            consentToken : PropertyHelper::checkNullValueString($amazonRequest, 'consentToken'),
23 23
         );
24 24
     }
25 25
 }
Please login to merge, or discard this patch.
src/Request/Experience.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@  discard block
 block discarded – undo
13 13
      * @param bool|null $canResize Whether the experience can resize
14 14
      */
15 15
     public function __construct(
16
-        public string|int|null $arcMinuteWidth = null,
17
-        public string|int|null $arcMinuteHeight = null,
16
+        public string | int | null $arcMinuteWidth = null,
17
+        public string | int | null $arcMinuteHeight = null,
18 18
         public ?bool $canRotate = null,
19 19
         public ?bool $canResize = null,
20 20
     ) {
@@ -23,10 +23,10 @@  discard block
 block discarded – undo
23 23
     public static function fromAmazonRequest(array $amazonRequest): self
24 24
     {
25 25
         return new self(
26
-            arcMinuteWidth: $amazonRequest['arcMinuteWidth'] ?? null,
27
-            arcMinuteHeight: $amazonRequest['arcMinuteHeight'] ?? null,
28
-            canRotate: $amazonRequest['canRotate'] ?? null,
29
-            canResize: $amazonRequest['canResize'] ?? null,
26
+            arcMinuteWidth : $amazonRequest['arcMinuteWidth'] ?? null,
27
+            arcMinuteHeight : $amazonRequest['arcMinuteHeight'] ?? null,
28
+            canRotate : $amazonRequest['canRotate'] ?? null,
29
+            canResize : $amazonRequest['canResize'] ?? null,
30 30
         );
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
src/Request/Tags.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -39,18 +39,18 @@
 block discarded – undo
39 39
     public static function fromAmazonRequest(array $amazonRequest): self
40 40
     {
41 41
         return new self(
42
-            checked: $amazonRequest['checked'] ?? null,
43
-            clickable: $amazonRequest['clickable'] ?? null,
44
-            disabled: $amazonRequest['disabled'] ?? null,
45
-            focused: $amazonRequest['focused'] ?? null,
46
-            list: isset($amazonRequest['list']) ? ListTag::fromAmazonRequest($amazonRequest['list']) : null,
47
-            listItem: isset($amazonRequest['listItem']) ? ListItemTag::fromAmazonRequest($amazonRequest['listItem']) : null,
48
-            media: isset($amazonRequest['media']) ? MediaTag::fromAmazonRequest($amazonRequest['media']) : null,
49
-            ordinal: $amazonRequest['ordinal'] ?? null,
50
-            pager: isset($amazonRequest['pager']) ? PagerTag::fromAmazonRequest($amazonRequest['pager']) : null,
51
-            scrollable: isset($amazonRequest['scrollable']) ? ScrollableTag::fromAmazonRequest($amazonRequest['scrollable']) : null,
52
-            spoken: $amazonRequest['spoken'] ?? null,
53
-            viewport: isset($amazonRequest['viewport']) ? ViewportTag::fromAmazonRequest($amazonRequest['viewport']) : null,
42
+            checked : $amazonRequest['checked'] ?? null,
43
+            clickable : $amazonRequest['clickable'] ?? null,
44
+            disabled : $amazonRequest['disabled'] ?? null,
45
+            focused : $amazonRequest['focused'] ?? null,
46
+            list : isset($amazonRequest['list']) ? ListTag::fromAmazonRequest($amazonRequest['list']) : null,
47
+            listItem : isset($amazonRequest['listItem']) ? ListItemTag::fromAmazonRequest($amazonRequest['listItem']) : null,
48
+            media : isset($amazonRequest['media']) ? MediaTag::fromAmazonRequest($amazonRequest['media']) : null,
49
+            ordinal : $amazonRequest['ordinal'] ?? null,
50
+            pager : isset($amazonRequest['pager']) ? PagerTag::fromAmazonRequest($amazonRequest['pager']) : null,
51
+            scrollable : isset($amazonRequest['scrollable']) ? ScrollableTag::fromAmazonRequest($amazonRequest['scrollable']) : null,
52
+            spoken : $amazonRequest['spoken'] ?? null,
53
+            viewport : isset($amazonRequest['viewport']) ? ViewportTag::fromAmazonRequest($amazonRequest['viewport']) : null,
54 54
         );
55 55
     }
56 56
 }
Please login to merge, or discard this patch.
src/Request/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
     public static function fromAmazonRequest(array $amazonRequest): self
23 23
     {
24 24
         return new self(
25
-            applicationId: PropertyHelper::checkNullValueString($amazonRequest, 'applicationId'),
25
+            applicationId : PropertyHelper::checkNullValueString($amazonRequest, 'applicationId'),
26 26
         );
27 27
     }
28 28
 }
Please login to merge, or discard this patch.
src/Request/Speed.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
     public static function fromAmazonRequest(array $amazonRequest): self
23 23
     {
24 24
         return new self(
25
-            speedInMetersPerSecond: (float) ($amazonRequest['speedInMetersPerSecond']),
26
-            accuracyInMetersPerSecond: isset($amazonRequest['accuracyInMetersPerSecond']) ? (float) ($amazonRequest['accuracyInMetersPerSecond']) : null,
25
+            speedInMetersPerSecond : (float) ($amazonRequest['speedInMetersPerSecond']),
26
+            accuracyInMetersPerSecond : isset($amazonRequest['accuracyInMetersPerSecond']) ? (float) ($amazonRequest['accuracyInMetersPerSecond']) : null,
27 27
         );
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
src/Request/TrackedChange.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,11 +25,11 @@
 block discarded – undo
25 25
     public static function fromAmazonRequest(array $amazonRequest): self
26 26
     {
27 27
         return new self(
28
-            uid: $amazonRequest['uid'] ?? null,
29
-            name: $amazonRequest['name'] ?? null,
30
-            from: isset($amazonRequest['from']) ? MediaState::tryFrom($amazonRequest['from']) : null,
31
-            to: isset($amazonRequest['to']) ? MediaState::tryFrom($amazonRequest['to']) : null,
32
-            utcTime: $amazonRequest['utcTime'] ?? null,
28
+            uid : $amazonRequest['uid'] ?? null,
29
+            name : $amazonRequest['name'] ?? null,
30
+            from : isset($amazonRequest['from']) ? MediaState::tryFrom($amazonRequest['from']) : null,
31
+            to : isset($amazonRequest['to']) ? MediaState::tryFrom($amazonRequest['to']) : null,
32
+            utcTime : $amazonRequest['utcTime'] ?? null,
33 33
         );
34 34
     }
35 35
 }
Please login to merge, or discard this patch.
src/Request/ComponentVisibleOnScreen.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -57,10 +57,10 @@
 block discarded – undo
57 57
             position: $amazonRequest['position'] ?? null,
58 58
             role: $amazonRequest['role'] ?? null,
59 59
             tags: isset($amazonRequest['tags']) ? Tags::fromAmazonRequest($amazonRequest['tags']) : null,
60
-            transform: $amazonRequest['transform'] ?? null,
61
-            type: $amazonRequest['type'] ?? null,
62
-            uid: $amazonRequest['uid'] ?? null,
63
-            visibility: $amazonRequest['visibility'] ?? null,
60
+            transform : $amazonRequest['transform'] ?? null,
61
+            type : $amazonRequest['type'] ?? null,
62
+            uid : $amazonRequest['uid'] ?? null,
63
+            visibility : $amazonRequest['visibility'] ?? null,
64 64
         );
65 65
     }
66 66
 }
Please login to merge, or discard this patch.
src/Request/ListItemTag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     public static function fromAmazonRequest(array $amazonRequest): self
18 18
     {
19 19
         return new self(
20
-            index: $amazonRequest['index'] ?? null,
20
+            index : $amazonRequest['index'] ?? null,
21 21
         );
22 22
     }
23 23
 }
Please login to merge, or discard this patch.
src/Request/Video.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     public static function fromAmazonRequest(array $amazonRequest): self
18 18
     {
19 19
         return new self(
20
-            codecs: $amazonRequest['codecs'] ?? null,
20
+            codecs : $amazonRequest['codecs'] ?? null,
21 21
         );
22 22
     }
23 23
 }
Please login to merge, or discard this patch.