Code Duplication    Length = 12-13 lines in 2 locations

lib/Db/GSSharesRequest.php 1 location

@@ 68-79 (lines=12) @@
65
	 *
66
	 * @return GSShare[]
67
	 */
68
	public function getForUser(string $userId): array {
69
		$qb = $this->getGSSharesSelectSql();
70
71
		$shares = [];
72
		$cursor = $qb->execute();
73
		while ($data = $cursor->fetch()) {
74
			$shares[] = $this->parseGSSharesSelectSql($data);
75
		}
76
		$cursor->closeCursor();
77
78
		return $shares;
79
	}
80
81
}
82

lib/Db/MembersRequest.php 1 location

@@ 127-139 (lines=13) @@
124
	 *
125
	 * @return Member[]
126
	 */
127
	public function forceGetAllMembers() {
128
129
		$qb = $this->getMembersSelectSql();
130
131
		$members = [];
132
		$cursor = $qb->execute();
133
		while ($data = $cursor->fetch()) {
134
			$members[] = $this->parseMembersSelectSql($data);
135
		}
136
		$cursor->closeCursor();
137
138
		return $members;
139
	}
140
141
142
	/**