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

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