original_string: public function renderBlock(OutputBuffer $out, $name)
  	{
  		$method = 'block_' . $name;
  		
  		if(method_exists($this, $method))
  		{
  			$this->$method($out);
  		}
  		elseif($this->getParent() !== NULL)
  		{
  			$this->parent->renderBlock($out, $name);
  		}
  		else
  		{
  			throw new \RuntimeException(sprintf('Block not found: "%s"', $name));
  		}
  	}
code: public function renderBlock(OutputBuffer $out, $name)
  	{
  		$method = 'block_' . $name;
  		
  		if(method_exists($this, $method))
  		{
  			$this->$method($out);
  		}
  		elseif($this->getParent() !== NULL)
  		{
  			$this->parent->renderBlock($out, $name);
  		}
  		else
  		{
  			throw new \RuntimeException(sprintf('Block not found: "%s"', $name));
  		}
  	}
code_tokens: public function renderBlock ( OutputBuffer $ out , $ name ) { $ method = 'block_' . $ name ; if ( method_exists ( $ this , $ method ) ) { $ this -> $ method ( $ out ) ; } elseif ( $ this -> getParent ( ) !== NULL ) { $ this -> parent -> renderBlock ( $ out , $ name ) ; } else { throw new \ RuntimeException ( sprintf ( 'Block not found: "%s"' , $ name ) ) ; } }
docstring: Render contents of a named block.
  
  @param OutputBuffer $out
  @param string $name Name of the block to be rendered.
  
  @throws \RuntimeException When no such block exists.
docstring_tokens: Render contents of a named block .