Lines 100.00% 1 / 1
Methods 100.00% 1 / 1
Classes 100.00% 1 / 1
Covered by tests of size
Name Lines Methods CRAP
 formatBytes 100.00% 1 / 1 100.00% 1 / 1 1
26class FormatBytesTwigExtension extends AbstractExtension
27{
28    #[AsTwigFilter(name: 'formatBytes')]
29    public static function formatBytes(int $bytes, int $precision = 2): string
30    {
31        return Utils::formatBytes($bytes, $precision);
32    }
33}