@@ -4,9 +4,7 @@ |
||
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 | } |
@@ -4,8 +4,7 @@ |
||
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'; |
@@ -4,8 +4,7 @@ |
||
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'; |
@@ -6,8 +6,7 @@ |
||
6 | 6 | |
7 | 7 | use MaxBeckers\AmazonAlexa\Response\ResponseBodyInterface; |
8 | 8 | |
9 | -class CanFulfillResponseBody implements ResponseBodyInterface |
|
10 | -{ |
|
9 | +class CanFulfillResponseBody implements ResponseBodyInterface { |
|
11 | 10 | public ?CanFulfillIntentResponse $canFulfillIntent = null; |
12 | 11 | |
13 | 12 | public static function create(CanFulfillIntentResponse $canFulfillIntent): self |
@@ -13,8 +13,7 @@ discard block |
||
13 | 13 | /** |
14 | 14 | * This is a validator for amazon echo requests. It validates the timestamp of the request and the request signature. |
15 | 15 | */ |
16 | -class RequestValidator |
|
17 | -{ |
|
16 | +class RequestValidator { |
|
18 | 17 | /** |
19 | 18 | * Basic value for timestamp validation. 150 seconds is suggested by amazon. |
20 | 19 | */ |
@@ -23,8 +22,7 @@ discard block |
||
23 | 22 | public Client $client; |
24 | 23 | protected int $timestampTolerance; |
25 | 24 | |
26 | - public function __construct(int $timestampTolerance = self::TIMESTAMP_VALID_TOLERANCE_SECONDS, ?Client $client = null) |
|
27 | - { |
|
25 | + public function __construct(int $timestampTolerance = self::TIMESTAMP_VALID_TOLERANCE_SECONDS, ?Client $client = null) { |
|
28 | 26 | $this->timestampTolerance = $timestampTolerance; |
29 | 27 | $this->client = $client ?: new Client(); |
30 | 28 | } |
@@ -4,8 +4,7 @@ |
||
4 | 4 | |
5 | 5 | namespace MaxBeckers\AmazonAlexa\Request; |
6 | 6 | |
7 | -class Altitude |
|
8 | -{ |
|
7 | +class Altitude { |
|
9 | 8 | public float $altitudeInMeters; |
10 | 9 | public ?float $accuracyInMeters = null; |
11 | 10 |
@@ -6,8 +6,7 @@ |
||
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'; |
@@ -4,8 +4,7 @@ |
||
4 | 4 | |
5 | 5 | namespace MaxBeckers\AmazonAlexa\Request; |
6 | 6 | |
7 | -class Coordinate |
|
8 | -{ |
|
7 | +class Coordinate { |
|
9 | 8 | public float $latitudeInDegrees; |
10 | 9 | public float $longitudeInDegrees; |
11 | 10 | public float $accuracyInMeters; |
@@ -9,8 +9,7 @@ |
||
9 | 9 | /** |
10 | 10 | * Represents the current Skill. |
11 | 11 | */ |
12 | -class Application |
|
13 | -{ |
|
12 | +class Application { |
|
14 | 13 | public ?string $applicationId = null; |
15 | 14 | |
16 | 15 | public static function fromAmazonRequest(array $amazonRequest): self |