original_string: public function ignorePatterns($ignorePatterns)
      {
          if (!is_array($ignorePatterns)) {
              $ignorePatterns = [$ignorePatterns];
          }
          $this->ignorePatterns = array_unique(array_merge($this->ignorePatterns, $ignorePatterns));
  
          return $this;
      }
code: public function ignorePatterns($ignorePatterns)
      {
          if (!is_array($ignorePatterns)) {
              $ignorePatterns = [$ignorePatterns];
          }
          $this->ignorePatterns = array_unique(array_merge($this->ignorePatterns, $ignorePatterns));
  
          return $this;
      }
code_tokens: public function ignorePatterns ( $ ignorePatterns ) { if ( ! is_array ( $ ignorePatterns ) ) { $ ignorePatterns = [ $ ignorePatterns ] ; } $ this -> ignorePatterns = array_unique ( array_merge ( $ this -> ignorePatterns , $ ignorePatterns ) ) ; return $ this ; }
docstring: 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
docstring_tokens: Sets a list of ignore patterns that is used to exclude directories from the source analysis .