Code Duplication    Length = 6-7 lines in 3 locations

Ajax/semantic/html/elements/HtmlLabel.php 1 location

@@ 100-105 (lines=6) @@
97
	* @param boolean $before
98
	* @return \Ajax\semantic\html\elements\html5\HtmlImg
99
	*/
100
	public function addImage($src, $alt="", $before=true) {
101
		$img=new HtmlImg("image-" . $this->identifier, $src, $alt);
102
		$img->setClass("");
103
		$this->addContent($img, $before);
104
		return $img;
105
	}
106
107
	/**
108
	 *

Ajax/semantic/html/content/HtmlDropdownItem.php 2 locations

@@ 28-33 (lines=6) @@
25
			$this->setDescription($description);
26
	}
27
28
	public function setDescription($description){
29
		$descO=new HtmlDoubleElement("desc-".$this->identifier,"span");
30
		$descO->setClass("description");
31
		$descO->setContent($description);
32
		return $this->addContent($descO,true);
33
	}
34
35
	public function setData($value){
36
		$this->setProperty("data-value", $value);
@@ 50-56 (lines=7) @@
47
	 * @param string $image the image src
48
	 * @return \Ajax\common\html\html5\HtmlImg
49
	 */
50
	public function asMiniAvatar($image){
51
		$this->tagName="div";
52
		$img=new HtmlImg("image-".$this->identifier,$image);
53
		$img->setClass("ui mini avatar image");
54
		$this->addContent($img,true);
55
		return $this;
56
	}
57
58
	/**
59
	 * @param string $caption