src/Service/Cdn.php
public function getMimeFromExt($sExt)
    {
        $sExt   = $this->sanitiseExtension($sExt);
        $aMimes = $this->oMimeService->getMimesForExtension($sExt);
        $sMime  = reset($aMimes);
        return !empty($sMime) ? $sMime : 'application/octet-stream';
    }
public function getMimeFromExt($sExt)
    {
        $sExt   = $this->sanitiseExtension($sExt);
        $aMimes = $this->oMimeService->getMimesForExtension($sExt);
        $sMime  = reset($aMimes);
        return !empty($sMime) ? $sMime : 'application/octet-stream';
    }
public function getMimeFromExt ( $ sExt ) { $ sExt = $ this -> sanitiseExtension ( $ sExt ) ; $ aMimes = $ this -> oMimeService -> getMimesForExtension ( $ sExt ) ; $ sMime = reset ( $ aMimes ) ; return ! empty ( $ sMime ) ? $ sMime : 'application/octet-stream' ; }
Gets the mime type from the extension

@param string $sExt The extension to return the mime type for

@return string
Gets the mime type from the extension