Code Duplication    Length = 11-11 lines in 2 locations

lib/Db/CirclesRequestBuilder.php 2 locations

@@ 222-232 (lines=11) @@
219
	 *
220
	 * @return string
221
	 */
222
	private function generateLimitPrivate(IQueryBuilder $qb, $type) {
223
		if (!(Circle::CIRCLES_PRIVATE & (int)$type)) {
224
			return null;
225
		}
226
227
		return $qb->expr()
228
				  ->eq(
229
					  'c.type',
230
					  $qb->createNamedParameter(Circle::CIRCLES_PRIVATE)
231
				  );
232
	}
233
234
235
	/**
@@ 241-251 (lines=11) @@
238
	 *
239
	 * @return string
240
	 */
241
	private function generateLimitPublic(IQueryBuilder $qb, $type) {
242
		if (!(Circle::CIRCLES_PUBLIC & (int)$type)) {
243
			return null;
244
		}
245
246
		return $qb->expr()
247
				  ->eq(
248
					  'c.type',
249
					  $qb->createNamedParameter(Circle::CIRCLES_PUBLIC)
250
				  );
251
	}
252
253
254
	/**