Rename FileSystem::bytesToSize() to FileSystem::formatSize()

This commit is contained in:
Giuseppe Criscione 2020-12-27 23:06:47 +01:00
parent fa2341fe12
commit b55fc6e8d0

View File

@ -702,7 +702,7 @@ class FileSystem
/**
* Convert bytes to a human-readable size
*/
public static function bytesToSize(int $bytes): string
public static function formatSize(int $bytes): string
{
if ($bytes <= 0) {
return '0 B';