original_string: protected function renderSvg(array $params, $format)
      {
          $template = file_get_contents($this->path.'/'.$this->getTemplate());
  
          foreach ($params as $key => $param) {
              $template = str_replace(sprintf('{{ %s }}', $key), $param, $template);
          }
  
          return BadgeImage::createFromString($template, $format);
      }
code: protected function renderSvg(array $params, $format)
      {
          $template = file_get_contents($this->path.'/'.$this->getTemplate());
  
          foreach ($params as $key => $param) {
              $template = str_replace(sprintf('{{ %s }}', $key), $param, $template);
          }
  
          return BadgeImage::createFromString($template, $format);
      }
code_tokens: protected function renderSvg ( array $ params , $ format ) { $ template = file_get_contents ( $ this -> path . '/' . $ this -> getTemplate ( ) ) ; foreach ( $ params as $ key => $ param ) { $ template = str_replace ( sprintf ( '{{ %s }}' , $ key ) , $ param , $ template ) ; } return BadgeImage :: createFromString ( $ template , $ format ) ; }
docstring: Render the badge from the parameters and format given.
  
  @param array  $params
  @param string $format
  
  @return \AltThree\Badger\BadgeImage
docstring_tokens: Render the badge from the parameters and format given .