src/AbstractDetection.php
protected function detectByType($key = 'none'): array
    {
        $container = $key === 'none' ? $this->config : $this->config[$key];
        foreach ($container as $type => $patternList) {
            if ($type === 'default') {
                continue;
            }
            $browser = $this->detectByPattern($patternList);
            if (!empty($browser)) {
                return array_merge($browser, ['type' => $type]);
            }
        }
        return [];
    }
protected function detectByType($key = 'none'): array
    {
        $container = $key === 'none' ? $this->config : $this->config[$key];
        foreach ($container as $type => $patternList) {
            if ($type === 'default') {
                continue;
            }
            $browser = $this->detectByPattern($patternList);
            if (!empty($browser)) {
                return array_merge($browser, ['type' => $type]);
            }
        }
        return [];
    }
Detect by type
@param string $key
@return array