Code Duplication    Length = 2-3 lines in 4 locations

Ajax/semantic/html/modules/HtmlDropdown.php 1 location

@@ 266-267 (lines=2) @@
263
	 */
264
	public function run(JsUtils $js) {
265
		if($this->propertyContains("class", "simple")===false){
266
			if(isset($this->_bsComponent)===false)
267
				$this->_bsComponent=$js->semantic()->dropdown("#".$this->identifier,$this->_params);
268
			$this->addEventsOnRun($js);
269
			return $this->_bsComponent;
270
		}

Ajax/semantic/html/modules/HtmlProgress.php 1 location

@@ 114-115 (lines=2) @@
111
	 * @see BaseHtml::run()
112
	 */
113
	public function run(JsUtils $js) {
114
		if (isset($this->_bsComponent) === false)
115
			$this->_bsComponent=$js->semantic()->progress("#" . $this->identifier, $this->_params);
116
		$this->addEventsOnRun($js);
117
		return $this->_bsComponent;
118
	}

Ajax/semantic/html/modules/HtmlSearch.php 1 location

@@ 82-84 (lines=3) @@
79
			$this->_params["source"]="%content%";
80
			$this->addEvent("beforeExecute", "var content=" . $this->resultsToJson() . ";");
81
		}
82
		if (isset($this->_bsComponent) === false) {
83
			$this->_bsComponent=$js->semantic()->search("#" . $this->identifier, $this->_params);
84
		}
85
		$this->addEventsOnRun($js);
86
		return $this->_bsComponent;
87
	}

Ajax/semantic/html/modules/HtmlShape.php 1 location

@@ 150-151 (lines=2) @@
147
	 * @see BaseHtml::run()
148
	 */
149
	public function run(JsUtils $js) {
150
		if (isset($this->_bsComponent) === false)
151
			$this->_bsComponent=$js->semantic()->shape("#" . $this->identifier, $this->_params);
152
		$this->addEventsOnRun($js);
153
		return $this->_bsComponent;
154
	}