Code Duplication    Length = 7-7 lines in 2 locations

Ajax/semantic/html/content/view/HtmlViewItem.php 2 locations

@@ 64-70 (lines=7) @@
61
		return $this->addElementInContent("content", $image);
62
	}
63
64
	public function addReveal($visibleContent, $hiddenContent=NULL, $type=RevealType::FADE, $attributeType=NULL) {
65
		$reveal=$visibleContent;
66
		if (!$visibleContent instanceof HtmlReveal) {
67
			$reveal=new HtmlReveal("reveral-" . $this->identifier, $visibleContent, $hiddenContent, $type, $attributeType);
68
		}
69
		return $this->addElementInContent("content", $reveal);
70
	}
71
72
	public function addRevealImage($visibleContent, $hiddenContent=NULL, $type=RevealType::FADE, $attributeType=NULL) {
73
		$reveal=$visibleContent;
@@ 72-78 (lines=7) @@
69
		return $this->addElementInContent("content", $reveal);
70
	}
71
72
	public function addRevealImage($visibleContent, $hiddenContent=NULL, $type=RevealType::FADE, $attributeType=NULL) {
73
		$reveal=$visibleContent;
74
		if (!$visibleContent instanceof HtmlReveal) {
75
			return $this->addReveal(new HtmlImage("", $visibleContent), new HtmlImage("", $hiddenContent), $type, $attributeType);
76
		}
77
		return $this->addElementInContent("content", $reveal);
78
	}
79
80
	public function addExtraContent($content=array()) {
81
		return $this->addElementInContent("extra-content", $this->createContent($content, "extra content"));