Zepi/Web/General/src/EventHandler/LoadAssetContent.php
protected function getContentType($type, $version)
    {
        if ($type === 'css') {
            return 'text/css';
        } else if ($type === 'js') {
            return 'text/javascript';
        } else if ($type === 'image') {
            $fileExtension = pathinfo($version, PATHINFO_EXTENSION);
            
            if ($fileExtension === 'svg') {
                return 'image/svg+xml';
            } else if ($fileExtension === 'jpg') {
                return 'image/jpeg';
            } else if ($fileExtension === 'gif') {
                return 'image/gif';
            } else if ($fileExtension === 'png') {
                return 'image/png';
            }
        }
    }
protected function getContentType($type, $version)
    {
        if ($type === 'css') {
            return 'text/css';
        } else if ($type === 'js') {
            return 'text/javascript';
        } else if ($type === 'image') {
            $fileExtension = pathinfo($version, PATHINFO_EXTENSION);
            
            if ($fileExtension === 'svg') {
                return 'image/svg+xml';
            } else if ($fileExtension === 'jpg') {
                return 'image/jpeg';
            } else if ($fileExtension === 'gif') {
                return 'image/gif';
            } else if ($fileExtension === 'png') {
                return 'image/png';
            }
        }
    }
protected function getContentType ( $ type , $ version ) { if ( $ type === 'css' ) { return 'text/css' ; } else if ( $ type === 'js' ) { return 'text/javascript' ; } else if ( $ type === 'image' ) { $ fileExtension = pathinfo ( $ version , PATHINFO_EXTENSION ) ; if ( $ fileExtension === 'svg' ) { return 'image/svg+xml' ; } else if ( $ fileExtension === 'jpg' ) { return 'image/jpeg' ; } else if ( $ fileExtension === 'gif' ) { return 'image/gif' ; } else if ( $ fileExtension === 'png' ) { return 'image/png' ; } } }
Returns the content type for the given asset type.

@access protected
@param string $type
@param string $version
@return string
Returns the content type for the given asset type .