@@ -142,7 +142,7 @@ |
||
142 | 142 | |
143 | 143 | $h = $this->getDimensions()[1]; |
144 | 144 | |
145 | - $this->side_values = array_values(array_filter($this->side_values, function ($height) use ($h) { |
|
145 | + $this->side_values = array_values(array_filter($this->side_values, function($height) use ($h) { |
|
146 | 146 | return $height < $h; |
147 | 147 | })); |
148 | 148 | } |
@@ -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 | } |
@@ -102,7 +102,7 @@ |
||
102 | 102 | private function getResolutions(): array |
103 | 103 | { |
104 | 104 | $resolutions = []; |
105 | - if(!method_exists($this->export, 'getRepresentations')){ |
|
105 | + if (!method_exists($this->export, 'getRepresentations')) { |
|
106 | 106 | return $resolutions; |
107 | 107 | } |
108 | 108 |
@@ -199,6 +199,6 @@ |
||
199 | 199 | */ |
200 | 200 | private function savePlaylist($path, $reps) |
201 | 201 | { |
202 | - HLSPlaylist::save($this->master_playlist ?? $path, $reps, pathinfo($path, PATHINFO_FILENAME)); |
|
202 | + HLSPlaylist::save($this->master_playlist ?? $path, $reps, pathinfo($path, PATHINFO_FILENAME)); |
|
203 | 203 | } |
204 | 204 | } |
205 | 205 | \ No newline at end of file |