Code Duplication    Length = 5-5 lines in 2 locations

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

@@ 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;
@@ 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;