Code Duplication    Length = 11-11 lines in 2 locations

lib/Db/CirclesRequestBuilder.php 2 locations

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