Code Duplication    Length = 5-7 lines in 2 locations

lib/private/App/InfoParser.php 2 locations

@@ 209-213 (lines=5) @@
206
					$data['@attributes'][$attr] = (string)$value;
207
				}
208
209
				if ($totalElement > 1) {
210
					$array[$element][] = $data;
211
				} else {
212
					$array[$element] = $data;
213
				}
214
				// Just a value
215
			} else {
216
				if ($totalElement > 1) {
@@ 215-221 (lines=7) @@
212
					$array[$element] = $data;
213
				}
214
				// Just a value
215
			} else {
216
				if ($totalElement > 1) {
217
					$array[$element][] = $this->xmlToArray($node);
218
				} else {
219
					$array[$element] = $this->xmlToArray($node);
220
				}
221
			}
222
		}
223
224
		return $array;