Code Duplication    Length = 5-5 lines in 2 locations

apps/dav/lib/CardDAV/CardDavBackend.php 2 locations

@@ 386-390 (lines=5) @@
383
		$cards = [];
384
385
		$result = $query->execute();
386
		while($row = $result->fetch()) {
387
			$row['etag'] = '"' . $row['etag'] . '"';
388
			$row['carddata'] = $this->readBlob($row['carddata']);
389
			$cards[] = $row;
390
		}
391
		$result->closeCursor();
392
393
		return $cards;
@@ 450-454 (lines=5) @@
447
		$cards = [];
448
449
		$result = $query->execute();
450
		while($row = $result->fetch()) {
451
			$row['etag'] = '"' . $row['etag'] . '"';
452
			$row['carddata'] = $this->readBlob($row['carddata']);
453
			$cards[] = $row;
454
		}
455
		$result->closeCursor();
456
457
		return $cards;