public static function getExtension(
        string $type,
        string $default = "unknown"
    ): string
    {
        return array_key_exists($type, self::$types)
            ? self::$types[$type]
            : $default;
    }
public static function getExtension(
        string $type,
        string $default = "unknown"
    ): string
    {
        return array_key_exists($type, self::$types)
            ? self::$types[$type]
            : $default;
    }
public static function getExtension ( string $ type , string $ default = "unknown" ) : string { return array_key_exists ( $ type , self :: $ types ) ? self :: $ types [ $ type ] : $ default ; }
Get a file extension from a content type

@param string $type The mime or content type to search for
@param string $default A fallback to extension return
@return string
Get a file extension from a content type