Code Duplication    Length = 10-10 lines in 2 locations

Ajax/bootstrap/html/HtmlDropdown.php 1 location

@@ 172-181 (lines=10) @@
169
	 * (non-PHPdoc)
170
	 * @see BaseHtml::run()
171
	 */
172
	public function run(JsUtils $js) {
173
		if ($this->getProperty("role")==="nav") {
174
			foreach ( $this->items as $dropdownItem ) {
175
				$dropdownItem->runNav($js);
176
			}
177
		}
178
		$this->_bsComponent=$js->bootstrap()->dropdown("#".$this->identifier);
179
		$this->addEventsOnRun($js);
180
		return $this->_bsComponent;
181
	}
182
183
	/**
184
	 * Sets the tagName's dropdown

Ajax/bootstrap/html/HtmlSplitbutton.php 1 location

@@ 43-52 (lines=10) @@
40
	 * (non-PHPdoc)
41
	 * @see BaseHtml::run()
42
	 */
43
	public function run(JsUtils $js) {
44
		if ($this->getProperty("role")==="nav") {
45
			foreach ( $this->items as $dropdownItem ) {
46
				$dropdownItem->runNav($js);
47
			}
48
		}
49
		$this->_bsComponent=$js->bootstrap()->splitbutton("#".$this->identifier);
50
		$this->addEventsOnRun($js);
51
		return $this->_bsComponent;
52
	}
53
}