src/AssetManager/Service/MimeResolver.php
public function getExtension($mimetype)
    {
        if (!($extension = array_search($mimetype, $this->mainMimeTypes))) {
            $extension = array_search($mimetype, $this->mimeTypes);
        }

        return !$extension ? null : $extension;
    }
public function getExtension($mimetype)
    {
        if (!($extension = array_search($mimetype, $this->mainMimeTypes))) {
            $extension = array_search($mimetype, $this->mimeTypes);
        }

        return !$extension ? null : $extension;
    }
public function getExtension ( $ mimetype ) { if ( ! ( $ extension = array_search ( $ mimetype , $ this -> mainMimeTypes ) ) ) { $ extension = array_search ( $ mimetype , $ this -> mimeTypes ) ; } return ! $ extension ? null : $ extension ; }
Get the extension that matches given mimetype.

@param  string $mimetype
@return mixed  null when not found, extension (string) when found.
Get the extension that matches given mimetype .