src/Version/ScreamingFrog.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
    {
        $doMatch = preg_match('/Screaming Frog SEO Spider\/\d+,\d/', $useragent);
        if ($doMatch) {
            $useragent = str_replace(',', '.', $useragent);
        }
        try {
            return $this->versionFactory->detectVersion($useragent, ['Screaming Frog SEO Spider']);
        } catch (NotNumericException $e) {
            $this->logger->info($e);
        }
        return new NullVersion();
    }
public function detectVersion ( string $ useragent ) : VersionInterface { $ doMatch = preg_match ( '/Screaming Frog SEO Spider\/\d+,\d/' , $ useragent ) ; if ( $ doMatch ) { $ useragent = str_replace ( ',' , '.' , $ useragent ) ; } try { return $ this -> versionFactory -> detectVersion ( $ useragent , [ 'Screaming Frog SEO Spider' ] ) ; } 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