Code Duplication    Length = 6-6 lines in 2 locations

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

@@ 32-37 (lines=6) @@
29
	 * {@inheritDoc}
30
	 * @see \Ajax\semantic\html\collections\HtmlMenu::createItem()
31
	 */
32
	protected function createItem($value) {
33
		$count=\sizeof($this->content);
34
		$value=new HtmlIcon("icon-".$count, $value);
35
		$itemO=new HtmlLink("item-".$count,"",$value);
36
		return $itemO->setClass("item");
37
	}
38
}

Ajax/semantic/html/views/HtmlCard.php 1 location

@@ 22-27 (lines=6) @@
19
		parent::__construct($identifier, "div", "ui card", array ());
20
	}
21
22
	private function createContent($content, $baseClass="content") {
23
		$count=\sizeof($this->content);
24
		$result=new HtmlCardContent("content-" . $count . "-" . $this->identifier, $content);
25
		$result->setClass($baseClass);
26
		return $result;
27
	}
28
29
	private function addElementInContent($key, $element) {
30
		if (\array_key_exists($key, $this->content) === false) {