Completed
Push — master ( 3fe81d...0a755d )
by Luca
03:29 queued 01:52
created
src/Downloader/AbstractDownloader.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
         $options->setAllowedTypes('force', 'bool');
36 36
         $options->setAllowedTypes('overwrite', 'bool');
37
-        $options->setAllowedTypes('video_id', ['string','integer']);
37
+        $options->setAllowedTypes('video_id', ['string', 'integer']);
38 38
         $this->options = $options->resolve($config);
39 39
     }
40 40
 
@@ -75,11 +75,11 @@  discard block
 block discarded – undo
75 75
      */
76 76
     protected function getFormats() : array
77 77
     {
78
-        if(!isset($this->options['format'])){
78
+        if (!isset($this->options['format'])) {
79 79
             return [];
80 80
         }
81 81
 
82
-        if(is_scalar($this->options['format'])){
82
+        if (is_scalar($this->options['format'])) {
83 83
             return [$this->options['format']];
84 84
         }
85 85
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     }
89 89
 
90 90
     protected function filterByFormats(array $possibleResults) : array{
91
-        if($this->getFormats() != []) {
91
+        if ($this->getFormats() != []) {
92 92
             foreach ($this->getFormats() as $selectedFormat) {
93 93
                 if (isset($possibleResults[$selectedFormat])) {
94 94
                     return [$selectedFormat => $possibleResults[$selectedFormat]];
Please login to merge, or discard this patch.