@@ -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 | } |
@@ -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 | }); |
@@ -176,7 +176,7 @@ |
||
| 176 | 176 | */ |
| 177 | 177 | private function call(): callable |
| 178 | 178 | { |
| 179 | - return function ($log) { |
|
| 179 | + return function($log) { |
|
| 180 | 180 | if (false !== strpos($log, $this->search_for) && !in_array($log, $this->segments)) { |
| 181 | 181 | array_push($this->segments, $log); |
| 182 | 182 | if ($this->key_rotation_period === 1 || (count($this->segments) % $this->key_rotation_period) === 0) { |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | */ |
| 31 | 31 | public static function concatKeyValue(array &$array, string $glue = ""): void |
| 32 | 32 | { |
| 33 | - array_walk($array, function (&$value, $key) use ($glue) { |
|
| 33 | + array_walk($array, function(&$value, $key) use ($glue) { |
|
| 34 | 34 | $value = "$key$glue$value"; |
| 35 | 35 | }); |
| 36 | 36 | } |