Code Duplication    Length = 9-9 lines in 2 locations

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

@@ 22-30 (lines=9) @@
19
	 * {@inheritDoc}
20
	 * @see \Ajax\common\html\html5\HtmlCollection::createItem()
21
	 */
22
	protected function createItem($value) {
23
		$title=$value;
24
		$content="";
25
		if(\is_array($value)){
26
			$title=@$value[0];$content=@$value[1];
27
		}
28
		$itemO=new HtmlAccordionMenuItem("item-".$this->identifier."-".$this->count(), $title, $content);
29
		return $itemO->setClass("item");
30
	}
31
32
	/*
33
	 * (non-PHPdoc)

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

@@ 18-26 (lines=9) @@
15
	}
16
17
18
	protected function createItem($value){
19
		$count=$this->count();
20
		$title=$value;
21
		$content=NULL;
22
		if(\is_array($value)){
23
			$title=@$value[0];$content=@$value[1];
24
		}
25
		return new HtmlAccordionItem("item-".$this->identifier."-".$count, $title,$content);
26
	}
27
28
	protected function createCondition($value){
29
		return ($value instanceof HtmlAccordionItem)===false;