Code Duplication    Length = 4-5 lines in 2 locations

Ajax/common/html/BaseHtml.php 2 locations

@@ 130-133 (lines=4) @@
127
	}
128
129
	public function fromArray($array) {
130
		foreach ( $this as $key => $value ) {
131
			if(array_key_exists($key, $array)===true)
132
				$this->_callSetter("set" . ucfirst($key), $key, $array[$key], $array);
133
		}
134
		foreach ( $array as $key => $value ) {
135
			if($this->_callSetter($key, $key, $value, $array)===false){
136
				$this->_callSetter("set" . ucfirst($key), $key, $value, $array);
@@ 134-138 (lines=5) @@
131
			if(array_key_exists($key, $array)===true)
132
				$this->_callSetter("set" . ucfirst($key), $key, $array[$key], $array);
133
		}
134
		foreach ( $array as $key => $value ) {
135
			if($this->_callSetter($key, $key, $value, $array)===false){
136
				$this->_callSetter("set" . ucfirst($key), $key, $value, $array);
137
			}
138
		}
139
		return $array;
140
	}
141