Code Duplication    Length = 5-7 lines in 2 locations

lib/private/App/InfoParser.php 2 locations

@@ 158-162 (lines=5) @@
155
					$data['@attributes'][$attr] = (string)$value;
156
				}
157
158
				if ($totalElement > 1) {
159
					$array[$element][] = $data;
160
				} else {
161
					$array[$element] = $data;
162
				}
163
				// Just a value
164
			} else {
165
				if ($totalElement > 1) {
@@ 164-170 (lines=7) @@
161
					$array[$element] = $data;
162
				}
163
				// Just a value
164
			} else {
165
				if ($totalElement > 1) {
166
					$array[$element][] = $this->xmlToArray($node);
167
				} else {
168
					$array[$element] = $this->xmlToArray($node);
169
				}
170
			}
171
		}
172
173
		return $array;