protected function checkPluginVersion(SolrAdminService $adminService)
    {
        if (!($this->isPluginInstalled($adminService) && $this->isPluginOutdated($adminService))) {
            return null;
        }

        $version = $this->getInstalledPluginVersion($adminService);
        $variables = ['solr' => $adminService, 'installedVersion' => $version, 'recommendedVersion' => self::RECOMMENDED_PLUGIN_VERSION];
        $report = $this->getRenderedReport('AccessFilterPluginInstalledStatusIsOutDated.html', $variables);

        return GeneralUtility::makeInstance(
            Status::class,
            /** @scrutinizer ignore-type */ 'Access Filter Plugin',
            /** @scrutinizer ignore-type */ 'Outdated',
            /** @scrutinizer ignore-type */ $report,
            /** @scrutinizer ignore-type */ Status::WARNING
        );
    }
protected function checkPluginVersion(SolrAdminService $adminService)
    {
        if (!($this->isPluginInstalled($adminService) && $this->isPluginOutdated($adminService))) {
            return null;
        }

        $version = $this->getInstalledPluginVersion($adminService);
        $variables = ['solr' => $adminService, 'installedVersion' => $version, 'recommendedVersion' => self::RECOMMENDED_PLUGIN_VERSION];
        $report = $this->getRenderedReport('AccessFilterPluginInstalledStatusIsOutDated.html', $variables);

        return GeneralUtility::makeInstance(
            Status::class,
            /** @scrutinizer ignore-type */ 'Access Filter Plugin',
            /** @scrutinizer ignore-type */ 'Outdated',
            /** @scrutinizer ignore-type */ $report,
            /** @scrutinizer ignore-type */ Status::WARNING
        );
    }
protected function checkPluginVersion ( SolrAdminService $ adminService ) { if ( ! ( $ this -> isPluginInstalled ( $ adminService ) && $ this -> isPluginOutdated ( $ adminService ) ) ) { return null ; } $ version = $ this -> getInstalledPluginVersion ( $ adminService ) ; $ variables = [ 'solr' => $ adminService , 'installedVersion' => $ version , 'recommendedVersion' => self :: RECOMMENDED_PLUGIN_VERSION ] ; $ report = $ this -> getRenderedReport ( 'AccessFilterPluginInstalledStatusIsOutDated.html' , $ variables ) ; return GeneralUtility :: makeInstance ( Status :: class , /** @scrutinizer ignore-type */ 'Access Filter Plugin' , /** @scrutinizer ignore-type */ 'Outdated' , /** @scrutinizer ignore-type */ $ report , /** @scrutinizer ignore-type */ Status :: WARNING ) ; }
Checks whether the Solr plugin version is up to date.

@param SolrAdminService $adminService
@return null|\TYPO3\CMS\Reports\Status
Checks whether the Solr plugin version is up to date .