Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 388-392 (lines=5) @@
385
		$cards = [];
386
387
		$result = $query->execute();
388
		while($row = $result->fetch()) {
389
			$row['etag'] = '"' . $row['etag'] . '"';
390
			$row['carddata'] = $this->readBlob($row['carddata']);
391
			$cards[] = $row;
392
		}
393
		$result->closeCursor();
394
395
		return $cards;
@@ 459-463 (lines=5) @@
456
			$query->setParameter('uri', $uris, IQueryBuilder::PARAM_STR_ARRAY);
457
			$result = $query->execute();
458
459
			while ($row = $result->fetch()) {
460
				$row['etag'] = '"' . $row['etag'] . '"';
461
				$row['carddata'] = $this->readBlob($row['carddata']);
462
				$cards[] = $row;
463
			}
464
			$result->closeCursor();
465
		}
466
		return $cards;