Code Duplication    Length = 14-16 lines in 2 locations

lib/Db/FederatedLinksRequest.php 1 location

@@ 145-158 (lines=14) @@
142
	 *
143
	 * @return FederatedLink[]
144
	 */
145
	public function getLinksFromCircle($circleUniqueId, $status = 0) {
146
		$qb = $this->getLinksSelectSql();
147
		$this->limitToCircleId($qb, $circleUniqueId);
148
		$this->limitToStatus($qb, $status);
149
150
		$links = [];
151
		$cursor = $qb->execute();
152
		while ($data = $cursor->fetch()) {
153
			$links[] = $this->parseLinksSelectSql($data);
154
		}
155
		$cursor->closeCursor();
156
157
		return $links;
158
	}
159
160
161
	/**

lib/Db/MembersRequest.php 1 location

@@ 275-290 (lines=16) @@
272
	 *
273
	 * @return Member[]
274
	 */
275
	public function forceGetGroupMembers($circleUniqueId, $level = Member::LEVEL_MEMBER) {
276
		$qb = $this->getGroupsSelectSql();
277
278
		$this->limitToLevel($qb, $level);
279
		$this->limitToCircleId($qb, $circleUniqueId);
280
		$this->limitToNCGroupUser($qb);
281
282
		$members = [];
283
		$cursor = $qb->execute();
284
		while ($data = $cursor->fetch()) {
285
			$members[] = $this->parseGroupsSelectSql($data);
286
		}
287
		$cursor->closeCursor();
288
289
		return $members;
290
	}
291
292
293
	/**