protected function buildFinder()
    {
        $finder = new Finder();
        $finder->files()
            ->name('/(\.php|composer\.json)$/')
            ->in($this->path)
            ->exclude($this->excludeDirs);

        return $finder;
    }
protected function buildFinder()
    {
        $finder = new Finder();
        $finder->files()
            ->name('/(\.php|composer\.json)$/')
            ->in($this->path)
            ->exclude($this->excludeDirs);

        return $finder;
    }
protected function buildFinder ( ) { $ finder = new Finder ( ) ; $ finder -> files ( ) -> name ( '/(\.php|composer\.json)$/' ) -> in ( $ this -> path ) -> exclude ( $ this -> excludeDirs ) ; return $ finder ; }
Returns a Finder set up for finding both composer.json and php files.

@return Finder A Symfony Finder instance
Returns a Finder set up for finding both composer . json and php files .