Code Duplication    Length = 4-5 lines in 2 locations

Ajax/common/html/BaseHtml.php 2 locations

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