DeviceDetector.php
protected function parseBot()
    {
        if ($this->skipBotDetection) {
            $this->bot = false;
            return false;
        }

        $parsers = $this->getBotParsers();

        foreach ($parsers as $parser) {
            $parser->setUserAgent($this->getUserAgent());
            $parser->setYamlParser($this->getYamlParser());
            $parser->setCache($this->getCache());
            if ($this->discardBotInformation) {
                $parser->discardDetails();
            }
            $bot = $parser->parse();
            if (!empty($bot)) {
                $this->bot = $bot;
                break;
            }
        }
    }
protected function parseBot()
    {
        if ($this->skipBotDetection) {
            $this->bot = false;
            return false;
        }

        $parsers = $this->getBotParsers();

        foreach ($parsers as $parser) {
            $parser->setUserAgent($this->getUserAgent());
            $parser->setYamlParser($this->getYamlParser());
            $parser->setCache($this->getCache());
            if ($this->discardBotInformation) {
                $parser->discardDetails();
            }
            $bot = $parser->parse();
            if (!empty($bot)) {
                $this->bot = $bot;
                break;
            }
        }
    }
protected function parseBot ( ) { if ( $ this -> skipBotDetection ) { $ this -> bot = false ; return false ; } $ parsers = $ this -> getBotParsers ( ) ; foreach ( $ parsers as $ parser ) { $ parser -> setUserAgent ( $ this -> getUserAgent ( ) ) ; $ parser -> setYamlParser ( $ this -> getYamlParser ( ) ) ; $ parser -> setCache ( $ this -> getCache ( ) ) ; if ( $ this -> discardBotInformation ) { $ parser -> discardDetails ( ) ; } $ bot = $ parser -> parse ( ) ; if ( ! empty ( $ bot ) ) { $ this -> bot = $ bot ; break ; } } }
Parses the UA for bot information using the Bot parser
Parses the UA for bot information using the Bot parser