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

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