original_string: public function getTwig(\Twig_Environment $twig)
      {
  
          $this->functions->rewind();
          while ($this->functions->valid()) {
  
              $function = $this->functions->current();
              $twig->addFunction(new \Twig_SimpleFunction($function->getFunctionName(), array($function, 'getFunctionBody')));
              $this->functions->next();
  
          }
  
          return $twig;
  
      }
code: public function getTwig(\Twig_Environment $twig)
      {
  
          $this->functions->rewind();
          while ($this->functions->valid()) {
  
              $function = $this->functions->current();
              $twig->addFunction(new \Twig_SimpleFunction($function->getFunctionName(), array($function, 'getFunctionBody')));
              $this->functions->next();
  
          }
  
          return $twig;
  
      }
code_tokens: public function getTwig ( \ Twig_Environment $ twig ) { $ this -> functions -> rewind ( ) ; while ( $ this -> functions -> valid ( ) ) { $ function = $ this -> functions -> current ( ) ; $ twig -> addFunction ( new \ Twig_SimpleFunction ( $ function -> getFunctionName ( ) , array ( $ function , 'getFunctionBody' ) ) ) ; $ this -> functions -> next ( ) ; } return $ twig ; }
docstring: Adds all the functions into the twig environment
  
  @param \Twig_Environment $twig
  @return \Twig_Environment
  @author Tim Perry
docstring_tokens: Adds all the functions into the twig environment