public function isExcludedDirectory($directory)
    {
        foreach ($this->getExcludedDirectories() as $pattern) {
            if (Str::is($pattern, $directory)) return true;
        }

        return false;
    }
public function isExcludedDirectory($directory)
    {
        foreach ($this->getExcludedDirectories() as $pattern) {
            if (Str::is($pattern, $directory)) return true;
        }

        return false;
    }
public function isExcludedDirectory ( $ directory ) { foreach ( $ this -> getExcludedDirectories ( ) as $ pattern ) { if ( Str :: is ( $ pattern , $ directory ) ) return true ; } return false ; }
Check if the directory is excluded.

@param  string  $directory

@return bool
Check if the directory is excluded .