src/Core/Manifest/ManifestFileFinder.php
protected function anyParents($basename, $pathname, $depth, $callback)
    {
        // Check all ignored dir up the path
        while ($depth >= 0) {
            $ignored = $callback($basename, $pathname, $depth);
            if ($ignored) {
                return true;
            }
            $pathname = dirname($pathname);
            $basename = basename($pathname);
            $depth--;
        }
        return false;
    }
protected function anyParents($basename, $pathname, $depth, $callback)
    {
        // Check all ignored dir up the path
        while ($depth >= 0) {
            $ignored = $callback($basename, $pathname, $depth);
            if ($ignored) {
                return true;
            }
            $pathname = dirname($pathname);
            $basename = basename($pathname);
            $depth--;
        }
        return false;
    }
protected function anyParents ( $ basename , $ pathname , $ depth , $ callback ) { // Check all ignored dir up the path while ( $ depth >= 0 ) { $ ignored = $ callback ( $ basename , $ pathname , $ depth ) ; if ( $ ignored ) { return true ; } $ pathname = dirname ( $ pathname ) ; $ basename = basename ( $ pathname ) ; $ depth -- ; } return false ; }
Check if any parents match the given callback

@param string $basename
@param string $pathname
@param int $depth
@param callable $callback
@return bool
Check if any parents match the given callback