Code Duplication    Length = 11-11 lines in 2 locations

lib/Db/CirclesRequestBuilder.php 2 locations

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