Code Duplication    Length = 8-10 lines in 2 locations

Ajax/semantic/html/base/HtmlSemDoubleElement.php 1 location

@@ 20-27 (lines=8) @@
17
	use BaseTrait;
18
	protected $_popup=NULL;
19
20
	public function __construct($identifier, $tagName="p",$baseClass="ui",$content=NULL) {
21
		parent::__construct($identifier, $tagName);
22
		$this->_baseClass=$baseClass;
23
		$this->setClass($baseClass);
24
		if(isset($content)){
25
			$this->content=$content;
26
		}
27
	}
28
29
	public function setPopupAttributes($variation=NULL,$popupEvent=NULL){
30
		if(isset($this->_popup))

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

@@ 25-34 (lines=10) @@
22
	 * @param string $cssStyle btn-default, btn-primary...
23
	 * @param string $onClick JS Code for click event
24
	 */
25
	public function __construct($identifier, $value="", $cssStyle=null, $onClick=null) {
26
		parent::__construct($identifier, "button","ui button");
27
		$this->content=$value;
28
		if (isset($cssStyle)) {
29
			$this->setStyle($cssStyle);
30
		}
31
		if (isset($onClick)) {
32
			$this->onClick($onClick);
33
		}
34
	}
35
36
	/**
37
	 * Set the button value