DeviceDetector.php
public function parse()
    {
        if ($this->isParsed()) {
            return;
        }

        $this->parsed = true;

        // skip parsing for empty useragents or those not containing any letter
        if (empty($this->userAgent) || !preg_match('/([a-z])/i', $this->userAgent)) {
            return;
        }

        $this->parseBot();
        if ($this->isBot()) {
            return;
        }

        $this->parseOs();

        /**
         * Parse Clients
         * Clients might be browsers, Feed Readers, Mobile Apps, Media Players or
         * any other application accessing with an parseable UA
         */
        $this->parseClient();

        $this->parseDevice();
    }
public function parse()
    {
        if ($this->isParsed()) {
            return;
        }

        $this->parsed = true;

        // skip parsing for empty useragents or those not containing any letter
        if (empty($this->userAgent) || !preg_match('/([a-z])/i', $this->userAgent)) {
            return;
        }

        $this->parseBot();
        if ($this->isBot()) {
            return;
        }

        $this->parseOs();

        /**
         * Parse Clients
         * Clients might be browsers, Feed Readers, Mobile Apps, Media Players or
         * any other application accessing with an parseable UA
         */
        $this->parseClient();

        $this->parseDevice();
    }
public function parse ( ) { if ( $ this -> isParsed ( ) ) { return ; } $ this -> parsed = true ; // skip parsing for empty useragents or those not containing any letter if ( empty ( $ this -> userAgent ) || ! preg_match ( '/([a-z])/i' , $ this -> userAgent ) ) { return ; } $ this -> parseBot ( ) ; if ( $ this -> isBot ( ) ) { return ; } $ this -> parseOs ( ) ; /**
         * Parse Clients
         * Clients might be browsers, Feed Readers, Mobile Apps, Media Players or
         * any other application accessing with an parseable UA
         */ $ this -> parseClient ( ) ; $ this -> parseDevice ( ) ; }
Triggers the parsing of the current user agent
Triggers the parsing of the current user agent