@@ -12,7 +12,7 @@ |
||
| 12 | 12 | { |
| 13 | 13 | public static function getVoices(): array |
| 14 | 14 | { |
| 15 | - return array_map(function (string $item): array { |
|
| 15 | + return array_map(function(string $item): array { |
|
| 16 | 16 | return [$item]; |
| 17 | 17 | }, SsmlGenerator::VOICES); |
| 18 | 18 | } |
@@ -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 | ) { |
@@ -29,9 +29,9 @@ |
||
| 29 | 29 | case SPINBUTTON = 'spinbutton'; |
| 30 | 30 | case SUMMARY = 'summary'; |
| 31 | 31 | case SWITCH = 'switch'; |
| 32 | - case TAB = 'tab'; |
|
| 33 | - case TABLIST = 'tablist'; |
|
| 34 | - case TEXT = 'text'; |
|
| 35 | - case TIMER = 'timer'; |
|
| 36 | - case TOOLBAR = 'toolbar'; |
|
| 32 | + case TAB = 'tab'; |
|
| 33 | + case TABLIST = 'tablist'; |
|
| 34 | + case TEXT = 'text'; |
|
| 35 | + case TIMER = 'timer'; |
|
| 36 | + case TOOLBAR = 'toolbar'; |
|
| 37 | 37 | } |
@@ -1,12 +1,12 @@ |
||
| 1 | -<?php |
|
| 1 | + <?php |
|
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | + declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | -namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 5 | + namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 6 | 6 | |
| 7 | -enum SwipeAction: string |
|
| 8 | -{ |
|
| 9 | - case REVEAL = 'reveal'; |
|
| 10 | - case SLIDE = 'slide'; |
|
| 11 | - case COVER = 'cover'; |
|
| 7 | + enum SwipeAction: string |
|
| 8 | + { |
|
| 9 | + case REVEAL = 'reveal'; |
|
| 10 | + case SLIDE = 'slide'; |
|
| 11 | + case COVER = 'cover'; |
|
| 12 | 12 | } |
@@ -1,35 +1,35 @@ |
||
| 1 | -<?php |
|
| 1 | + <?php |
|
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | + declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | -namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 5 | + namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 6 | 6 | |
| 7 | -class Value implements \JsonSerializable |
|
| 8 | -{ |
|
| 9 | - /** |
|
| 7 | + class Value implements \JsonSerializable |
|
| 8 | + { |
|
| 9 | + /** |
|
| 10 | 10 | * @param string $property The property to animate |
| 11 | 11 | * @param int|float $to Target value for the animation |
| 12 | 12 | * @param int|float|null $from Starting value (optional). Null means: use current runtime value as implicit start. |
| 13 | 13 | */ |
| 14 | - public function __construct( |
|
| 15 | - public string $property, |
|
| 16 | - public int|float $to, |
|
| 17 | - public int|float|null $from = null, |
|
| 18 | - ) { |
|
| 19 | - } |
|
| 14 | + public function __construct( |
|
| 15 | + public string $property, |
|
| 16 | + public int|float $to, |
|
| 17 | + public int|float|null $from = null, |
|
| 18 | + ) { |
|
| 19 | + } |
|
| 20 | 20 | |
| 21 | - public function jsonSerialize(): array |
|
| 22 | - { |
|
| 23 | - $out = [ |
|
| 24 | - 'property' => $this->property, |
|
| 25 | - ]; |
|
| 21 | + public function jsonSerialize(): array |
|
| 22 | + { |
|
| 23 | + $out = [ |
|
| 24 | + 'property' => $this->property, |
|
| 25 | + ]; |
|
| 26 | 26 | |
| 27 | - if ($this->from !== null) { |
|
| 28 | - $out['from'] = $this->from; |
|
| 29 | - } |
|
| 27 | + if ($this->from !== null) { |
|
| 28 | + $out['from'] = $this->from; |
|
| 29 | + } |
|
| 30 | 30 | |
| 31 | - $out['to'] = $this->to; |
|
| 31 | + $out['to'] = $this->to; |
|
| 32 | 32 | |
| 33 | - return $out; |
|
| 34 | - } |
|
| 33 | + return $out; |
|
| 34 | + } |
|
| 35 | 35 | } |
@@ -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 | |
@@ -1,36 +1,36 @@ |
||
| 1 | -<?php |
|
| 1 | + <?php |
|
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | + declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | -namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 5 | + namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 6 | 6 | |
| 7 | -class Environment implements \JsonSerializable |
|
| 8 | -{ |
|
| 9 | - /** |
|
| 7 | + class Environment implements \JsonSerializable |
|
| 8 | + { |
|
| 9 | + /** |
|
| 10 | 10 | * @param string|null $lang Language setting |
| 11 | 11 | * @param LayoutDirection|null $layoutDirection Layout direction setting |
| 12 | 12 | * @param string[]|null $parameters Array of parameter strings |
| 13 | 13 | */ |
| 14 | - public function __construct( |
|
| 15 | - public ?string $lang = null, |
|
| 16 | - public ?LayoutDirection $layoutDirection = null, |
|
| 17 | - public ?array $parameters = null, |
|
| 18 | - ) { |
|
| 19 | - } |
|
| 20 | - |
|
| 21 | - public function jsonSerialize(): array |
|
| 22 | - { |
|
| 23 | - $data = []; |
|
| 24 | - if ($this->lang !== null) { |
|
| 25 | - $data['lang'] = $this->lang; |
|
| 26 | - } |
|
| 27 | - if ($this->layoutDirection !== null) { |
|
| 28 | - $data['layoutDirection'] = $this->layoutDirection->value; |
|
| 29 | - } |
|
| 30 | - if ($this->parameters !== null && count($this->parameters) > 0) { |
|
| 31 | - $data['parameters'] = $this->parameters; |
|
| 14 | + public function __construct( |
|
| 15 | + public ?string $lang = null, |
|
| 16 | + public ?LayoutDirection $layoutDirection = null, |
|
| 17 | + public ?array $parameters = null, |
|
| 18 | + ) { |
|
| 32 | 19 | } |
| 33 | 20 | |
| 34 | - return $data; |
|
| 35 | - } |
|
| 21 | + public function jsonSerialize(): array |
|
| 22 | + { |
|
| 23 | + $data = []; |
|
| 24 | + if ($this->lang !== null) { |
|
| 25 | + $data['lang'] = $this->lang; |
|
| 26 | + } |
|
| 27 | + if ($this->layoutDirection !== null) { |
|
| 28 | + $data['layoutDirection'] = $this->layoutDirection->value; |
|
| 29 | + } |
|
| 30 | + if ($this->parameters !== null && count($this->parameters) > 0) { |
|
| 31 | + $data['parameters'] = $this->parameters; |
|
| 32 | + } |
|
| 33 | + |
|
| 34 | + return $data; |
|
| 35 | + } |
|
| 36 | 36 | } |
@@ -1,14 +1,14 @@ |
||
| 1 | -<?php |
|
| 1 | + <?php |
|
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | + declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | -namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 5 | + namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 6 | 6 | |
| 7 | -enum Scale: string |
|
| 8 | -{ |
|
| 9 | - case BEST_FIT = 'best-fit'; |
|
| 10 | - case BEST_FILL = 'best-fill'; |
|
| 11 | - case BEST_FIT_DOWN = 'best-fit-down'; |
|
| 12 | - case FILL = 'fill'; |
|
| 13 | - case NONE = 'none'; |
|
| 7 | + enum Scale: string |
|
| 8 | + { |
|
| 9 | + case BEST_FIT = 'best-fit'; |
|
| 10 | + case BEST_FILL = 'best-fill'; |
|
| 11 | + case BEST_FIT_DOWN = 'best-fit-down'; |
|
| 12 | + case FILL = 'fill'; |
|
| 13 | + case NONE = 'none'; |
|
| 14 | 14 | } |
@@ -1,11 +1,11 @@ |
||
| 1 | -<?php |
|
| 1 | + <?php |
|
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | + declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | -namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 5 | + namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 6 | 6 | |
| 7 | -enum FontStyle: string |
|
| 8 | -{ |
|
| 9 | - case NORMAL = 'normal'; |
|
| 10 | - case ITALIC = 'italic'; |
|
| 7 | + enum FontStyle: string |
|
| 8 | + { |
|
| 9 | + case NORMAL = 'normal'; |
|
| 10 | + case ITALIC = 'italic'; |
|
| 11 | 11 | } |
@@ -1,14 +1,14 @@ |
||
| 1 | -<?php |
|
| 1 | + <?php |
|
| 2 | 2 | |
| 3 | -declare(strict_types=1); |
|
| 3 | + declare(strict_types=1); |
|
| 4 | 4 | |
| 5 | -namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 5 | + namespace MaxBeckers\AmazonAlexa\Response\Directives\APL\Document; |
|
| 6 | 6 | |
| 7 | -enum SubmitKeyType: string |
|
| 8 | -{ |
|
| 9 | - case DONE = 'done'; |
|
| 10 | - case GO = 'go'; |
|
| 11 | - case NEXT = 'next'; |
|
| 12 | - case SEARCH = 'search'; |
|
| 13 | - case SEND = 'send'; |
|
| 7 | + enum SubmitKeyType: string |
|
| 8 | + { |
|
| 9 | + case DONE = 'done'; |
|
| 10 | + case GO = 'go'; |
|
| 11 | + case NEXT = 'next'; |
|
| 12 | + case SEARCH = 'search'; |
|
| 13 | + case SEND = 'send'; |
|
| 14 | 14 | } |