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

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