protected function fileIsInExcludedPath($file)
    {
        $excludedPaths = [
            '/vendor/laravel/framework/src/Illuminate/Database',
            '/vendor/laravel/framework/src/Illuminate/Events',
            '/vendor/barryvdh/laravel-debugbar',
        ];

        $normalizedPath = str_replace('\\', '/', $file);

        foreach ($excludedPaths as $excludedPath) {
            if (strpos($normalizedPath, $excludedPath) !== false) {
                return true;
            }
        }

        return false;
    }
protected function fileIsInExcludedPath($file)
    {
        $excludedPaths = [
            '/vendor/laravel/framework/src/Illuminate/Database',
            '/vendor/laravel/framework/src/Illuminate/Events',
            '/vendor/barryvdh/laravel-debugbar',
        ];

        $normalizedPath = str_replace('\\', '/', $file);

        foreach ($excludedPaths as $excludedPath) {
            if (strpos($normalizedPath, $excludedPath) !== false) {
                return true;
            }
        }

        return false;
    }
protected function fileIsInExcludedPath ( $ file ) { $ excludedPaths = [ '/vendor/laravel/framework/src/Illuminate/Database' , '/vendor/laravel/framework/src/Illuminate/Events' , '/vendor/barryvdh/laravel-debugbar' , ] ; $ normalizedPath = str_replace ( '\\' , '/' , $ file ) ; foreach ( $ excludedPaths as $ excludedPath ) { if ( strpos ( $ normalizedPath , $ excludedPath ) !== false ) { return true ; } } return false ; }
Check if the given file is to be excluded from analysis

@param string $file
@return bool
Check if the given file is to be excluded from analysis