Code Duplication    Length = 7-8 lines in 2 locations

Ajax/common/Widget.php 1 location

@@ 162-168 (lines=7) @@
159
		return $this;
160
	}
161
162
	public function addDropdownInToolbar($value,$items=NULL,$callback=NULL){
163
		$dd=$value;
164
		if (\is_string($value)) {
165
			$dd=new HtmlDropdown("dropdown-". $this->identifier."-".$value, $value, $items);
166
		}
167
		return $this->addInToolbar($dd,$callback);
168
	}
169
170
	public function addButtonInToolbar($caption,$callback=NULL){
171
		$bt=new HtmlButton("",$caption);

Ajax/semantic/html/collections/menus/HtmlMenu.php 1 location

@@ 126-133 (lines=8) @@
123
		return $popup;
124
	}
125
126
	public function addDropdownAsItem($value, $items=NULL) {
127
		$dd=$value;
128
		if (\is_string($value)) {
129
			$dd=new HtmlDropdown("dropdown-" . $this->identifier . "-" . $this->count(), $value, $items);
130
		}
131
		$this->addItem($dd);
132
		return $dd;
133
	}
134
135
	/**
136
	 *