original_string: protected function getTemplateVars(TemplateInterface $template)
      {
          $vars = [
              'expected' => $this->match->getExpected(),
              'actual' => $this->match->getActual(),
          ];
  
          if ($tplVars = $template->getTemplateVars()) {
              $vars = array_merge($vars, $tplVars);
          }
  
          return $vars;
      }
code: protected function getTemplateVars(TemplateInterface $template)
      {
          $vars = [
              'expected' => $this->match->getExpected(),
              'actual' => $this->match->getActual(),
          ];
  
          if ($tplVars = $template->getTemplateVars()) {
              $vars = array_merge($vars, $tplVars);
          }
  
          return $vars;
      }
code_tokens: protected function getTemplateVars ( TemplateInterface $ template ) { $ vars = [ 'expected' => $ this -> match -> getExpected ( ) , 'actual' => $ this -> match -> getActual ( ) , ] ; if ( $ tplVars = $ template -> getTemplateVars ( ) ) { $ vars = array_merge ( $ vars , $ tplVars ) ; } return $ vars ; }
docstring: Applies match results to other template variables.
  
  @param  TemplateInterface $template
  @return array
docstring_tokens: Applies match results to other template variables .