app/code/community/Nexcessnet/Turpentine/Model/Varnish/Configurator/Abstract.php
protected function _vcl_backend($name, $host, $port, $options = array()) {
        $tpl = <<<EOS
backend {{name}} {
    .host = "{{host}}";
    .port = "{{port}}";

EOS;
        $vars = array(
            'host'  => $host,
            'port'  => $port,
            'name'  => $name,
        );
        $str = $this->_formatTemplate($tpl, $vars);
        foreach ($options as $key => $value) {
            $str .= sprintf('   .%s = %s;', $key, $value).PHP_EOL;
        }
        $str .= '}'.PHP_EOL;
        return $str;
    }
protected function _vcl_backend($name, $host, $port, $options = array()) {
        $tpl = <<<EOS
backend {{name}} {
    .host = "{{host}}";
    .port = "{{port}}";

EOS;
        $vars = array(
            'host'  => $host,
            'port'  => $port,
            'name'  => $name,
        );
        $str = $this->_formatTemplate($tpl, $vars);
        foreach ($options as $key => $value) {
            $str .= sprintf('   .%s = %s;', $key, $value).PHP_EOL;
        }
        $str .= '}'.PHP_EOL;
        return $str;
    }
protected function _vcl_backend ( $ name , $ host , $ port , $ options = array ( ) ) { $ tpl =  <<<EOS
backend {{name}} {
    .host = "{{host}}";
    .port = "{{port}}";

EOS ; $ vars = array ( 'host' => $ host , 'port' => $ port , 'name' => $ name , ) ; $ str = $ this -> _formatTemplate ( $ tpl , $ vars ) ; foreach ( $ options as $ key => $ value ) { $ str .= sprintf ( '   .%s = %s;' , $ key , $ value ) . PHP_EOL ; } $ str .= '}' . PHP_EOL ; return $ str ; }
Format a VCL backend declaration

@param  string $name    name of the backend
@param  string $host    backend host
@param  string $port    backend port
@param  array  $options options
@return string
Format a VCL backend declaration