original_string: public function removeFilter($callback)
  	{
  		if (($index = array_search('Dwoo_Filter_'.$callback, $this->filters, true)) !== false) {
  			unset($this->filters[$index]);
  		} elseif (($index = array_search($callback, $this->filters, true)) !== false) {
  			unset($this->filters[$index]);
  		} else	{
  			$class = 'Dwoo_Filter_' . $callback;
  			foreach ($this->filters as $index=>$filter) {
  				if (is_array($filter) && $filter[0] instanceof $class) {
  					unset($this->filters[$index]);
  					break;
  				}
  			}
  		}
  	}
code: public function removeFilter($callback)
  	{
  		if (($index = array_search('Dwoo_Filter_'.$callback, $this->filters, true)) !== false) {
  			unset($this->filters[$index]);
  		} elseif (($index = array_search($callback, $this->filters, true)) !== false) {
  			unset($this->filters[$index]);
  		} else	{
  			$class = 'Dwoo_Filter_' . $callback;
  			foreach ($this->filters as $index=>$filter) {
  				if (is_array($filter) && $filter[0] instanceof $class) {
  					unset($this->filters[$index]);
  					break;
  				}
  			}
  		}
  	}
code_tokens: public function removeFilter ( $ callback ) { if ( ( $ index = array_search ( 'Dwoo_Filter_' . $ callback , $ this -> filters , true ) ) !== false ) { unset ( $ this -> filters [ $ index ] ) ; } elseif ( ( $ index = array_search ( $ callback , $ this -> filters , true ) ) !== false ) { unset ( $ this -> filters [ $ index ] ) ; } else { $ class = 'Dwoo_Filter_' . $ callback ; foreach ( $ this -> filters as $ index => $ filter ) { if ( is_array ( $ filter ) && $ filter [ 0 ] instanceof $ class ) { unset ( $ this -> filters [ $ index ] ) ; break ; } } } }
docstring: removes a filter
  
  @param mixed $callback callback or filter name if it was autoloaded
docstring_tokens: removes a filter