@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | |
| 10 | 10 | public function __construct( |
| 11 | 11 | protected string $type, |
| 12 | - protected string | array $html, |
|
| 12 | + protected string|array $html, |
|
| 13 | 13 | protected ?string $script = null |
| 14 | 14 | ) { |
| 15 | 15 | } |
@@ -68,7 +68,7 @@ discard block |
||
| 68 | 68 | } |
| 69 | 69 | |
| 70 | 70 | if ($this->type === self::TYPE_VIDEO) { |
| 71 | - return array_map(function ($source) { |
|
| 71 | + return array_map(function($source) { |
|
| 72 | 72 | return $source['src']; |
| 73 | 73 | }, $attrs['source']); |
| 74 | 74 | } |
@@ -234,7 +234,7 @@ discard block |
||
| 234 | 234 | */ |
| 235 | 235 | protected function applyAutoplay(array $attrs, array &$options): array |
| 236 | 236 | { |
| 237 | - if (! ($options['autoplay'] ?? false)) { |
|
| 237 | + if (!($options['autoplay'] ?? false)) { |
|
| 238 | 238 | return $attrs; |
| 239 | 239 | } |
| 240 | 240 | |