Code Duplication    Length = 2-3 lines in 5 locations

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/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/HtmlSearch.php 1 location

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

Ajax/semantic/html/modules/checkbox/AbstractCheckbox.php 1 location

@@ 130-131 (lines=2) @@
127
	}
128
129
	public function run(JsUtils $js) {
130
		if(!isset($this->_bsComponent))
131
			$this->_bsComponent=$js->semantic()->checkbox("#" . $this->identifier, $this->_params);
132
		return parent::run($js);
133
	}
134
}

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

@@ 297-298 (lines=2) @@
294
	 */
295
	public function run(JsUtils $js) {
296
		if($this->propertyContains("class", "simple")===false){
297
			if(isset($this->_bsComponent)===false)
298
				$this->_bsComponent=$js->semantic()->dropdown("#".$this->identifier,$this->_params);
299
			$this->addEventsOnRun($js);
300
			return $this->_bsComponent;
301
		}