Code Duplication    Length = 11-11 lines in 2 locations

lib/Db/CirclesRequestBuilder.php 2 locations

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