Code Duplication    Length = 11-11 lines in 2 locations

lib/Db/CirclesRequestBuilder.php 2 locations

@@ 209-219 (lines=11) @@
206
	 *
207
	 * @return string
208
	 */
209
	private function generateLimitClosed(IQueryBuilder $qb, $type) {
210
		if (!(Circle::CIRCLES_CLOSED & (int)$type)) {
211
			return null;
212
		}
213
214
		return $qb->expr()
215
				  ->eq(
216
					  'c.type',
217
					  $qb->createNamedParameter(Circle::CIRCLES_CLOSED)
218
				  );
219
	}
220
221
222
	/**
@@ 228-238 (lines=11) @@
225
	 *
226
	 * @return string
227
	 */
228
	private function generateLimitPublic(IQueryBuilder $qb, $type) {
229
		if (!(Circle::CIRCLES_PUBLIC & (int)$type)) {
230
			return null;
231
		}
232
233
		return $qb->expr()
234
				  ->eq(
235
					  'c.type',
236
					  $qb->createNamedParameter(Circle::CIRCLES_PUBLIC)
237
				  );
238
	}
239
240
241
	/**