original_string: protected function _addFilter($facetName, $value)
      {
          if (isset($this->filters[$facetName])) {
              $currentValue = $this->filters[$facetName];
              if (!is_array($currentValue)) {
                  $currentValue = array($currentValue);
              }
              $currentValue[] = $value;
              $value = $currentValue;
          }
          $this->filters[$facetName] = $value;
      }
code: protected function _addFilter($facetName, $value)
      {
          if (isset($this->filters[$facetName])) {
              $currentValue = $this->filters[$facetName];
              if (!is_array($currentValue)) {
                  $currentValue = array($currentValue);
              }
              $currentValue[] = $value;
              $value = $currentValue;
          }
          $this->filters[$facetName] = $value;
      }
code_tokens: protected function _addFilter ( $ facetName , $ value ) { if ( isset ( $ this -> filters [ $ facetName ] ) ) { $ currentValue = $ this -> filters [ $ facetName ] ; if ( ! is_array ( $ currentValue ) ) { $ currentValue = array ( $ currentValue ) ; } $ currentValue [ ] = $ value ; $ value = $ currentValue ; } $ this -> filters [ $ facetName ] = $ value ; }
docstring: Add new filter without overwriting existing filters
  
  @param string $facetName
  @param string|int $value
docstring_tokens: Add new filter without overwriting existing filters