Code Duplication    Length = 4-5 lines in 2 locations

Ajax/common/html/BaseHtml.php 2 locations

@@ 144-147 (lines=4) @@
141
	}
142
143
	public function fromArray($array) {
144
		foreach ( $this as $key => $value ) {
145
			if(array_key_exists($key, $array)===true)
146
				$this->_callSetter("set" . ucfirst($key), $key, $array[$key], $array);
147
		}
148
		foreach ( $array as $key => $value ) {
149
			if($this->_callSetter($key, $key, $value, $array)===false){
150
				$this->_callSetter("set" . ucfirst($key), $key, $value, $array);
@@ 148-152 (lines=5) @@
145
			if(array_key_exists($key, $array)===true)
146
				$this->_callSetter("set" . ucfirst($key), $key, $array[$key], $array);
147
		}
148
		foreach ( $array as $key => $value ) {
149
			if($this->_callSetter($key, $key, $value, $array)===false){
150
				$this->_callSetter("set" . ucfirst($key), $key, $value, $array);
151
			}
152
		}
153
		return $array;
154
	}
155