@@ -14,7 +14,7 @@ discard block |
||
| 14 | 14 | $videos = $this->getVideoInfo(); |
| 15 | 15 | $selectedFormats = $this->getFormats(); |
| 16 | 16 | |
| 17 | - $links = array_reduce($videos, function ($vimeoVideos, $currentVimeoVideo) { |
|
| 17 | + $links = array_reduce($videos, function($vimeoVideos, $currentVimeoVideo) { |
|
| 18 | 18 | $quality = substr($currentVimeoVideo['quality'], 0, -1); |
| 19 | 19 | $vimeoVideos[$quality] = $currentVimeoVideo['url']; |
| 20 | 20 | |
@@ -27,7 +27,7 @@ discard block |
||
| 27 | 27 | throw VimeoDownloadException::videoURLsNotFound(); |
| 28 | 28 | } |
| 29 | 29 | |
| 30 | - if($selectedFormats != []) { |
|
| 30 | + if ($selectedFormats != []) { |
|
| 31 | 31 | foreach ($selectedFormats as $selectedFormat) { |
| 32 | 32 | if (array_key_exists($selectedFormat, $links)) { |
| 33 | 33 | return $links[$selectedFormat]; |
@@ -42,11 +42,11 @@ discard block |
||
| 42 | 42 | |
| 43 | 43 | protected function getFormats() : array |
| 44 | 44 | { |
| 45 | - if(!isset($this->options['format'])){ |
|
| 45 | + if (!isset($this->options['format'])) { |
|
| 46 | 46 | return []; |
| 47 | 47 | } |
| 48 | 48 | |
| 49 | - if(!is_array($this->options['format'])){ |
|
| 49 | + if (!is_array($this->options['format'])) { |
|
| 50 | 50 | return [$this->options['format']]; |
| 51 | 51 | } |
| 52 | 52 | |