Passed
Push — master ( 43aca1...5a3864 )
by Maximilian
03:27
created
src/Response/Directives/Display/Text.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
4 4
 
5 5
 namespace MaxBeckers\AmazonAlexa\Response\Directives\Display;
6 6
 
7
-class Text
8
-{
7
+class Text {
9 8
     public const TYPE_PLAIN_TEXT = 'PlainText';
10 9
     public const TYPE_RICH_TEXT = 'RichText';
11 10
 
Please login to merge, or discard this patch.
Switch Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 
3
-declare(strict_types=1);
3
+    declare(strict_types=1);
4 4
 
5
-namespace MaxBeckers\AmazonAlexa\Response\Directives\Display;
5
+    namespace MaxBeckers\AmazonAlexa\Response\Directives\Display;
6 6
 
7
-class Text
8
-{
9
-    public const TYPE_PLAIN_TEXT = 'PlainText';
10
-    public const TYPE_RICH_TEXT = 'RichText';
7
+    class Text
8
+    {
9
+        public const TYPE_PLAIN_TEXT = 'PlainText';
10
+        public const TYPE_RICH_TEXT = 'RichText';
11 11
 
12
-    public function __construct(
13
-        public ?string $text = null,
14
-        public ?string $type = null
15
-    ) {
16
-    }
12
+        public function __construct(
13
+            public ?string $text = null,
14
+            public ?string $type = null
15
+        ) {
16
+        }
17 17
 
18
-    public static function create(?string $value, string $type = self::TYPE_PLAIN_TEXT): self
19
-    {
20
-        return new self($value, $type);
21
-    }
18
+        public static function create(?string $value, string $type = self::TYPE_PLAIN_TEXT): self
19
+        {
20
+            return new self($value, $type);
21
+        }
22 22
 }
Please login to merge, or discard this patch.
src/Response/ResponseBodyInterface.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,6 +4,5 @@
 block discarded – undo
4 4
 
5 5
 namespace MaxBeckers\AmazonAlexa\Response;
6 6
 
7
-interface ResponseBodyInterface
8
-{
7
+interface ResponseBodyInterface {
9 8
 }
Please login to merge, or discard this patch.
Switch Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,9 +1,9 @@
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 
3
-declare(strict_types=1);
3
+    declare(strict_types=1);
4 4
 
5
-namespace MaxBeckers\AmazonAlexa\Response;
5
+    namespace MaxBeckers\AmazonAlexa\Response;
6 6
 
7
-interface ResponseBodyInterface
8
-{
7
+    interface ResponseBodyInterface
8
+    {
9 9
 }
Please login to merge, or discard this patch.
src/Response/Reprompt.php 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,9 +4,7 @@
 block discarded – undo
4 4
 
5 5
 namespace MaxBeckers\AmazonAlexa\Response;
6 6
 
7
-class Reprompt
8
-{
9
-    public function __construct(public OutputSpeech $outputSpeech)
10
-    {
7
+class Reprompt {
8
+    public function __construct(public OutputSpeech $outputSpeech) {
11 9
     }
12 10
 }
Please login to merge, or discard this patch.
Switch Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 
3
-declare(strict_types=1);
3
+    declare(strict_types=1);
4 4
 
5
-namespace MaxBeckers\AmazonAlexa\Response;
5
+    namespace MaxBeckers\AmazonAlexa\Response;
6 6
 
7
-class Reprompt
8
-{
9
-    public function __construct(public OutputSpeech $outputSpeech)
7
+    class Reprompt
10 8
     {
11
-    }
9
+        public function __construct(public OutputSpeech $outputSpeech)
10
+        {
11
+        }
12 12
 }
Please login to merge, or discard this patch.
src/Response/CanFulfill/CanFulfillIntentResponse.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
4 4
 
5 5
 namespace MaxBeckers\AmazonAlexa\Response\CanFulfill;
6 6
 
7
-class CanFulfillIntentResponse
8
-{
7
+class CanFulfillIntentResponse {
9 8
     public const CAN_FULFILL_YES = 'YES';
10 9
     public const CAN_FULFILL_MAYBE = 'MAYBE';
11 10
     public const CAN_FULFILL_NO = 'NO';
Please login to merge, or discard this patch.
Switch Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -1,29 +1,29 @@
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 
3
-declare(strict_types=1);
3
+    declare(strict_types=1);
4 4
 
5
-namespace MaxBeckers\AmazonAlexa\Response\CanFulfill;
5
+    namespace MaxBeckers\AmazonAlexa\Response\CanFulfill;
6 6
 
7
-class CanFulfillIntentResponse
8
-{
9
-    public const CAN_FULFILL_YES = 'YES';
10
-    public const CAN_FULFILL_MAYBE = 'MAYBE';
11
-    public const CAN_FULFILL_NO = 'NO';
7
+    class CanFulfillIntentResponse
8
+    {
9
+        public const CAN_FULFILL_YES = 'YES';
10
+        public const CAN_FULFILL_MAYBE = 'MAYBE';
11
+        public const CAN_FULFILL_NO = 'NO';
12 12
 
13
-    /** @var CanFulfillSlot[] */
14
-    public function __construct(
15
-        public ?string $canFulfill = null,
16
-        public array $slots = []
17
-    ) {
18
-    }
13
+        /** @var CanFulfillSlot[] */
14
+        public function __construct(
15
+            public ?string $canFulfill = null,
16
+            public array $slots = []
17
+        ) {
18
+        }
19 19
 
20
-    public static function create(string $canFulfill, array $slots = []): self
21
-    {
22
-        return new self($canFulfill, $slots);
23
-    }
20
+        public static function create(string $canFulfill, array $slots = []): self
21
+        {
22
+            return new self($canFulfill, $slots);
23
+        }
24 24
 
25
-    public function addSlot(string $slotName, CanFulfillSlot $canFulfillSlot): void
26
-    {
27
-        $this->slots[$slotName] = $canFulfillSlot;
28
-    }
25
+        public function addSlot(string $slotName, CanFulfillSlot $canFulfillSlot): void
26
+        {
27
+            $this->slots[$slotName] = $canFulfillSlot;
28
+        }
29 29
 }
Please login to merge, or discard this patch.
src/Response/CanFulfill/CanFulfillSlot.php 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,8 +4,7 @@
 block discarded – undo
4 4
 
5 5
 namespace MaxBeckers\AmazonAlexa\Response\CanFulfill;
6 6
 
7
-class CanFulfillSlot
8
-{
7
+class CanFulfillSlot {
9 8
     public const CAN_UNDERSTAND_YES = 'YES';
10 9
     public const CAN_UNDERSTAND_MAYBE = 'MAYBE';
11 10
     public const CAN_UNDERSTAND_NO = 'NO';
Please login to merge, or discard this patch.
Switch Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -1,25 +1,25 @@
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 
3
-declare(strict_types=1);
3
+    declare(strict_types=1);
4 4
 
5
-namespace MaxBeckers\AmazonAlexa\Response\CanFulfill;
5
+    namespace MaxBeckers\AmazonAlexa\Response\CanFulfill;
6 6
 
7
-class CanFulfillSlot
8
-{
9
-    public const CAN_UNDERSTAND_YES = 'YES';
10
-    public const CAN_UNDERSTAND_MAYBE = 'MAYBE';
11
-    public const CAN_UNDERSTAND_NO = 'NO';
12
-    public const CAN_FULFILL_YES = 'YES';
13
-    public const CAN_FULFILL_NO = 'NO';
7
+    class CanFulfillSlot
8
+    {
9
+        public const CAN_UNDERSTAND_YES = 'YES';
10
+        public const CAN_UNDERSTAND_MAYBE = 'MAYBE';
11
+        public const CAN_UNDERSTAND_NO = 'NO';
12
+        public const CAN_FULFILL_YES = 'YES';
13
+        public const CAN_FULFILL_NO = 'NO';
14 14
 
15
-    public function __construct(
16
-        public ?string $canUnderstand = null,
17
-        public ?string $canFulfill = null
18
-    ) {
19
-    }
15
+        public function __construct(
16
+            public ?string $canUnderstand = null,
17
+            public ?string $canFulfill = null
18
+        ) {
19
+        }
20 20
 
21
-    public static function create(string $canUnderstand, string $canFulfill): self
22
-    {
23
-        return new self($canUnderstand, $canFulfill);
24
-    }
21
+        public static function create(string $canUnderstand, string $canFulfill): self
22
+        {
23
+            return new self($canUnderstand, $canFulfill);
24
+        }
25 25
 }
Please login to merge, or discard this patch.
src/Request/AudioPlayer.php 3 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,7 @@
 block discarded – undo
6 6
 
7 7
 use MaxBeckers\AmazonAlexa\Helper\PropertyHelper;
8 8
 
9
-class AudioPlayer
10
-{
9
+class AudioPlayer {
11 10
     public const PLAYER_ACTIVITY_IDLE = 'IDLE';
12 11
     public const PLAYER_ACTIVITY_PAUSED = 'PAUSED';
13 12
     public const PLAYER_ACTIVITY_PLAYING = 'PLAYING';
Please login to merge, or discard this patch.
Switch Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -1,38 +1,38 @@
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 
3
-declare(strict_types=1);
3
+    declare(strict_types=1);
4 4
 
5
-namespace MaxBeckers\AmazonAlexa\Request;
5
+    namespace MaxBeckers\AmazonAlexa\Request;
6 6
 
7
-use MaxBeckers\AmazonAlexa\Helper\PropertyHelper;
7
+    use MaxBeckers\AmazonAlexa\Helper\PropertyHelper;
8 8
 
9
-class AudioPlayer
10
-{
11
-    public const PLAYER_ACTIVITY_IDLE = 'IDLE';
12
-    public const PLAYER_ACTIVITY_PAUSED = 'PAUSED';
13
-    public const PLAYER_ACTIVITY_PLAYING = 'PLAYING';
14
-    public const PLAYER_ACTIVITY_BUFFER_UNDERRUN = 'BUFFER_UNDERRUN';
15
-    public const PLAYER_ACTIVITY_FINISHED = 'FINISHED';
16
-    public const PLAYER_ACTIVITY_STOPPED = 'STOPPED';
9
+    class AudioPlayer
10
+    {
11
+        public const PLAYER_ACTIVITY_IDLE = 'IDLE';
12
+        public const PLAYER_ACTIVITY_PAUSED = 'PAUSED';
13
+        public const PLAYER_ACTIVITY_PLAYING = 'PLAYING';
14
+        public const PLAYER_ACTIVITY_BUFFER_UNDERRUN = 'BUFFER_UNDERRUN';
15
+        public const PLAYER_ACTIVITY_FINISHED = 'FINISHED';
16
+        public const PLAYER_ACTIVITY_STOPPED = 'STOPPED';
17 17
 
18
-    /**
18
+        /**
19 19
      * @param string|null $token Audio player token
20 20
      * @param int|null $offsetInMilliseconds Current playback offset in milliseconds
21 21
      * @param string|null $playerActivity Current player activity state
22 22
      */
23
-    public function __construct(
24
-        public ?string $token = null,
25
-        public ?int $offsetInMilliseconds = null,
26
-        public ?string $playerActivity = null,
27
-    ) {
28
-    }
23
+        public function __construct(
24
+            public ?string $token = null,
25
+            public ?int $offsetInMilliseconds = null,
26
+            public ?string $playerActivity = null,
27
+        ) {
28
+        }
29 29
 
30
-    public static function fromAmazonRequest(array $amazonRequest): self
31
-    {
32
-        return new self(
33
-            token: PropertyHelper::checkNullValueString($amazonRequest, 'token'),
34
-            offsetInMilliseconds: PropertyHelper::checkNullValueInt($amazonRequest, 'offsetInMilliseconds'),
35
-            playerActivity: PropertyHelper::checkNullValueString($amazonRequest, 'playerActivity'),
36
-        );
37
-    }
30
+        public static function fromAmazonRequest(array $amazonRequest): self
31
+        {
32
+            return new self(
33
+                token: PropertyHelper::checkNullValueString($amazonRequest, 'token'),
34
+                offsetInMilliseconds: PropertyHelper::checkNullValueInt($amazonRequest, 'offsetInMilliseconds'),
35
+                playerActivity: PropertyHelper::checkNullValueString($amazonRequest, 'playerActivity'),
36
+            );
37
+        }
38 38
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@
 block discarded – undo
30 30
     public static function fromAmazonRequest(array $amazonRequest): self
31 31
     {
32 32
         return new self(
33
-            token: PropertyHelper::checkNullValueString($amazonRequest, 'token'),
34
-            offsetInMilliseconds: PropertyHelper::checkNullValueInt($amazonRequest, 'offsetInMilliseconds'),
35
-            playerActivity: PropertyHelper::checkNullValueString($amazonRequest, 'playerActivity'),
33
+            token : PropertyHelper::checkNullValueString($amazonRequest, 'token'),
34
+            offsetInMilliseconds : PropertyHelper::checkNullValueInt($amazonRequest, 'offsetInMilliseconds'),
35
+            playerActivity : PropertyHelper::checkNullValueString($amazonRequest, 'playerActivity'),
36 36
         );
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
src/Request/Request/System/ConnectionsResponseRequest.php 3 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,7 @@
 block discarded – undo
7 7
 use MaxBeckers\AmazonAlexa\Helper\PropertyHelper;
8 8
 use MaxBeckers\AmazonAlexa\Request\Request\AbstractRequest;
9 9
 
10
-class ConnectionsResponseRequest extends SystemRequest
11
-{
10
+class ConnectionsResponseRequest extends SystemRequest {
12 11
     public const TYPE = 'Connections.Response';
13 12
     public const NAME_UPSELL = 'Upsell';
14 13
     public const NAME_BUY = 'Buy';
Please login to merge, or discard this patch.
Switch Indentation   +35 added lines, -35 removed lines patch added patch discarded remove patch
@@ -1,20 +1,20 @@  discard block
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 
3
-declare(strict_types=1);
3
+    declare(strict_types=1);
4 4
 
5
-namespace MaxBeckers\AmazonAlexa\Request\Request\System;
5
+    namespace MaxBeckers\AmazonAlexa\Request\Request\System;
6 6
 
7
-use MaxBeckers\AmazonAlexa\Helper\PropertyHelper;
8
-use MaxBeckers\AmazonAlexa\Request\Request\AbstractRequest;
7
+    use MaxBeckers\AmazonAlexa\Helper\PropertyHelper;
8
+    use MaxBeckers\AmazonAlexa\Request\Request\AbstractRequest;
9 9
 
10
-class ConnectionsResponseRequest extends SystemRequest
11
-{
12
-    public const TYPE = 'Connections.Response';
13
-    public const NAME_UPSELL = 'Upsell';
14
-    public const NAME_BUY = 'Buy';
15
-    public const NAME_CANCEL = 'CANCEL';
10
+    class ConnectionsResponseRequest extends SystemRequest
11
+    {
12
+        public const TYPE = 'Connections.Response';
13
+        public const NAME_UPSELL = 'Upsell';
14
+        public const NAME_BUY = 'Buy';
15
+        public const NAME_CANCEL = 'CANCEL';
16 16
 
17
-    /**
17
+        /**
18 18
      * @param \DateTime|null $timestamp Request timestamp
19 19
      * @param string|null $requestId Request identifier
20 20
      * @param string|null $locale Request locale
@@ -23,28 +23,28 @@  discard block
 block discarded – undo
23 23
      * @param Status|null $status Connection response status
24 24
      * @param Payload|null $payload Connection response payload
25 25
      */
26
-    public function __construct(
27
-        ?\DateTime $timestamp = null,
28
-        ?string $requestId = null,
29
-        ?string $locale = null,
30
-        public ?string $name = null,
31
-        public ?string $token = null,
32
-        public ?Status $status = null,
33
-        public ?Payload $payload = null,
34
-    ) {
35
-        parent::__construct(self::TYPE, $timestamp, $this->token, $requestId, $locale);
36
-    }
26
+        public function __construct(
27
+            ?\DateTime $timestamp = null,
28
+            ?string $requestId = null,
29
+            ?string $locale = null,
30
+            public ?string $name = null,
31
+            public ?string $token = null,
32
+            public ?Status $status = null,
33
+            public ?Payload $payload = null,
34
+        ) {
35
+            parent::__construct(self::TYPE, $timestamp, $this->token, $requestId, $locale);
36
+        }
37 37
 
38
-    public static function fromAmazonRequest(array $amazonRequest): AbstractRequest
39
-    {
40
-        return new self(
41
-            timestamp: self::getTime(PropertyHelper::checkNullValueStringOrInt($amazonRequest, 'timestamp')),
42
-            requestId: PropertyHelper::checkNullValueString($amazonRequest, 'requestId'),
43
-            locale: PropertyHelper::checkNullValueString($amazonRequest, 'locale'),
44
-            name: PropertyHelper::checkNullValueString($amazonRequest, 'name'),
45
-            token: PropertyHelper::checkNullValueString($amazonRequest, 'token'),
46
-            status: isset($amazonRequest['status']) ? Status::fromAmazonRequest($amazonRequest['status']) : null,
47
-            payload: isset($amazonRequest['payload']) ? Payload::fromAmazonRequest($amazonRequest['payload']) : null,
48
-        );
49
-    }
38
+        public static function fromAmazonRequest(array $amazonRequest): AbstractRequest
39
+        {
40
+            return new self(
41
+                timestamp: self::getTime(PropertyHelper::checkNullValueStringOrInt($amazonRequest, 'timestamp')),
42
+                requestId: PropertyHelper::checkNullValueString($amazonRequest, 'requestId'),
43
+                locale: PropertyHelper::checkNullValueString($amazonRequest, 'locale'),
44
+                name: PropertyHelper::checkNullValueString($amazonRequest, 'name'),
45
+                token: PropertyHelper::checkNullValueString($amazonRequest, 'token'),
46
+                status: isset($amazonRequest['status']) ? Status::fromAmazonRequest($amazonRequest['status']) : null,
47
+                payload: isset($amazonRequest['payload']) ? Payload::fromAmazonRequest($amazonRequest['payload']) : null,
48
+            );
49
+        }
50 50
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
             name: PropertyHelper::checkNullValueString($amazonRequest, 'name'),
45 45
             token: PropertyHelper::checkNullValueString($amazonRequest, 'token'),
46 46
             status: isset($amazonRequest['status']) ? Status::fromAmazonRequest($amazonRequest['status']) : null,
47
-            payload: isset($amazonRequest['payload']) ? Payload::fromAmazonRequest($amazonRequest['payload']) : null,
47
+            payload : isset($amazonRequest['payload']) ? Payload::fromAmazonRequest($amazonRequest['payload']) : null,
48 48
         );
49 49
     }
50 50
 }
Please login to merge, or discard this patch.
src/Request/Request/System/Payload.php 3 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,7 @@
 block discarded – undo
6 6
 
7 7
 use MaxBeckers\AmazonAlexa\Helper\PropertyHelper;
8 8
 
9
-class Payload
10
-{
9
+class Payload {
11 10
     public const RESULT_ACCEPTED = 'ACCEPTED';
12 11
     public const RESULT_DECLINED = 'DECLINED';
13 12
     public const RESULT_ALREADY_PURCHASED = 'ALREADY_PURCHASED';
Please login to merge, or discard this patch.
Switch Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -1,36 +1,36 @@
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 
3
-declare(strict_types=1);
3
+    declare(strict_types=1);
4 4
 
5
-namespace MaxBeckers\AmazonAlexa\Request\Request\System;
5
+    namespace MaxBeckers\AmazonAlexa\Request\Request\System;
6 6
 
7
-use MaxBeckers\AmazonAlexa\Helper\PropertyHelper;
7
+    use MaxBeckers\AmazonAlexa\Helper\PropertyHelper;
8 8
 
9
-class Payload
10
-{
11
-    public const RESULT_ACCEPTED = 'ACCEPTED';
12
-    public const RESULT_DECLINED = 'DECLINED';
13
-    public const RESULT_ALREADY_PURCHASED = 'ALREADY_PURCHASED';
14
-    public const RESULT_ERROR = 'ERROR';
9
+    class Payload
10
+    {
11
+        public const RESULT_ACCEPTED = 'ACCEPTED';
12
+        public const RESULT_DECLINED = 'DECLINED';
13
+        public const RESULT_ALREADY_PURCHASED = 'ALREADY_PURCHASED';
14
+        public const RESULT_ERROR = 'ERROR';
15 15
 
16
-    /**
16
+        /**
17 17
      * @param string|null $purchaseResult Purchase result status
18 18
      * @param string|null $productId Product identifier
19 19
      * @param string|null $message Additional message
20 20
      */
21
-    public function __construct(
22
-        public ?string $purchaseResult = null,
23
-        public ?string $productId = null,
24
-        public ?string $message = null,
25
-    ) {
26
-    }
21
+        public function __construct(
22
+            public ?string $purchaseResult = null,
23
+            public ?string $productId = null,
24
+            public ?string $message = null,
25
+        ) {
26
+        }
27 27
 
28
-    public static function fromAmazonRequest(array $amazonRequest): self
29
-    {
30
-        return new self(
31
-            purchaseResult: PropertyHelper::checkNullValueString($amazonRequest, 'purchaseResult'),
32
-            productId: PropertyHelper::checkNullValueString($amazonRequest, 'productId'),
33
-            message: PropertyHelper::checkNullValueString($amazonRequest, 'message'),
34
-        );
35
-    }
28
+        public static function fromAmazonRequest(array $amazonRequest): self
29
+        {
30
+            return new self(
31
+                purchaseResult: PropertyHelper::checkNullValueString($amazonRequest, 'purchaseResult'),
32
+                productId: PropertyHelper::checkNullValueString($amazonRequest, 'productId'),
33
+                message: PropertyHelper::checkNullValueString($amazonRequest, 'message'),
34
+            );
35
+        }
36 36
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@
 block discarded – undo
28 28
     public static function fromAmazonRequest(array $amazonRequest): self
29 29
     {
30 30
         return new self(
31
-            purchaseResult: PropertyHelper::checkNullValueString($amazonRequest, 'purchaseResult'),
32
-            productId: PropertyHelper::checkNullValueString($amazonRequest, 'productId'),
33
-            message: PropertyHelper::checkNullValueString($amazonRequest, 'message'),
31
+            purchaseResult : PropertyHelper::checkNullValueString($amazonRequest, 'purchaseResult'),
32
+            productId : PropertyHelper::checkNullValueString($amazonRequest, 'productId'),
33
+            message : PropertyHelper::checkNullValueString($amazonRequest, 'message'),
34 34
         );
35 35
     }
36 36
 }
Please login to merge, or discard this patch.
src/Request/Request/AlexaSkillEvent/SkillDisabledBody.php 3 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,8 +6,7 @@
 block discarded – undo
6 6
 
7 7
 use MaxBeckers\AmazonAlexa\Helper\PropertyHelper;
8 8
 
9
-class SkillDisabledBody
10
-{
9
+class SkillDisabledBody {
11 10
     public const PERSISTED = 'PERSISTED';
12 11
     public const NOT_PERSISTED = 'NOT_PERSISTED';
13 12
 
Please login to merge, or discard this patch.
Switch Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -1,28 +1,28 @@
 block discarded – undo
1
-<?php
1
+    <?php
2 2
 
3
-declare(strict_types=1);
3
+    declare(strict_types=1);
4 4
 
5
-namespace MaxBeckers\AmazonAlexa\Request\Request\AlexaSkillEvent;
5
+    namespace MaxBeckers\AmazonAlexa\Request\Request\AlexaSkillEvent;
6 6
 
7
-use MaxBeckers\AmazonAlexa\Helper\PropertyHelper;
7
+    use MaxBeckers\AmazonAlexa\Helper\PropertyHelper;
8 8
 
9
-class SkillDisabledBody
10
-{
11
-    public const PERSISTED = 'PERSISTED';
12
-    public const NOT_PERSISTED = 'NOT_PERSISTED';
9
+    class SkillDisabledBody
10
+    {
11
+        public const PERSISTED = 'PERSISTED';
12
+        public const NOT_PERSISTED = 'NOT_PERSISTED';
13 13
 
14
-    /**
14
+        /**
15 15
      * @param string|null $userInformationPersistenceStatus User information persistence status
16 16
      */
17
-    public function __construct(
18
-        public ?string $userInformationPersistenceStatus = null,
19
-    ) {
20
-    }
17
+        public function __construct(
18
+            public ?string $userInformationPersistenceStatus = null,
19
+        ) {
20
+        }
21 21
 
22
-    public static function fromAmazonRequest(array $amazonRequest): self
23
-    {
24
-        return new self(
25
-            userInformationPersistenceStatus: PropertyHelper::checkNullValueString($amazonRequest, 'userInformationPersistenceStatus'),
26
-        );
27
-    }
22
+        public static function fromAmazonRequest(array $amazonRequest): self
23
+        {
24
+            return new self(
25
+                userInformationPersistenceStatus: PropertyHelper::checkNullValueString($amazonRequest, 'userInformationPersistenceStatus'),
26
+            );
27
+        }
28 28
 }
Please login to merge, or discard this 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
-            userInformationPersistenceStatus: PropertyHelper::checkNullValueString($amazonRequest, 'userInformationPersistenceStatus'),
25
+            userInformationPersistenceStatus : PropertyHelper::checkNullValueString($amazonRequest, 'userInformationPersistenceStatus'),
26 26
         );
27 27
     }
28 28
 }
Please login to merge, or discard this patch.