Passed
Push — master ( 131ab9...b607ca )
by Luca
04:42 queued 02:51
created
src/Filter/VideoResultFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/Downloader/YoutubeDownloader.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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, []);
Please login to merge, or discard this patch.