src/ComponentFinder.php
protected function isExcluded(SplFileInfo $file, Collection $excludes)
    {
        return $excludes->contains(function ($exclude) use ($file) {
            return Str::startsWith($file->getPathname(), $exclude);
        });
    }
protected function isExcluded(SplFileInfo $file, Collection $excludes)
    {
        return $excludes->contains(function ($exclude) use ($file) {
            return Str::startsWith($file->getPathname(), $exclude);
        });
    }
protected function isExcluded ( SplFileInfo $ file , Collection $ excludes ) { return $ excludes -> contains ( function ( $ exclude ) use ( $ file ) { return Str :: startsWith ( $ file -> getPathname ( ) , $ exclude ) ; } ) ; }
Determine if a file has been defined in the exclude configuration.

@param  SplFileInfo $file
@param  Collection  $excludes
@return bool
Determine if a file has been defined in the exclude configuration .