Code Duplication    Length = 8-10 lines in 2 locations

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

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))