src/Core/ConfigFinder/ConfigFinder.php
public function findFiles()
    {
        $search = (new Finder())->files();
        // Add in paths
        foreach ($this->paths as $path) {
            if (is_readable($path)) {
                $search->in($path);
            }
        }
        // Add in names
        foreach ($this->files as $pattern) {
            $search->name($pattern);
        }

        $array = array();
        foreach ($search as $f) {
            $array[] = $f->getRealPath();
        }

        return $array;

    }
public function findFiles()
    {
        $search = (new Finder())->files();
        // Add in paths
        foreach ($this->paths as $path) {
            if (is_readable($path)) {
                $search->in($path);
            }
        }
        // Add in names
        foreach ($this->files as $pattern) {
            $search->name($pattern);
        }

        $array = array();
        foreach ($search as $f) {
            $array[] = $f->getRealPath();
        }

        return $array;

    }
public function findFiles ( ) { $ search = ( new Finder ( ) ) -> files ( ) ; // Add in paths foreach ( $ this -> paths as $ path ) { if ( is_readable ( $ path ) ) { $ search -> in ( $ path ) ; } } // Add in names foreach ( $ this -> files as $ pattern ) { $ search -> name ( $ pattern ) ; } $ array = array ( ) ; foreach ( $ search as $ f ) { $ array [ ] = $ f -> getRealPath ( ) ; } return $ array ; }
Return an array of file paths to config files

@return array of string paths
Return an array of file paths to config files