protected function File_Iterator_Factory::getPathsAfterResolvingWildcards in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/php-file-iterator/src/Factory.php \File_Iterator_Factory::getPathsAfterResolvingWildcards()
Parameters
array $paths:
Return value
array
1 call to File_Iterator_Factory::getPathsAfterResolvingWildcards()
- File_Iterator_Factory::getFileIterator in vendor/
phpunit/ php-file-iterator/ src/ Factory.php
File
- vendor/
phpunit/ php-file-iterator/ src/ Factory.php, line 77
Class
- File_Iterator_Factory
- Factory Method implementation that creates a File_Iterator that operates on an AppendIterator that contains an RecursiveDirectoryIterator for each given path.
Code
protected function getPathsAfterResolvingWildcards(array $paths) {
$_paths = array();
foreach ($paths as $path) {
if ($locals = glob($path, GLOB_ONLYDIR)) {
$_paths = array_merge($_paths, $locals);
}
else {
$_paths[] = $path;
}
}
return $_paths;
}