src/VirtualCapability/Tool/DeviceFactory.php
private static function normalizeBrowser(Device $device)
    {
        if ($device->getBrowser()->name === 'IE' && preg_match('#Trident/([\d\.]+)#', $device->getDeviceUa(), $matches)) {
            if (array_key_exists($matches[1], self::$trident_map)) {
                $compatibilityViewCheck = self::$trident_map[$matches[1]];

                if ($device->getBrowser()->version !== $compatibilityViewCheck) {
                    $device->getBrowser()->version = $compatibilityViewCheck . '(Compatibility View)';
                }

                return;
            }
        }
    }
private static function normalizeBrowser(Device $device)
    {
        if ($device->getBrowser()->name === 'IE' && preg_match('#Trident/([\d\.]+)#', $device->getDeviceUa(), $matches)) {
            if (array_key_exists($matches[1], self::$trident_map)) {
                $compatibilityViewCheck = self::$trident_map[$matches[1]];

                if ($device->getBrowser()->version !== $compatibilityViewCheck) {
                    $device->getBrowser()->version = $compatibilityViewCheck . '(Compatibility View)';
                }

                return;
            }
        }
    }
private static function normalizeBrowser ( Device $ device ) { if ( $ device -> getBrowser ( ) -> name === 'IE' && preg_match ( '#Trident/([\d\.]+)#' , $ device -> getDeviceUa ( ) , $ matches ) ) { if ( array_key_exists ( $ matches [ 1 ] , self :: $ trident_map ) ) { $ compatibilityViewCheck = self :: $ trident_map [ $ matches [ 1 ] ] ; if ( $ device -> getBrowser ( ) -> version !== $ compatibilityViewCheck ) { $ device -> getBrowser ( ) -> version = $ compatibilityViewCheck . '(Compatibility View)' ; } return ; } } }
normalize the Browser Information

@param \Wurfl\VirtualCapability\Tool\Device $device
normalize the Browser Information