Code Duplication    Length = 5-5 lines in 2 locations

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

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