Added comments (not related to this, sorry)

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2023-03-08 16:47:08 -08:00
parent 02dd0669dc
commit 059ead5af5

View file

@ -1092,6 +1092,15 @@ class Helper
return $file_name;
}
/**
* Universal helper to show file size in human-readable formats
*
* @author A. Gianotto <snipe@snipe.net>
* @since 5.0
*
* @return string[]
*/
public static function formatFilesizeUnits($bytes)
{
if ($bytes >= 1073741824)