Code Duplication    Length = 5-7 lines in 2 locations

lib/private/App/InfoParser.php 2 locations

@@ 171-175 (lines=5) @@
168
					$data['@attributes'][$attr] = (string)$value;
169
				}
170
171
				if ($totalElement > 1) {
172
					$array[$element][] = $data;
173
				} else {
174
					$array[$element] = $data;
175
				}
176
				// Just a value
177
			} else {
178
				if ($totalElement > 1) {
@@ 177-183 (lines=7) @@
174
					$array[$element] = $data;
175
				}
176
				// Just a value
177
			} else {
178
				if ($totalElement > 1) {
179
					$array[$element][] = $this->xmlToArray($node);
180
				} else {
181
					$array[$element] = $this->xmlToArray($node);
182
				}
183
			}
184
		}
185
186
		return $array;