Code Duplication    Length = 7-7 lines in 2 locations

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

@@ 88-94 (lines=7) @@
85
		return $this->content["image"]= $image;
86
	}
87
88
	public function addReveal($visibleContent, $hiddenContent=NULL, $type=RevealType::FADE, $attributeType=NULL) {
89
		$reveal=$visibleContent;
90
		if (!$visibleContent instanceof HtmlReveal) {
91
			$reveal=new HtmlReveal("reveral-" . $this->identifier, $visibleContent, $hiddenContent, $type, $attributeType);
92
		}
93
		return $this->content["image"]= $reveal;
94
	}
95
96
	public function addRevealImage($visibleContent, $hiddenContent=NULL, $type=RevealType::FADE, $attributeType=NULL) {
97
		$reveal=$visibleContent;
@@ 96-102 (lines=7) @@
93
		return $this->content["image"]= $reveal;
94
	}
95
96
	public function addRevealImage($visibleContent, $hiddenContent=NULL, $type=RevealType::FADE, $attributeType=NULL) {
97
		$reveal=$visibleContent;
98
		if (!$visibleContent instanceof HtmlReveal) {
99
			return $this->addReveal(new HtmlImage("", $visibleContent), new HtmlImage("", $hiddenContent), $type, $attributeType);
100
		}
101
		return $this->content["image"]= $reveal;
102
	}
103
104
	public function addExtraContent($content=array()) {
105
		return $this->content["extra-content"]= $this->createContent($content, "extra content");