@@ -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,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 | /** |
@@ -4,12 +4,10 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\StandardCommand; |
| 6 | 6 | |
| 7 | -class ClearFocusCommand extends AbstractStandardCommand |
|
| 8 | -{ |
|
| 7 | +class ClearFocusCommand extends AbstractStandardCommand { |
|
| 9 | 8 | public const TYPE = 'ClearFocus'; |
| 10 | 9 | |
| 11 | - public function __construct() |
|
| 12 | - { |
|
| 10 | + public function __construct() { |
|
| 13 | 11 | parent::__construct(self::TYPE); |
| 14 | 12 | } |
| 15 | 13 | |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\StandardCommand; |
| 6 | 6 | |
| 7 | -class ImportPackageCommand extends AbstractStandardCommand |
|
| 8 | -{ |
|
| 7 | +class ImportPackageCommand extends AbstractStandardCommand { |
|
| 9 | 8 | public const TYPE = 'ImportPackage'; |
| 10 | 9 | |
| 11 | 10 | /** |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\StandardCommand; |
| 6 | 6 | |
| 7 | -class OpenURLCommand extends AbstractStandardCommand |
|
| 8 | -{ |
|
| 7 | +class OpenURLCommand extends AbstractStandardCommand { |
|
| 9 | 8 | public const TYPE = 'OpenURL'; |
| 10 | 9 | |
| 11 | 10 | /** |