Passed
Pull Request — master (#97)
by Maximilian
04:17
created
src/Request/ScrollableTag.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -21,9 +21,9 @@
 block discarded – undo
21 21
     public static function fromAmazonRequest(array $amazonRequest): self
22 22
     {
23 23
         return new self(
24
-            direction: isset($amazonRequest['direction']) ? ScrollDirection::tryFrom($amazonRequest['direction']) : null,
25
-            allowForward: $amazonRequest['allowForward'] ?? null,
26
-            allowBackwards: $amazonRequest['allowBackwards'] ?? null,
24
+            direction : isset($amazonRequest['direction']) ? ScrollDirection::tryFrom($amazonRequest['direction']) : null,
25
+            allowForward : $amazonRequest['allowForward'] ?? null,
26
+            allowBackwards : $amazonRequest['allowBackwards'] ?? null,
27 27
         );
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
src/Request/Geolocation.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -35,12 +35,12 @@
 block discarded – undo
35 35
     public static function fromAmazonRequest(array $amazonRequest): self
36 36
     {
37 37
         return new self(
38
-            locationServices: isset($amazonRequest['locationServices']) ? LocationServices::fromAmazonRequest($amazonRequest['locationServices']) : null,
39
-            timestamp: new \DateTime($amazonRequest['timestamp']),
40
-            coordinate: isset($amazonRequest['coordinate']) ? Coordinate::fromAmazonRequest($amazonRequest['coordinate']) : null,
41
-            altitude: isset($amazonRequest['altitude']) ? Altitude::fromAmazonRequest($amazonRequest['altitude']) : null,
42
-            heading: isset($amazonRequest['heading']) ? Heading::fromAmazonRequest($amazonRequest['heading']) : null,
43
-            speed: isset($amazonRequest['speed']) ? Speed::fromAmazonRequest($amazonRequest['speed']) : null,
38
+            locationServices : isset($amazonRequest['locationServices']) ? LocationServices::fromAmazonRequest($amazonRequest['locationServices']) : null,
39
+            timestamp : new \DateTime($amazonRequest['timestamp']),
40
+            coordinate : isset($amazonRequest['coordinate']) ? Coordinate::fromAmazonRequest($amazonRequest['coordinate']) : null,
41
+            altitude : isset($amazonRequest['altitude']) ? Altitude::fromAmazonRequest($amazonRequest['altitude']) : null,
42
+            heading : isset($amazonRequest['heading']) ? Heading::fromAmazonRequest($amazonRequest['heading']) : null,
43
+            speed : isset($amazonRequest['speed']) ? Speed::fromAmazonRequest($amazonRequest['speed']) : null,
44 44
         );
45 45
     }
46 46
 }
Please login to merge, or discard this patch.
src/Request/Heading.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
-            directionInDegrees: (float) ($amazonRequest['directionInDegrees']),
26
-            accuracyInDegrees: isset($amazonRequest['accuracyInDegrees']) ? (float) ($amazonRequest['accuracyInDegrees']) : null,
25
+            directionInDegrees : (float) ($amazonRequest['directionInDegrees']),
26
+            accuracyInDegrees : isset($amazonRequest['accuracyInDegrees']) ? (float) ($amazonRequest['accuracyInDegrees']) : null,
27 27
         );
28 28
     }
29 29
 }
Please login to merge, or discard this patch.
src/Request/User.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@
 block discarded – undo
23 23
     public static function fromAmazonRequest(array $amazonRequest): self
24 24
     {
25 25
         return new self(
26
-            userId: PropertyHelper::checkNullValueString($amazonRequest, 'userId'),
27
-            permissions: isset($amazonRequest['permissions']) ? UserPermissions::fromAmazonRequest($amazonRequest['permissions']) : null,
28
-            accessToken: PropertyHelper::checkNullValueString($amazonRequest, 'accessToken'),
26
+            userId : PropertyHelper::checkNullValueString($amazonRequest, 'userId'),
27
+            permissions : isset($amazonRequest['permissions']) ? UserPermissions::fromAmazonRequest($amazonRequest['permissions']) : null,
28
+            accessToken : PropertyHelper::checkNullValueString($amazonRequest, 'accessToken'),
29 29
         );
30 30
     }
