Code Duplication    Length = 8-10 lines in 2 locations

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

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