Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 29-33 (lines=5) @@
26
		$caption=$value;
27
		$icon=NULL;
28
		$tagName="div";
29
		if (\is_array($value)) {
30
			$caption=JArray::getValue($value, "caption", 0);
31
			$icon=JArray::getValue($value, "icon", 1);
32
			$tagName=JArray::getValue($value, "tagName", 2);
33
		}
34
		$labelO=new HtmlLabel("label-" . $this->identifier, $caption,$icon,$tagName);
35
		return $labelO;
36
	}

Ajax/semantic/html/modules/HtmlDropdown.php 1 location

@@ 64-68 (lines=5) @@
61
62
	protected function beforeAddItem($item,$value=NULL,$image=NULL){
63
		$itemO=$item;
64
		if(\is_array($item)){
65
			$value=JArray::getValue($item, "value", 1);
66
			$image=JArray::getValue($item, "image", 2);
67
			$item=JArray::getValue($item, "item", 0);
68
		}
69
		if(!$item instanceof HtmlDropdownItem){
70
			$itemO=new HtmlDropdownItem("dd-item-".$this->identifier."-".\sizeof($this->items),$item,$value,$image);
71
		}elseif($itemO instanceof HtmlDropdownItem){