public static function formatDataSizeFromBytes(int $b): string
    {
        $unit = '';
        foreach (['B', 'KB', 'MB', 'GB', 'TB'] as $unit) {
            if ($b < 1024) break;
            $b = round($b / 1024, 1);
        }

        return $b . ' ' . $unit;
    }