Skip to content

Commit ae77a49

Browse files
chore: Update the dependencies
1 parent fe650b5 commit ae77a49

2 files changed

Lines changed: 27 additions & 30 deletions

File tree

composer.lock

Lines changed: 25 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/utils/view_helpers.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,9 @@ function format_bytes(int $size, int $precision = 2): string
1414
{
1515
$base = log($size, 1024);
1616
$suffixes = array('', 'K', 'M', 'G', 'T');
17+
$suffix = $suffixes[intval(floor($base))];
1718

18-
return format_number(pow(1024, $base - floor($base)), $precision) . ' ' . $suffixes[floor($base)];
19+
return format_number(pow(1024, $base - floor($base)), $precision) . ' ' . $suffix;
1920
}
2021

2122
function locale_to_bcp_47(string $locale): string

0 commit comments

Comments
 (0)