@@ -4,5 +4,5 @@ |
||
| 4 | 4 | |
| 5 | 5 | interface ValidatorInterface |
| 6 | 6 | { |
| 7 | - public function isValid($url) : bool ; |
|
| 7 | + public function isValid($url) : bool; |
|
| 8 | 8 | } |
@@ -31,11 +31,11 @@ |
||
| 31 | 31 | |
| 32 | 32 | protected function getFormats() : array |
| 33 | 33 | { |
| 34 | - if(!isset($this->options['format'])){ |
|
| 34 | + if (!isset($this->options['format'])) { |
|
| 35 | 35 | return []; |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | - if(!is_array($this->options['format'])){ |
|
| 38 | + if (!is_array($this->options['format'])) { |
|
| 39 | 39 | return [$this->options['format']]; |
| 40 | 40 | } |
| 41 | 41 | |
@@ -44,7 +44,7 @@ discard block |
||
| 44 | 44 | $outVideos[$formatFound] = $video['url']; |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - if($selectedFormats != []) { |
|
| 47 | + if ($selectedFormats != []) { |
|
| 48 | 48 | foreach ($selectedFormats as $selectedFormat) { |
| 49 | 49 | if (array_key_exists($selectedFormat, $outVideos)) { |
| 50 | 50 | return [$selectedFormat => $outVideos[$selectedFormat]]; |
@@ -61,7 +61,7 @@ discard block |
||
| 61 | 61 | |
| 62 | 62 | ksort($outVideos, SORT_NUMERIC); |
| 63 | 63 | |
| 64 | - if($selectedFormats != []) { |
|
| 64 | + if ($selectedFormats != []) { |
|
| 65 | 65 | foreach ($selectedFormats as $selectedFormat) { |
| 66 | 66 | if (array_key_exists($selectedFormat, $outVideos)) { |
| 67 | 67 | return [$selectedFormat => $outVideos[$selectedFormat]]; |