Completed
Branch master (5a6438)
by Luca
03:37
created
Category
src/Validator/ValidatorInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,5 +4,5 @@
 block discarded – undo
4 4
 
5 5
 interface ValidatorInterface
6 6
 {
7
-    public function isValid($url) : bool ;
7
+    public function isValid($url) : bool;
8 8
 }
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
@@ -31,11 +31,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Filter/VideoResultFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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]];
Please login to merge, or discard this patch.