protected function getRootPageFlagStatus()
    {
        $rootPages = $this->getRootPages();
        if (!empty($rootPages)) {
            return null;
        }

        $report = $this->getRenderedReport('RootPageFlagStatus.html');
        return GeneralUtility::makeInstance(
            Status::class,
            /** @scrutinizer ignore-type */ 'Sites',
            /** @scrutinizer ignore-type */ 'No sites found',
            /** @scrutinizer ignore-type */ $report,
            /** @scrutinizer ignore-type */ Status::ERROR
        );
    }
protected function getRootPageFlagStatus()
    {
        $rootPages = $this->getRootPages();
        if (!empty($rootPages)) {
            return null;
        }

        $report = $this->getRenderedReport('RootPageFlagStatus.html');
        return GeneralUtility::makeInstance(
            Status::class,
            /** @scrutinizer ignore-type */ 'Sites',
            /** @scrutinizer ignore-type */ 'No sites found',
            /** @scrutinizer ignore-type */ $report,
            /** @scrutinizer ignore-type */ Status::ERROR
        );
    }
protected function getRootPageFlagStatus ( ) { $ rootPages = $ this -> getRootPages ( ) ; if ( ! empty ( $ rootPages ) ) { return null ; } $ report = $ this -> getRenderedReport ( 'RootPageFlagStatus.html' ) ; return GeneralUtility :: makeInstance ( Status :: class , /** @scrutinizer ignore-type */ 'Sites' , /** @scrutinizer ignore-type */ 'No sites found' , /** @scrutinizer ignore-type */ $ report , /** @scrutinizer ignore-type */ Status :: ERROR ) ; }
Checks whether the "Use as Root Page" page property has been set for any
site.

@return NULL|Status An error status is returned if no root pages were found.
Checks whether the Use as Root Page page property has been set for any site .