protected function doFileSearch()
    {
        if (empty($this->searchLocations)) {
            throw new \RuntimeException(
                'No search locations have been defined.'
            );
        }

        return (new Finder())
            ->name($this->searchPattern)
            ->in($this->searchLocations)
            ->depth($this->searchDepth)
            ->files();
    }
protected function doFileSearch()
    {
        if (empty($this->searchLocations)) {
            throw new \RuntimeException(
                'No search locations have been defined.'
            );
        }

        return (new Finder())
            ->name($this->searchPattern)
            ->in($this->searchLocations)
            ->depth($this->searchDepth)
            ->files();
    }
protected function doFileSearch ( ) { if ( empty ( $ this -> searchLocations ) ) { throw new \ RuntimeException ( 'No search locations have been defined.' ) ; } return ( new Finder ( ) ) -> name ( $ this -> searchPattern ) -> in ( $ this -> searchLocations ) -> depth ( $ this -> searchDepth ) -> files ( ) ; }
Perform the file search on defined search locations.

@return \Symfony\Component\Finder\Finder
The Symfony finder object.
Perform the file search on defined search locations .