Code Duplication    Length = 11-12 lines in 2 locations

lib/Db/CirclesMapper.php 2 locations

@@ 238-249 (lines=12) @@
235
	 *
236
	 * @return string
237
	 */
238
	private function generateTypeEntryForCirclePrivate(IQueryBuilder $qb, int $type) {
239
240
		if (Circle::CIRCLES_PRIVATE & (int)$type) {
241
			return $qb->expr()
242
					  ->eq(
243
						  'c.type',
244
						  $qb->createNamedParameter(Circle::CIRCLES_PRIVATE)
245
					  );
246
		}
247
248
		return null;
249
	}
250
251
252
	/**
@@ 258-268 (lines=11) @@
255
	 *
256
	 * @return string
257
	 */
258
	private function generateTypeEntryForCirclePublic(IQueryBuilder $qb, int $type) {
259
		if (Circle::CIRCLES_PUBLIC & (int)$type) {
260
			return $qb->expr()
261
					  ->eq(
262
						  'c.type',
263
						  $qb->createNamedParameter(Circle::CIRCLES_PUBLIC)
264
					  );
265
		}
266
267
		return null;
268
	}
269
270
	/**
271
	 * Returns details about a circle.