Code Duplication    Length = 8-10 lines in 2 locations

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

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

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

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