Neos.Neos/Classes/Command/SiteCommandController.php
protected function findSitesByNodeNamePattern($siteNodePattern)
    {
        return array_filter(
            $this->siteRepository->findAll()->toArray(),
            function ($site) use ($siteNodePattern) {
                return fnmatch($siteNodePattern, $site->getNodeName());
            }
        );
    }
protected function findSitesByNodeNamePattern($siteNodePattern)
    {
        return array_filter(
            $this->siteRepository->findAll()->toArray(),
            function ($site) use ($siteNodePattern) {
                return fnmatch($siteNodePattern, $site->getNodeName());
            }
        );
    }
protected function findSitesByNodeNamePattern ( $ siteNodePattern ) { return array_filter ( $ this -> siteRepository -> findAll ( ) -> toArray ( ) , function ( $ site ) use ( $ siteNodePattern ) { return fnmatch ( $ siteNodePattern , $ site -> getNodeName ( ) ) ; } ) ; }
Find all sites the match the given site-node-name-pattern with support for globbing

@param string $siteNodePattern nodeName patterns for sites to find
@return array<Site>
Find all sites the match the given site - node - name - pattern with support for globbing