public function getMakefiles($dir)
    {
        $finder = new Finder();
        $finder->in($dir)
               ->files()
               ->depth('< 1')
               ->name('*.make*');
        return $finder;
    }
public function getMakefiles($dir)
    {
        $finder = new Finder();
        $finder->in($dir)
               ->files()
               ->depth('< 1')
               ->name('*.make*');
        return $finder;
    }
public function getMakefiles ( $ dir ) { $ finder = new Finder ( ) ; $ finder -> in ( $ dir ) -> files ( ) -> depth ( '< 1' ) -> name ( '*.make*' ) ; return $ finder ; }
Return Finder with all makefiles in directory.

@param $dir

@return \Symfony\Component\Finder\Finder
Return Finder with all makefiles in directory .