@@ -33,7 +33,7 @@ |
||
33 | 33 | $trimmedLines = array_map('trim', explode("\n", $lines)); |
34 | 34 | |
35 | 35 | // remove empty values |
36 | - $lines = array_filter($trimmedLines, function ($item) { |
|
36 | + $lines = array_filter($trimmedLines, function($item) { |
|
37 | 37 | return $item !== ''; |
38 | 38 | }); |
39 | 39 |
@@ -17,9 +17,9 @@ |
||
17 | 17 | public static function bytesToHumans(int $bytes, $precision = 2): ?string |
18 | 18 | { |
19 | 19 | $kilobyte = 1024; |
20 | - $megabyte = 1048576; // $kilobyte * 1024; |
|
21 | - $gigabyte = 1073741824; // $megabyte * 1024; |
|
22 | - $terabyte = 1099511627776; // $gigabyte * 1024; |
|
20 | + $megabyte = 1048576; // $kilobyte * 1024; |
|
21 | + $gigabyte = 1073741824; // $megabyte * 1024; |
|
22 | + $terabyte = 1099511627776; // $gigabyte * 1024; |
|
23 | 23 | |
24 | 24 | if (($bytes >= 0) && ($bytes < $kilobyte)) { |
25 | 25 | return $bytes . ' B'; |