Code Duplication    Length = 16-16 lines in 2 locations

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

@@ 195-210 (lines=16) @@
192
	 * @param array $values
193
	 * @return HtmlCollection
194
	 */
195
	public function setPropertyValues($property,$values){
196
		$i=0;
197
		if(\is_array($values)===false){
198
			$values=\array_fill(0, $this->count(),$values);
199
		}
200
		foreach ($values as $value){
201
			$c=$this->items[$i++];
202
			if(isset($c)){
203
				$c->setProperty($property,$value);
204
			}
205
			else{
206
				return $this;
207
			}
208
		}
209
		return $this;
210
	}
211
212
	public function each($callBack){
213
		foreach ($this->items as $index=>$value){

Ajax/common/html/HtmlCollection.php 1 location

@@ 162-177 (lines=16) @@
159
	 * @param array $values
160
	 * @return HtmlCollection
161
	 */
162
	public function setPropertyValues($property,$values){
163
		$i=0;
164
		if(\is_array($values)===false){
165
			$values=\array_fill(0, $this->count(),$values);
166
		}
167
		foreach ($values as $value){
168
			$c=$this->content[$i++];
169
			if(isset($c)){
170
				$c->setProperty($property,$value);
171
			}
172
			else{
173
				return $this;
174
			}
175
		}
176
		return $this;
177
	}
178
179
	public function compile(JsUtils $js=NULL, &$view=NULL) {
180
		$index=0;