Passed
Push — master ( a53d55...43aca1 )
by Maximilian
03:50
created
src/Validation/RequestValidator.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,7 @@
 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
      */
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/Settings.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 class Settings implements \JsonSerializable
8 8
 {
9 9
     public function __construct(
10
-        public int|float|null $idleTimeout = null,
10
+        public int | float | null $idleTimeout = null,
11 11
         public ?PseudoLocalization $pseudoLocalization = null,
12 12
         public bool $supportsResizing = false,
13 13
     ) {
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/Value.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,8 @@
 block discarded – undo
13 13
      */
14 14
     public function __construct(
15 15
         public string $property,
16
-        public int|float $to,
17
-        public int|float|null $from = null,
16
+        public int | float $to,
17
+        public int | float | null $from = null,
18 18
     ) {
19 19
     }
20 20
 
Please login to merge, or discard this patch.
src/Response/Directives/APL/Document/APLDocument.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         public MainTemplate $mainTemplate,
37 37
         public string $type = 'APL',
38 38
         public string $version = '2024.3',
39
-        public Gradient|string|null $background = null,
39
+        public Gradient | string | null $background = null,
40 40
         public ?array $commands = null,
41 41
         public ?string $description = null,
42 42
         public ?Environment $environment = null,
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
     public function jsonSerialize(): array
67 67
     {
68
-        return array_filter(get_object_vars($this), function ($val) {
68
+        return array_filter(get_object_vars($this), function($val) {
69 69
             if (is_array($val)) {
70 70
                 return count($val) > 0;
71 71
             }
Please login to merge, or discard this patch.
src/Response/Directives/APL/Gesture/DoublePress.php 1 patch
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\Response\Directives\APL\Document\GestureType;
8 8
 use MaxBeckers\AmazonAlexa\Response\Directives\APL\StandardCommand\AbstractStandardCommand;
9 9
 
10
-class DoublePress extends AbstractGesture
11
-{
10
+class DoublePress extends AbstractGesture {
12 11
     /**
13 12
      * @param AbstractStandardCommand[]|null $onDoublePress Commands to run on double press
14 13
      * @param AbstractStandardCommand[]|null $onSinglePress Commands to run on single press
Please login to merge, or discard this patch.
src/Response/Directives/APL/Gesture/LongPress.php 1 patch
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\Response\Directives\APL\Document\GestureType;
8 8
 use MaxBeckers\AmazonAlexa\Response\Directives\APL\StandardCommand\AbstractStandardCommand;
9 9
 
10
-class LongPress extends AbstractGesture
11
-{
10
+class LongPress extends AbstractGesture {
12 11
     /**
13 12
      * @param AbstractStandardCommand[]|null $onLongPressStart Commands to run when long press starts
14 13
      * @param AbstractStandardCommand[]|null $onLongPressEnd Commands to run when long press ends
Please login to merge, or discard this patch.
src/Response/Directives/APL/Gesture/Tap.php 1 patch
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\Response\Directives\APL\Document\GestureType;
8 8
 use MaxBeckers\AmazonAlexa\Response\Directives\APL\StandardCommand\AbstractStandardCommand;
9 9
 
10
-class Tap extends AbstractGesture
11
-{
10
+class Tap extends AbstractGesture {
12 11
     /**
13 12
      * @param AbstractStandardCommand[]|null $onTap Commands to run when a tap occurs
14 13
      * @param AbstractStandardCommand[]|null $onCancel Commands to run when gesture is cancelled
Please login to merge, or discard this patch.
src/Response/Directives/APL/Gesture/SwipeAway.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,8 +10,7 @@
 block discarded – undo
10 10
 use MaxBeckers\AmazonAlexa\Response\Directives\APL\Document\SwipeDirection;
11 11
 use MaxBeckers\AmazonAlexa\Response\Directives\APL\StandardCommand\AbstractStandardCommand;
12 12
 
13
-class SwipeAway extends AbstractGesture
14
-{
13
+class SwipeAway extends AbstractGesture {
15 14
     /**
16 15
      * @param SwipeDirection|null $direction Direction the user swipes to activate the gesture
17 16
      * @param SwipeAction|null $action How to display the original and child components during the swipe gesture
Please login to merge, or discard this patch.
src/Response/Directives/APL/StandardCommand/AutoPageCommand.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\Directives\APL\StandardCommand;
6 6
 
7
-class AutoPageCommand extends AbstractStandardCommand
8
-{
7
+class AutoPageCommand extends AbstractStandardCommand {
9 8
     public const TYPE = 'AutoPage';
10 9
 
11 10
     /**
Please login to merge, or discard this patch.