Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 416-420 (lines=5) @@
413
		$cards = [];
414
415
		$result = $query->execute();
416
		while($row = $result->fetch()) {
417
			$row['etag'] = '"' . $row['etag'] . '"';
418
			$row['carddata'] = $this->readBlob($row['carddata']);
419
			$cards[] = $row;
420
		}
421
		$result->closeCursor();
422
423
		return $cards;
@@ 480-484 (lines=5) @@
477
		$cards = [];
478
479
		$result = $query->execute();
480
		while($row = $result->fetch()) {
481
			$row['etag'] = '"' . $row['etag'] . '"';
482
			$row['carddata'] = $this->readBlob($row['carddata']);
483
			$cards[] = $row;
484
		}
485
		$result->closeCursor();
486
487
		return $cards;