Code Duplication    Length = 11-11 lines in 2 locations

lib/Db/CirclesRequestBuilder.php 2 locations

@@ 202-212 (lines=11) @@
199
	 *
200
	 * @return string
201
	 */
202
	private function generateLimitPrivate(IQueryBuilder $qb, $type) {
203
		if (!(Circle::CIRCLES_PRIVATE & (int)$type)) {
204
			return null;
205
		}
206
207
		return $qb->expr()
208
				  ->eq(
209
					  'c.type',
210
					  $qb->createNamedParameter(Circle::CIRCLES_PRIVATE)
211
				  );
212
	}
213
214
215
	/**
@@ 221-231 (lines=11) @@
218
	 *
219
	 * @return string
220
	 */
221
	private function generateLimitPublic(IQueryBuilder $qb, $type) {
222
		if (!(Circle::CIRCLES_PUBLIC & (int)$type)) {
223
			return null;
224
		}
225
226
		return $qb->expr()
227
				  ->eq(
228
					  'c.type',
229
					  $qb->createNamedParameter(Circle::CIRCLES_PUBLIC)
230
				  );
231
	}
232
233
234
	/**