public function addExclude(string $pattern): self
    {
        if (substr($pattern, 0, 2)=='./') {
            $pattern = substr($pattern, 2);
        }

        if (!in_array($pattern, $this->excludes)) {
            $this->excludes[] = $pattern;
        }

        return $this;
    }
public function addExclude(string $pattern): self
    {
        if (substr($pattern, 0, 2)=='./') {
            $pattern = substr($pattern, 2);
        }

        if (!in_array($pattern, $this->excludes)) {
            $this->excludes[] = $pattern;
        }

        return $this;
    }
public function addExclude ( string $ pattern ) : self { if ( substr ( $ pattern , 0 , 2 ) == './' ) { $ pattern = substr ( $ pattern , 2 ) ; } if ( ! in_array ( $ pattern , $ this -> excludes ) ) { $ this -> excludes [ ] = $ pattern ; } return $ this ; }
Add an exclude pattern

@param string $pattern

@return Configuration
Add an exclude pattern