Code Duplication    Length = 5-6 lines in 2 locations

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

@@ 54-59 (lines=6) @@
51
			$this->content=$title;
52
		}
53
		$this->content->setClass("content");
54
		if(isset($subHeader)){
55
			$sub=new HtmlDoubleElement("subheader-".$this->identifier,"div");
56
			$sub->setClass("sub header");
57
			$sub->setContent($subHeader);
58
			$this->content->addContent($sub);
59
		}
60
		return $this;
61
	}
62

Ajax/semantic/html/collections/menus/HtmlMenu.php 1 location

@@ 62-66 (lines=5) @@
59
	public function generateMenuAsItem($menu,$header=null){
60
		$count=$this->count();
61
		$item=new HtmlSemDoubleElement("item-".$this->identifier."-".$count,"div");
62
		if(isset($header)){
63
			$headerItem=new HtmlSemDoubleElement("item-header-".$this->identifier."-".$count,"div","header");
64
			$headerItem->setContent($header);
65
			$item->addContent($headerItem);
66
		}
67
		$menu->setClass("menu");
68
		$item->addContent($menu);
69
		return $item;