public static function suggestExtensionByMediaType(string $mediaType): string
    {
        if (false !== ($ext = \array_search(\strtolower($mediaType), self::$mimeTypes))) {
            return $ext;
        }
        
        if (\func_num_args() > 1) {
            return (string) \func_get_arg(1);
        }
        
        return '';
    }
public static function suggestExtensionByMediaType(string $mediaType): string
    {
        if (false !== ($ext = \array_search(\strtolower($mediaType), self::$mimeTypes))) {
            return $ext;
        }
        
        if (\func_num_args() > 1) {
            return (string) \func_get_arg(1);
        }
        
        return '';
    }
public static function suggestExtensionByMediaType ( string $ mediaType ) : string { if ( false !== ( $ ext = \ array_search ( \ strtolower ( $ mediaType ) , self :: $ mimeTypes ) ) ) { return $ ext ; } if ( \ func_num_args ( ) > 1 ) { return ( string ) \ func_get_arg ( 1 ) ; } return '' ; }
Suggest a file extension that is related to the given media type.
Suggest a file extension that is related to the given media type .