Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 461-465 (lines=5) @@
458
		$cards = [];
459
460
		$result = $query->execute();
461
		while($row = $result->fetch()) {
462
			$row['etag'] = '"' . $row['etag'] . '"';
463
			$row['carddata'] = $this->readBlob($row['carddata']);
464
			$cards[] = $row;
465
		}
466
		$result->closeCursor();
467
468
		return $cards;
@@ 532-536 (lines=5) @@
529
			$query->setParameter('uri', $uris, IQueryBuilder::PARAM_STR_ARRAY);
530
			$result = $query->execute();
531
532
			while ($row = $result->fetch()) {
533
				$row['etag'] = '"' . $row['etag'] . '"';
534
				$row['carddata'] = $this->readBlob($row['carddata']);
535
				$cards[] = $row;
536
			}
537
			$result->closeCursor();
538
		}
539
		return $cards;