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;
@@ 481-485 (lines=5) @@
478
			$cards = [];
479
480
			$result = $query->execute();
481
			while ($row = $result->fetch()) {
482
				$row['etag'] = '"' . $row['etag'] . '"';
483
				$row['carddata'] = $this->readBlob($row['carddata']);
484
				$cards[] = $row;
485
			}
486
			$result->closeCursor();
487
488
			return $cards;