Code Duplication    Length = 8-8 lines in 2 locations

lib/private/Mail/EMailTemplate.php 2 locations

@@ 603-610 (lines=8) @@
600
	 *
601
	 * @return string
602
	 */
603
	public function renderHtml() {
604
		if (!$this->footerAdded) {
605
			$this->footerAdded = true;
606
			$this->ensureBodyIsClosed();
607
			$this->htmlBody .= $this->tail;
608
		}
609
		return $this->htmlBody;
610
	}
611
612
	/**
613
	 * Returns the rendered plain text email as string
@@ 617-624 (lines=8) @@
614
	 *
615
	 * @return string
616
	 */
617
	public function renderText() {
618
		if (!$this->footerAdded) {
619
			$this->footerAdded = true;
620
			$this->ensureBodyIsClosed();
621
			$this->htmlBody .= $this->tail;
622
		}
623
		return $this->plainBody;
624
	}
625
}
626