src/phpDocumentor/Plugin/Scrybe/Command/Manual/BaseConvertCommand.php
protected function buildCollection(array $sources, array $extensions)
    {
        $collection = new Collection();
        $collection->setAllowedExtensions($extensions);
        foreach ($sources as $path) {
            if (is_dir($path)) {
                $collection->addDirectory($path);
                continue;
            }

            $collection->addFile($path);
        }

        return $collection;
    }
protected function buildCollection(array $sources, array $extensions)
    {
        $collection = new Collection();
        $collection->setAllowedExtensions($extensions);
        foreach ($sources as $path) {
            if (is_dir($path)) {
                $collection->addDirectory($path);
                continue;
            }

            $collection->addFile($path);
        }

        return $collection;
    }
protected function buildCollection ( array $ sources , array $ extensions ) { $ collection = new Collection ( ) ; $ collection -> setAllowedExtensions ( $ extensions ) ; foreach ( $ sources as $ path ) { if ( is_dir ( $ path ) ) { $ collection -> addDirectory ( $ path ) ; continue ; } $ collection -> addFile ( $ path ) ; } return $ collection ; }
Constructs a Fileset collection and returns that.

@param array $sources    List of source paths.
@param array $extensions List of extensions to scan for in directories.

@return Collection
Constructs a Fileset collection and returns that .