return $this->gitignoreFilesCache
[$path] = null;
} if (!
is_file($path) || !
is_readable($path)) { throw new \
RuntimeException("The \"ignoreVCSIgnored\" option cannot be used by the Finder as the \"{
$path}\" file is not readable."
);
} $gitignoreFileContent =
file_get_contents($path);
return $this->gitignoreFilesCache
[$path] =
[ Gitignore::
toRegex($gitignoreFileContent),
Gitignore::
toRegexMatchingNegatedPatterns($gitignoreFileContent),
];
} private function normalizePath(string
$path): string
{ if ('\\' === \DIRECTORY_SEPARATOR
) { return str_replace('\\', '/',
$path);
} return $path;
}}