31 31
 }
Please login to merge, or discard this patch.
src/Request/Request/APL/UserEventRequest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         public ?array $components = null,
26 26
         public ?string $presentationUri = null,
27 27
     ) {
28
-        parent::__construct(type: self::TYPE);
28
+        parent::__construct(type : self::TYPE);
29 29
     }
30 30
 
31 31
     public static function fromAmazonRequest(array $amazonRequest): AbstractRequest
Please login to merge, or discard this patch.
src/Request/Request/APL/RuntimeError.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,12 +29,12 @@
 block discarded – undo
29 29
     public static function fromAmazonRequest(array $amazonRequest): self
30 30
     {
31 31
         return new self(
32
-            type: isset($amazonRequest['type']) ? RuntimeErrorType::tryFrom($amazonRequest['type']) : null,
33
-            reason: PropertyHelper::checkNullValueString($amazonRequest, 'reason'),
34
-            listId: PropertyHelper::checkNullValueString($amazonRequest, 'listId'),
35
-            listVersion: PropertyHelper::checkNullValueInt($amazonRequest, 'listVersion'),
36
-            operationIndex: PropertyHelper::checkNullValueInt($amazonRequest, 'operationIndex'),
37
-            message: PropertyHelper::checkNullValueString($amazonRequest, 'message'),
32
+            type : isset($amazonRequest['type']) ? RuntimeErrorType::tryFrom($amazonRequest['type']) : null,
33
+            reason : PropertyHelper::checkNullValueString($amazonRequest, 'reason'),
34
+            listId : PropertyHelper::checkNullValueString($amazonRequest, 'listId'),
35
+            listVersion : PropertyHelper::checkNullValueInt($amazonRequest, 'listVersion'),
36
+            operationIndex : PropertyHelper::checkNullValueInt($amazonRequest, 'operationIndex'),
37
+            message : PropertyHelper::checkNullValueString($amazonRequest, 'message'),
38 38
         );
39 39
     }
40 40
 }
Please login to merge, or discard this patch.
src/Request/Request/APL/RuntimeErrorRequest.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 ?string $token = null,
20 20
         public array $errors = [],
21 21
     ) {
22
-        parent::__construct(type: self::TYPE);
22
+        parent::__construct(type : self::TYPE);
23 23
     }
24 24
 
25 25
     public static function fromAmazonRequest(array $amazonRequest): AbstractRequest
Please login to merge, or discard this patch.
src/Request/Request/APL/LoadTokenListDataRequest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -31,11 +31,11 @@
 block discarded – undo
31 31
         public ?string $pageToken = null,
32 32
     ) {
33 33
         parent::__construct(
34
-            type: self::TYPE,
35
-            timestamp: $timestamp,
36
-            token: $token,
37
-            requestId: $requestId,
38
-            locale: $locale
34
+            type : self::TYPE,
35
+            timestamp : $timestamp,
36
+            token : $token,
37
+            requestId : $requestId,
38
+            locale : $locale
39 39
         );
40 40
     }
41 41
 
Please login to merge, or discard this patch.
src/Request/Request/APL/LoadIndexListDataRequest.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -29,15 +29,15 @@
 block discarded – undo
29 29
         ?string $locale = null,
30 30
         public ?string $correlationToken = null,
31 31
         public ?string $listId = null,
32
-        public string|int|null $startIndex = null,
32
+        public string | int | null $startIndex = null,
33 33
         public ?int $count = null,
34 34
     ) {
35 35
         parent::__construct(
36
-            type: self::TYPE,
37
-            timestamp: $timestamp,
38
-            token: $token,
39
-            requestId: $requestId,
40
-            locale: $locale
36
+            type : self::TYPE,
37
+            timestamp : $timestamp,
38
+            token : $token,
39
+            requestId : $requestId,
40
+            locale : $locale
41 41
         );
42 42
     }
43 43
 
Please login to merge, or discard this patch.