PHPStan\Analyser\Analyser::isExcludedFromAnalysing PHP Method

isExcludedFromAnalysing() public method

public isExcludedFromAnalysing ( string $file ) : boolean
$file string
return boolean
    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;
    }