public function getExcludePaths($path)
    {
        $excludePaths = [];

        $iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($path));
        $objects = new \RegexIterator($iterator, '/.*(.php)$/', \RecursiveRegexIterator::GET_MATCH);

        foreach ($objects as $filename => $object) {
            if (preg_filter($this->ignoredFolder, [], $filename)) {
                $excludePaths[] = dirname($filename);
            }
        }

        $excludePaths = array_unique($excludePaths);

        return $excludePaths;
    }
public function getExcludePaths($path)
    {
        $excludePaths = [];

        $iterator = new \RecursiveIteratorIterator(new \RecursiveDirectoryIterator($path));
        $objects = new \RegexIterator($iterator, '/.*(.php)$/', \RecursiveRegexIterator::GET_MATCH);

        foreach ($objects as $filename => $object) {
            if (preg_filter($this->ignoredFolder, [], $filename)) {
                $excludePaths[] = dirname($filename);
            }
        }

        $excludePaths = array_unique($excludePaths);

        return $excludePaths;
    }
public function getExcludePaths ( $ path ) { $ excludePaths = [ ] ; $ iterator = new \ RecursiveIteratorIterator ( new \ RecursiveDirectoryIterator ( $ path ) ) ; $ objects = new \ RegexIterator ( $ iterator , '/.*(.php)$/' , \ RecursiveRegexIterator :: GET_MATCH ) ; foreach ( $ objects as $ filename => $ object ) { if ( preg_filter ( $ this -> ignoredFolder , [ ] , $ filename ) ) { $ excludePaths [ ] = dirname ( $ filename ) ; } } $ excludePaths = array_unique ( $ excludePaths ) ; return $ excludePaths ; }
Get the paths that should be excluded.

@param string $path

@return array
Get the paths that should be excluded .