@@ -13,8 +13,7 @@ |
||
| 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 | */ |
@@ -7,7 +7,7 @@ |
||
| 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 | ) { |
@@ -13,8 +13,8 @@ |
||
| 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 | |
@@ -36,7 +36,7 @@ discard block |
||
| 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 |
||
| 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 | } |
@@ -7,8 +7,7 @@ |
||
| 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 |
@@ -7,8 +7,7 @@ |
||
| 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 |
@@ -7,8 +7,7 @@ |
||
| 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 |
@@ -10,8 +10,7 @@ |
||
| 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 |
@@ -4,8 +4,7 @@ |
||
| 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 | /** |