@@ -103,7 +103,7 @@ discard block |
||
| 103 | 103 | |
| 104 | 104 | /** |
| 105 | 105 | * Returns provider-specific data options. |
| 106 | - */ |
|
| 106 | + */ |
|
| 107 | 107 | public function getProviderOptions(): array |
| 108 | 108 | { |
| 109 | 109 | if (isset($this->options['providers'])) { |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | |
| 116 | 116 | /** |
| 117 | 117 | * Returns provider-specific HTML options. |
| 118 | - */ |
|
| 118 | + */ |
|
| 119 | 119 | public function getProviderHtmlOptions(): array |
| 120 | 120 | { |
| 121 | 121 | if (isset($this->options['providers'])) { |
@@ -173,7 +173,7 @@ |
||
| 173 | 173 | /** |
| 174 | 174 | * Returns URL of a resulting embed object. |
| 175 | 175 | */ |
| 176 | - public function src(array $options = null): string | array | null |
|
| 176 | + public function src(array $options = null): string|array|null |
|
| 177 | 177 | { |
| 178 | 178 | $options = array_merge($this->options, $options ?? []); |
| 179 | 179 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | * video - string[] |
| 59 | 59 | * raw - null |
| 60 | 60 | */ |
| 61 | - public function src(array $options = []): string | array | null |
|
| 61 | + public function src(array $options = []): string|array|null |
|
| 62 | 62 | { |
| 63 | 63 | if (is_array($this->html)) { |
| 64 | 64 | $attrs = $this->applyOptions($this->html, $options); |
@@ -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 | } |