src/Version/WindowsMobileOs.php
/**
     * returns the version of the operating system/platform
     */
returns the version of the operating system/platform
returns the version of the operating system / platform
public function detectVersion(string $useragent): VersionInterface
    {
        if (false !== mb_stripos($useragent, 'windows nt 5.1') && !preg_match('/windows mobile|windows phone/i', $useragent)) {
            try {
                return $this->versionFactory->set('6.0');
            } catch (NotNumericException $e) {
                $this->logger->info($e);
            }
            return new NullVersion();
        }
        try {
            return $this->versionFactory->detectVersion($useragent, self::SEARCHES);
        } catch (NotNumericException $e) {
            $this->logger->info($e);
        }
        return new NullVersion();
    }
public function detectVersion ( string $ useragent ) : VersionInterface { if ( false !== mb_stripos ( $ useragent , 'windows nt 5.1' ) && ! preg_match ( '/windows mobile|windows phone/i' , $ useragent ) ) { try { return $ this -> versionFactory -> set ( '6.0' ) ; } catch ( NotNumericException $ e ) { $ this -> logger -> info ( $ e ) ; } return new NullVersion ( ) ; } try { return $ this -> versionFactory -> detectVersion ( $ useragent , self :: SEARCHES ) ; } catch ( NotNumericException $ e ) { $ this -> logger -> info ( $ e ) ; } return new NullVersion ( ) ; }
returns the version of the operating system/platform
returns the version of the operating system / platform