public function getVersion()
    {
        /** @var Response $response */
        $response = $this->get('version', $this->getGuzzleOptions());
        $version = 0.0;

        // Parse output
        if ($response->getStatusCode() == 200
            && preg_match('/Apache Tika (?<version>[\.\d]+)/', $response->getBody(), $matches)
        ) {
            $version = (float)$matches['version'];
        }

        return $version;
    }
public function getVersion()
    {
        /** @var Response $response */
        $response = $this->get('version', $this->getGuzzleOptions());
        $version = 0.0;

        // Parse output
        if ($response->getStatusCode() == 200
            && preg_match('/Apache Tika (?<version>[\.\d]+)/', $response->getBody(), $matches)
        ) {
            $version = (float)$matches['version'];
        }

        return $version;
    }
public function getVersion ( ) { /** @var Response $response */ $ response = $ this -> get ( 'version' , $ this -> getGuzzleOptions ( ) ) ; $ version = 0.0 ; // Parse output if ( $ response -> getStatusCode ( ) == 200 && preg_match ( '/Apache Tika (?<version>[\.\d]+)/' , $ response -> getBody ( ) , $ matches ) ) { $ version = ( float ) $ matches [ 'version' ] ; } return $ version ; }
Get version code

@return float
Get version code