Add missing whitespaces
This commit is contained in:
parent
0abcc8b866
commit
a7d961808f
@ -37,7 +37,7 @@ final class MDOutputHandler {
|
||||
*/
|
||||
private function _human_filesize(int $bytes, int $decimals = 2):string {
|
||||
|
||||
$size = ['B','kB','MB','GB','TB','PB','EB','ZB','YB'];
|
||||
$size = ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'];
|
||||
$factor = floor((strlen((string)$bytes) - 1) / 3);
|
||||
return sprintf("%.{$decimals}f", $bytes / pow(1024, $factor)) . $size[$factor];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user