private function findFiles($directory, array $names, array $ignoreNames)
    {
        $finder = new Finder();
        $finder->files()->in($directory);

        foreach ($names as $name) {
            $finder->name($name);
        }

        foreach ($ignoreNames as $name) {
            $finder->notName($name);
        }

        $finder->sortByName();

        return $finder;
    }
private function findFiles($directory, array $names, array $ignoreNames)
    {
        $finder = new Finder();
        $finder->files()->in($directory);

        foreach ($names as $name) {
            $finder->name($name);
        }

        foreach ($ignoreNames as $name) {
            $finder->notName($name);
        }

        $finder->sortByName();

        return $finder;
    }
private function findFiles ( $ directory , array $ names , array $ ignoreNames ) { $ finder = new Finder ( ) ; $ finder -> files ( ) -> in ( $ directory ) ; foreach ( $ names as $ name ) { $ finder -> name ( $ name ) ; } foreach ( $ ignoreNames as $ name ) { $ finder -> notName ( $ name ) ; } $ finder -> sortByName ( ) ; return $ finder ; }
Find all files to merge.

@param string $directory
@param array  $names
@param array  $ignoreNames

@return Finder
Find all files to merge .