original_string: public function addTwigFilter($name, callable $filter, array $options = [])
      {
          $twigFilter = new \Twig_SimpleFilter($name, $filter, $options);
  
          $this->twig->addFilter($twigFilter);
      }
code: public function addTwigFilter($name, callable $filter, array $options = [])
      {
          $twigFilter = new \Twig_SimpleFilter($name, $filter, $options);
  
          $this->twig->addFilter($twigFilter);
      }
code_tokens: public function addTwigFilter ( $ name , callable $ filter , array $ options = [ ] ) { $ twigFilter = new \ Twig_SimpleFilter ( $ name , $ filter , $ options ) ; $ this -> twig -> addFilter ( $ twigFilter ) ; }
docstring: Adds a new Twig filter.
  
  @see http://twig.sensiolabs.org/doc/advanced.html#filters Twig documentation
  
  @param string   $name    Name of filter
  @param callable $filter  Filter implementation
  @param array    $options
docstring_tokens: Adds a new Twig filter .