Add missing whitespaces in array
This commit is contained in:
parent
8394bf54b9
commit
b87d0f5b08
|
@ -61,7 +61,7 @@ final class MDErrorReporter {
|
|||
*/
|
||||
public function human_filesize(string $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($bytes) - 1) / 3);
|
||||
return \sprintf("%.{$decimals}f", $bytes / \pow(1024, $factor)) . $size[$factor];
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user