Passed
Push — master ( b23da5...cc1845 )
by Amin
04:10
created
src/File.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,9 @@
 block discarded – undo
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
             }
Please login to merge, or discard this patch.
src/AutoReps.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -172,7 +172,7 @@
 block discarded – undo
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
         });
Please login to merge, or discard this patch.
src/HLSKeyInfo.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -176,7 +176,7 @@
 block discarded – undo
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) {
Please login to merge, or discard this patch.
src/Utiles.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.