/** * If UA starts with Mozilla, apply LD with tolerance 5. * * @param string $userAgent * @return string */ public function applyConclusiveMatch($userAgent) { if (WURFL_Configuration_ConfigHolder::getWURFLConfig()->isHighPerformance()) { //High performance mode $tolerance = WURFL_Handlers_Utils::firstMatchOrLength($userAgent, ")"); return $this->getDeviceIDFromRIS($userAgent, $tolerance); } else { //High accuracy mode return $this->getDeviceIDFromLD($userAgent, 5); } }