WhichBrowser\Analyser\Camouflage::detectCamouflagedUCBrowser PHP Method

detectCamouflagedUCBrowser() private method

private detectCamouflagedUCBrowser ( $ua )
    private function &detectCamouflagedUCBrowser($ua)
    {
        if ($ua == 'Mozilla/5.0 (X11; U; Linux i686; zh-CN; rv:1.2.3.4) Gecko/') {
            if (!$this->data->isBrowser('UC Browser')) {
                $this->data->browser->name = 'UC Browser';
                $this->data->browser->version = null;
                $this->data->browser->stock = false;
            }
            if ($this->data->isOs('Windows')) {
                $this->data->os->reset();
            }
            $this->data->engine->reset(['name' => 'Gecko']);
            $this->data->device->type = 'mobile';
        }
        if ($this->data->isBrowser('Chrome')) {
            if (preg_match('/UBrowser\\/?([0-9.]*)/u', $ua, $match)) {
                $this->data->browser->stock = false;
                $this->data->browser->name = 'UC Browser';
                $this->data->browser->version = new Version(['value' => $match[1], 'details' => 2]);
                $this->data->browser->type = Constants\BrowserType::BROWSER;
                unset($this->data->browser->channel);
            }
        }
        return $this;
    }