Code Duplication    Length = 2-3 lines in 3 locations

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

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

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

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

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

@@ 74-76 (lines=3) @@
71
		if ($this->getType() === "standard")
72
			$this->_params["source"]="%content%";
73
		$this->addEvent("beforeExecute", "var content=" . $this->resultsToJson() . ";");
74
		if (isset($this->_bsComponent) === false) {
75
			$this->_bsComponent=$js->semantic()->search("#" . $this->identifier, $this->_params);
76
		}
77
		$this->addEventsOnRun($js);
78
		return $this->_bsComponent;
79
	}