src/AbstractDetection.php
public function detect(array $additional = [])
    {
        if ($this->configKey !== 'none') {
            $this->config = $this->detector->getPatternList($this->detector->getDataProvider()->getConfig(), $this->configKey);
            $resultObject = $this->detector->getResultObject();
            $this->resultObject = Tools::runGetter($resultObject, $this->configKey);
        }
        $this->initResultObject();
        $this->setupResultObject();
        $this->afterDetection();
    }
public function detect(array $additional = [])
    {
        if ($this->configKey !== 'none') {
            $this->config = $this->detector->getPatternList($this->detector->getDataProvider()->getConfig(), $this->configKey);
            $resultObject = $this->detector->getResultObject();
            $this->resultObject = Tools::runGetter($resultObject, $this->configKey);
        }
        $this->initResultObject();
        $this->setupResultObject();
        $this->afterDetection();
    }
Detect method
@param array $additional Additional info