Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Factory.php

function Factory::resolveWildcards

@psalm-param list<non-empty-string> $paths

@psalm-return list<non-empty-string>

1 call to Factory::resolveWildcards()
Factory::getFileIterator in vendor/phpunit/php-file-iterator/src/Factory.php
@psalm-param list<non-empty-string>|non-empty-string $paths @psalm-param list<non-empty-string>|string $suffixes @psalm-param list<non-empty-string>|string $prefixes @psalm-param list<non-empty-string> $exclude

File

vendor/phpunit/php-file-iterator/src/Factory.php, line 90

Class

Factory
@internal This class is not covered by the backward compatibility promise for phpunit/php-file-iterator

Namespace

SebastianBergmann\FileIterator

Code

private function resolveWildcards(array $paths) : array {
    $_paths = [
        [],
    ];
    foreach ($paths as $path) {
        if ($locals = glob($path, GLOB_ONLYDIR)) {
            $_paths[] = array_map('\\realpath', $locals);
        }
        else {
            // @codeCoverageIgnoreStart
            $_paths[] = [
                realpath($path),
            ];
            // @codeCoverageIgnoreEnd
        }
    }
    return array_values(array_filter(array_merge(...$_paths)));
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal