src/package/Data/Repositories/Support/Helpers.php
public function isExcluded($exclusions, $path, $file = '')
    {
        if ($file) {
            if (!$file instanceof SplFileInfo) {
                $path = make_path([$path, $file]);
            } else {
                $path = $file->getPathname();
            }
        }

        foreach ($exclusions ?: [] as $excluded) {
            if (starts_with($path, $excluded)) {
                return true;
            }
        }

        return false;
    }
public function isExcluded($exclusions, $path, $file = '')
    {
        if ($file) {
            if (!$file instanceof SplFileInfo) {
                $path = make_path([$path, $file]);
            } else {
                $path = $file->getPathname();
            }
        }

        foreach ($exclusions ?: [] as $excluded) {
            if (starts_with($path, $excluded)) {
                return true;
            }
        }

        return false;
    }
public function isExcluded ( $ exclusions , $ path , $ file = '' ) { if ( $ file ) { if ( ! $ file instanceof SplFileInfo ) { $ path = make_path ( [ $ path , $ file ] ) ; } else { $ path = $ file -> getPathname ( ) ; } } foreach ( $ exclusions ? : [ ] as $ excluded ) { if ( starts_with ( $ path , $ excluded ) ) { return true ; } } return false ; }
Check if a path is excluded.

@param $exclusions
@param $path
@param string $file

@return bool
Check if a path is excluded .