Code Duplication    Length = 13-16 lines in 3 locations

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
	/**

lib/Db/FederatedLinksRequest.php 1 location

@@ 132-145 (lines=14) @@
129
	 *
130
	 * @return FederatedLink[]
131
	 */
132
	public function getLinksFromCircle($circleUniqueId, $status = 0) {
133
		$qb = $this->getLinksSelectSql();
134
		$this->limitToCircleId($qb, $circleUniqueId);
135
		$this->limitToStatus($qb, $status);
136
137
		$links = [];
138
		$cursor = $qb->execute();
139
		while ($data = $cursor->fetch()) {
140
			$links[] = $this->parseLinksSelectSql($data);
141
		}
142
		$cursor->closeCursor();
143
144
		return $links;
145
	}
146
147
148
	/**

lib/Db/SharingFrameRequest.php 1 location

@@ 75-87 (lines=13) @@
72
	 *
73
	 * @return SharingFrame[]
74
	 */
75
	public function getSharingFramesFromCircle($circleUniqueId) {
76
		$qb = $this->getSharesSelectSql();
77
		$this->limitToCircleId($qb, $circleUniqueId);
78
79
		$frames = [];
80
		$cursor = $qb->execute();
81
		while ($data = $cursor->fetch()) {
82
			$frames[] = $this->parseSharesSelectSql($data);
83
		}
84
		$cursor->closeCursor();
85
86
		return $frames;
87
	}
88
89
90
	/**