@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | $outVideos[$formatFound] = $video['url']; |
52 | 52 | } |
53 | 53 | |
54 | - if($selectedFormats != []) { |
|
54 | + if ($selectedFormats != []) { |
|
55 | 55 | foreach ($selectedFormats as $selectedFormat) { |
56 | 56 | if (array_key_exists($selectedFormat, $outVideos)) { |
57 | 57 | return [$selectedFormat => $outVideos[$selectedFormat]]; |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | { |
76 | 76 | foreach (['audio', 'video'] as $elem) { |
77 | 77 | if (strpos($string, $elem) === false) { |
78 | - if(!$this->allowNoAudio) { |
|
78 | + if (!$this->allowNoAudio) { |
|
79 | 79 | return null; |
80 | 80 | } |
81 | 81 | } |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | |
22 | 22 | public function __construct($id, array $config = []) |
23 | 23 | { |
24 | - if(!array_key_exists('allow-no-audio', $config)){ |
|
24 | + if (!array_key_exists('allow-no-audio', $config)) { |
|
25 | 25 | $config['allow-no-audio'] = false; |
26 | 26 | } |
27 | 27 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | * @throws \Jackal\Downloader\Ext\Youtube\Exception\YoutubeDownloaderException |
39 | 39 | */ |
40 | 40 | protected function getDownloadLinks() : array{ |
41 | - if($this->downloadLinks == []) { |
|
41 | + if ($this->downloadLinks == []) { |
|
42 | 42 | $yt = new \YouTube\YouTubeDownloader(); |
43 | 43 | $this->downloadLinks = $yt->getDownloadLinks($this->youtubeVideoURL); |
44 | 44 | $this->downloadLinks = $this->videoFilter->filter($this->downloadLinks, []); |