Code Duplication    Length = 2-3 lines in 3 locations

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
	}

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

@@ 252-253 (lines=2) @@
249
	 */
250
	public function run(JsUtils $js) {
251
		if($this->propertyContains("class", "simple")===false){
252
			if(isset($this->_bsComponent)===false)
253
				$this->_bsComponent=$js->semantic()->dropdown("#".$this->identifier,$this->_params);
254
			$this->addEventsOnRun($js);
255
			return $this->_bsComponent;
256
		}