Code Duplication    Length = 4-5 lines in 2 locations

Ajax/common/html/BaseHtml.php 2 locations

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