Code Duplication    Length = 2-3 lines in 4 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

@@ 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/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
	}

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

@@ 284-285 (lines=2) @@
281
	 */
282
	public function run(JsUtils $js) {
283
		if($this->propertyContains("class", "simple")===false){
284
			if(isset($this->_bsComponent)===false)
285
				$this->_bsComponent=$js->semantic()->dropdown("#".$this->identifier,$this->_params);
286
			$this->addEventsOnRun($js);
287
			return $this->_bsComponent;
288
		}