Add missing whitespaces in array

This commit is contained in:
Joshua Ramon Enslin 2021-10-01 16:25:27 +02:00
parent 8394bf54b9
commit b87d0f5b08
Signed by: jrenslin
GPG Key ID: 46016F84501B70AE

View File

@ -61,7 +61,7 @@ final class MDErrorReporter {
*/ */
public function human_filesize(string $bytes, int $decimals = 2):string { 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); $factor = \floor((strlen($bytes) - 1) / 3);
return \sprintf("%.{$decimals}f", $bytes / \pow(1024, $factor)) . $size[$factor]; return \sprintf("%.{$decimals}f", $bytes / \pow(1024, $factor)) . $size[$factor];