public function isExcludedFromAnalysing(string $file) : bool
{
foreach ($this->analyseExcludes as $exclude) {
$realpathedExclude = realpath($exclude);
if ($realpathedExclude !== false && strpos($file, $realpathedExclude) === 0 || fnmatch($exclude, $file)) {
return true;
}
}
return false;
}