src/Phlexible/Bundle/CmsBundle/Twig/Extension/MiscExtension.php
public function readableSize($size, $decimals = 0, $binarySuffix = false)
    {
        $formatter = new FilesizeFormatter();

        return $formatter->formatFilesize($size, $decimals, $binarySuffix);
    }
public function readableSize($size, $decimals = 0, $binarySuffix = false)
    {
        $formatter = new FilesizeFormatter();

        return $formatter->formatFilesize($size, $decimals, $binarySuffix);
    }
public function readableSize ( $ size , $ decimals = 0 , $ binarySuffix = false ) { $ formatter = new FilesizeFormatter ( ) ; return $ formatter -> formatFilesize ( $ size , $ decimals , $ binarySuffix ) ; }
Return readable file size for given value.

@param int  $size
@param int  $decimals
@param bool $binarySuffix

@return string
Return readable file size for given value .