public static function getComposerFiles($paths)
    {
        settype($paths, 'array');

        $composers = array();

        foreach ($paths as $path) {

            $dirs = new \DirectoryIterator($path);

            foreach ($dirs as $dir) {

                if ($dir->isDot() || $dir->isFile()) {
                    continue;
                }

                $composer_file = $dir->getPathName().'/composer.json';

                if (is_readable($composer_file)) {
                    $composers[] = $composer_file;
                }
            }
        }

        return $composers;
    }
public static function getComposerFiles($paths)
    {
        settype($paths, 'array');

        $composers = array();

        foreach ($paths as $path) {

            $dirs = new \DirectoryIterator($path);

            foreach ($dirs as $dir) {

                if ($dir->isDot() || $dir->isFile()) {
                    continue;
                }

                $composer_file = $dir->getPathName().'/composer.json';

                if (is_readable($composer_file)) {
                    $composers[] = $composer_file;
                }
            }
        }

        return $composers;
    }
public static function getComposerFiles ( $ paths ) { settype ( $ paths , 'array' ) ; $ composers = array ( ) ; foreach ( $ paths as $ path ) { $ dirs = new \ DirectoryIterator ( $ path ) ; foreach ( $ dirs as $ dir ) { if ( $ dir -> isDot ( ) || $ dir -> isFile ( ) ) { continue ; } $ composer_file = $ dir -> getPathName ( ) . '/composer.json' ; if ( is_readable ( $ composer_file ) ) { $ composers [ ] = $ composer_file ; } } } return $ composers ; }
Searches a path to find composer.json files

@param string $path

@return multitype:string
Searches a path to find composer . json files