Code Duplication    Length = 7-7 lines in 2 locations

lib/Db/MembersMapper.php 1 location

@@ 104-110 (lines=7) @@
101
			$qb = $this->getMembersFromCircleSql((int)$circleId);
102
			$cursor = $qb->execute();
103
			$result = [];
104
			while ($data = $cursor->fetch()) {
105
				if (!$user->isLevel(Member::LEVEL_MODERATOR)) {
106
					$data['note'] = '';
107
				}
108
109
				$result[] = Member::fromArray($this->l10n, $data);
110
			}
111
			$cursor->closeCursor();
112
113
		} catch (MemberDoesNotExistException $e) {

lib/Db/MembersRequest.php 1 location

@@ 102-108 (lines=7) @@
99
100
		$cursor = $qb->execute();
101
		$groups = [];
102
		while ($data = $cursor->fetch()) {
103
			if ($viewer->getLevel() < Member::LEVEL_MODERATOR) {
104
				$data['note'] = '';
105
			}
106
107
			$groups[] = Member::fromArray($this->l10n, $data);
108
		}
109
		$cursor->closeCursor();
110
111
		return $groups;