@@ -23,7 +23,7 @@ |
||
| 23 | 23 | { |
| 24 | 24 | $this->setVideoCodec($video_codec); |
| 25 | 25 | |
| 26 | - if($audio_codec){ |
|
| 26 | + if ($audio_codec) { |
|
| 27 | 27 | $this->setAudioCodec($audio_codec); |
| 28 | 28 | } |
| 29 | 29 | } |
@@ -42,7 +42,9 @@ |
||
| 42 | 42 | if (is_dir($dir)) { |
| 43 | 43 | $size = 0; |
| 44 | 44 | foreach (scandir($dir) as $file) { |
| 45 | - if (in_array($file, [".", ".."])) continue; |
|
| 45 | + if (in_array($file, [".", ".."])) { |
|
| 46 | + continue; |
|
| 47 | + } |
|
| 46 | 48 | $filename = $dir . DIRECTORY_SEPARATOR . $file; |
| 47 | 49 | $size += is_file($filename) ? filesize($filename) : static::directorySize($filename); |
| 48 | 50 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | { |
| 24 | 24 | $this->setVideoCodec($video_codec); |
| 25 | 25 | |
| 26 | - if($audio_codec){ |
|
| 26 | + if ($audio_codec) { |
|
| 27 | 27 | $this->setAudioCodec($audio_codec); |
| 28 | 28 | } |
| 29 | 29 | } |
@@ -23,7 +23,7 @@ |
||
| 23 | 23 | { |
| 24 | 24 | $this->setVideoCodec($video_codec); |
| 25 | 25 | |
| 26 | - if($audio_codec){ |
|
| 26 | + if ($audio_codec) { |
|
| 27 | 27 | $this->setAudioCodec($audio_codec); |
| 28 | 28 | } |
| 29 | 29 | } |
@@ -61,7 +61,6 @@ |
||
| 61 | 61 | } |
| 62 | 62 | |
| 63 | 63 | /** |
| 64 | - |
|
| 65 | 64 | * @return array |
| 66 | 65 | */ |
| 67 | 66 | private function getBaseFilters(): array |
@@ -172,7 +172,7 @@ |
||
| 172 | 172 | */ |
| 173 | 173 | private function sortReps(array &$reps): void |
| 174 | 174 | { |
| 175 | - usort($reps, function (Representation $rep1, Representation $rep2) { |
|
| 175 | + usort($reps, function(Representation $rep1, Representation $rep2) { |
|
| 176 | 176 | $ascending = $rep1->getKiloBitrate() > $rep2->getKiloBitrate(); |
| 177 | 177 | return $this->sort === "asc" ? $ascending : !$ascending; |
| 178 | 178 | }); |