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);
    }
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);
    }
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 ) ; }
Render the badge from the parameters and format given.

@param array  $params
@param string $format

@return \AltThree\Badger\BadgeImage
Render the badge from the parameters and format given .