Code Duplication    Length = 2-3 lines in 3 locations

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

@@ 197-198 (lines=2) @@
194
	 */
195
	public function run(JsUtils $js) {
196
		if($this->propertyContains("class", "simple")===false){
197
			if(isset($this->_bsComponent)===false)
198
				$this->_bsComponent=$js->semantic()->dropdown("#".$this->identifier,$this->_params);
199
			$this->addEventsOnRun($js);
200
			return $this->_bsComponent;
201
		}

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

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

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

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