public function ignorePatterns($ignorePatterns)
    {
        if (!is_array($ignorePatterns)) {
            $ignorePatterns = [$ignorePatterns];
        }
        $this->ignorePatterns = array_unique(array_merge($this->ignorePatterns, $ignorePatterns));

        return $this;
    }
public function ignorePatterns($ignorePatterns)
    {
        if (!is_array($ignorePatterns)) {
            $ignorePatterns = [$ignorePatterns];
        }
        $this->ignorePatterns = array_unique(array_merge($this->ignorePatterns, $ignorePatterns));

        return $this;
    }
public function ignorePatterns ( $ ignorePatterns ) { if ( ! is_array ( $ ignorePatterns ) ) { $ ignorePatterns = [ $ ignorePatterns ] ; } $ this -> ignorePatterns = array_unique ( array_merge ( $ this -> ignorePatterns , $ ignorePatterns ) ) ; return $ this ; }
Sets a list of ignore patterns that is used to exclude directories from
the source analysis.

@param array|string $ignorePatterns
List of ignore patterns.

@return $this
Sets a list of ignore patterns that is used to exclude directories from the source analysis .