Code Duplication    Length = 11-11 lines in 2 locations

lib/Db/CirclesRequestBuilder.php 2 locations

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