Code Duplication    Length = 11-11 lines in 2 locations

lib/Db/CirclesRequestBuilder.php 2 locations

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