Code Duplication    Length = 8-8 lines in 2 locations

Ajax/semantic/html/content/HtmlAccordionItem.php 1 location

@@ 44-51 (lines=8) @@
41
		return parent::compile($js,$view);
42
	}
43
44
	public function setActive($value=true){
45
		$this->_active=$value;
46
		if($value===true)
47
			$this->addToPropertyCtrl("class", "active", array("active"));
48
		else
49
			$this->removePropertyValue("class", "active");
50
		return $this;
51
	}
52
}

Ajax/semantic/html/content/HtmlShapeItem.php 1 location

@@ 11-18 (lines=8) @@
8
		parent::__construct($identifier,"div","side",$content);
9
	}
10
11
	public function setActive($value=true){
12
		if($value){
13
			$this->addToPropertyCtrl("class", "active", ["active"]);
14
		}else{
15
			$this->removePropertyValue("class", "active");
16
		}
17
		return $this;
18
	}
19
}
20