Passed
Pull Request — master (#96)
by Maximilian
03:08
created
src/Response/Reprompt.php 1 patch
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.
src/Response/CanFulfill/CanFulfillIntentResponse.php 1 patch
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.
src/Response/CanFulfill/CanFulfillSlot.php 1 patch
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.
src/Response/CanFulfill/CanFulfillResponseBody.php 1 patch
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\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
Please login to merge, or discard this patch.
src/Validation/RequestValidator.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -13,8 +13,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Request/Altitude.php 1 patch
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\Request;
6 6
 
7
-class Altitude
8
-{
7
+class Altitude {
9 8
     public float $altitudeInMeters;
10 9
     public ?float $accuracyInMeters = null;
11 10
 
Please login to merge, or discard this patch.
src/Request/AudioPlayer.php 1 patch
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.
src/Request/Coordinate.php 1 patch
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\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;
Please login to merge, or discard this patch.
src/Request/Application.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,7 @@
 block discarded – undo
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
Please login to merge, or discard this patch.