protected function checkSolrVersion(SolrAdminService $solr)
    {
        try {
            $solrVersion = $this->formatSolrVersion($solr->getSolrServerVersion());
        } catch (\Exception $e) {
            $this->responseStatus = Status::ERROR;
            $solrVersion = 'Error getting solr version: ' . $e->getMessage();
        }

        return $solrVersion;
    }
protected function checkSolrVersion(SolrAdminService $solr)
    {
        try {
            $solrVersion = $this->formatSolrVersion($solr->getSolrServerVersion());
        } catch (\Exception $e) {
            $this->responseStatus = Status::ERROR;
            $solrVersion = 'Error getting solr version: ' . $e->getMessage();
        }

        return $solrVersion;
    }
protected function checkSolrVersion ( SolrAdminService $ solr ) { try { $ solrVersion = $ this -> formatSolrVersion ( $ solr -> getSolrServerVersion ( ) ) ; } catch ( \ Exception $ e ) { $ this -> responseStatus = Status :: ERROR ; $ solrVersion = 'Error getting solr version: ' . $ e -> getMessage ( ) ; } return $ solrVersion ; }
Checks the solr version and adds it to the report.

@param SolrAdminService $solr
@return string solr version
Checks the solr version and adds it to the report .