src/Service/Cdn.php
public function validExtForMime($sExt, $sMime)
    {
        $sExt = $this->sanitiseExtension($sExt);
        return in_array($sExt, $this->oMimeService->getExtensionsForMime($sMime));
    }
public function validExtForMime($sExt, $sMime)
    {
        $sExt = $this->sanitiseExtension($sExt);
        return in_array($sExt, $this->oMimeService->getExtensionsForMime($sMime));
    }
public function validExtForMime ( $ sExt , $ sMime ) { $ sExt = $ this -> sanitiseExtension ( $ sExt ) ; return in_array ( $ sExt , $ this -> oMimeService -> getExtensionsForMime ( $ sMime ) ) ; }
Determines whether an extension is valid for a specific mime typ

@param string $sExt  The extension to test, no leading period
@param string $sMime The mime type to test against

@return bool
Determines whether an extension is valid for a specific mime typ