@@ -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 | } |
@@ -17,7 +17,7 @@ |
||
| 17 | 17 | */ |
| 18 | 18 | public function __construct( |
| 19 | 19 | public ?string $componentId = null, |
| 20 | - public string|array|null $source = null, |
|
| 20 | + public string | array | null $source = null, |
|
| 21 | 21 | public ?AudioTrack $audioTrack = null, |
| 22 | 22 | ) { |
| 23 | 23 | parent::__construct(self::TYPE); |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | ?array $preserve = null, |
| 24 | 24 | public ?array $onScroll = null, |
| 25 | 25 | ) { |
| 26 | - parent::__construct(type: self::TYPE, preserve: $preserve); |
|
| 26 | + parent::__construct(type : self::TYPE, preserve : $preserve); |
|
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | public function jsonSerialize(): array |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | public ?ScrollDirection $scrollDirection = null, |
| 33 | 33 | public ?Snap $snap = null, |
| 34 | 34 | ) { |
| 35 | - parent::__construct(type: self::TYPE, preserve: $preserve); |
|
| 35 | + parent::__construct(type : self::TYPE, preserve : $preserve); |
|
| 36 | 36 | } |
| 37 | 37 | |
| 38 | 38 | public function jsonSerialize(): array |
@@ -45,11 +45,11 @@ |
||
| 45 | 45 | ?array $preserve = null, |
| 46 | 46 | public ?Scale $scale = null, |
| 47 | 47 | public bool $screenLock = true, |
| 48 | - public string|array|null $source = null, |
|
| 48 | + public string | array | null $source = null, |
|
| 49 | 49 | public ?array $sources = null, |
| 50 | 50 | ?array $trackChanges = null, |
| 51 | 51 | ) { |
| 52 | - parent::__construct(type: self::TYPE, preserve: $preserve, trackChanges: $trackChanges); |
|
| 52 | + parent::__construct(type : self::TYPE, preserve : $preserve, trackChanges : $trackChanges); |
|
| 53 | 53 | } |
| 54 | 54 | |
| 55 | 55 | public function jsonSerialize(): array |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | public ?PageDirection $pageDirection = null, |
| 35 | 35 | ?array $preserve = null, |
| 36 | 36 | ) { |
| 37 | - parent::__construct(type: self::TYPE, preserve: $preserve); |
|
| 37 | + parent::__construct(type : self::TYPE, preserve : $preserve); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | public function jsonSerialize(): array |
@@ -26,7 +26,7 @@ |
||
| 26 | 26 | * @param APLBaseComponent[]|null $items Array of child components to display inside the Frame |
| 27 | 27 | */ |
| 28 | 28 | public function __construct( |
| 29 | - public Gradient|string|null $background = null, |
|
| 29 | + public Gradient | string | null $background = null, |
|
| 30 | 30 | public ?string $backgroundColor = null, |
| 31 | 31 | public ?string $borderBottomLeftRadius = null, |
| 32 | 32 | public ?string $borderBottomRightRadius = null, |