Code Duplication    Length = 13-13 lines in 2 locations

Ajax/semantic/html/modules/HtmlModal.php 2 locations

@@ 82-94 (lines=13) @@
79
		return $this;
80
	}
81
82
	public function addImageContent($image,$description=NULL){
83
		$content=$this->content["content"];
84
		if(isset($description)){
85
			$description=new HtmlSemDoubleElement("description-".$this->identifier,"div","description",$description);
86
			$content->addContent($description,true);
87
		}
88
		if($image!==""){
89
			$img=new HtmlImage("image-".$this->identifier,$image,"","medium");
90
			$content->addContent($img,true);
91
			$content->addToProperty("class","image");
92
		}
93
		return $this;
94
	}
95
96
	public function addIconContent($icon,$description=NULL){
97
		$content=$this->content["content"];
@@ 96-108 (lines=13) @@
93
		return $this;
94
	}
95
96
	public function addIconContent($icon,$description=NULL){
97
		$content=$this->content["content"];
98
		if(isset($description)){
99
			$description=new HtmlSemDoubleElement("description-".$this->identifier,"div","description",$description);
100
			$content->addContent($description,true);
101
		}
102
		if($icon!==""){
103
			$img=new HtmlIcon("image-".$this->identifier,$icon);
104
			$content->addContent($img,true);
105
			$content->addToProperty("class","image");
106
		}
107
		return $this;
108
	}
109
110
	private function addElementInPart($element,$part) {
111
		$this->content[$part]->addContent($element);