Code Duplication    Length = 11-14 lines in 2 locations

lib/Db/CirclesRequestBuilder.php 2 locations

@@ 306-316 (lines=11) @@
303
	 *
304
	 * @return IQueryBuilder
305
	 */
306
	protected function getLinksSelectSql() {
307
		$qb = $this->dbConnection->getQueryBuilder();
308
309
		/** @noinspection PhpMethodParametersCountMismatchInspection */
310
		$qb->select('id', 'status', 'address', 'token', 'circle_id', 'unique_id', 'creation')
311
		   ->from(self::TABLE_LINKS, 's');
312
313
		$this->default_select_alias = 's';
314
315
		return $qb;
316
	}
317
318
319
	/**
@@ 324-337 (lines=14) @@
321
	 *
322
	 * @return IQueryBuilder
323
	 */
324
	protected function getSharesSelectSql() {
325
		$qb = $this->dbConnection->getQueryBuilder();
326
327
		/** @noinspection PhpMethodParametersCountMismatchInspection */
328
		$qb->select(
329
			'circle_id', 'source', 'type', 'author', 'cloud_id', 'payload', 'creation', 'headers',
330
			'unique_id'
331
		)
332
		   ->from(self::TABLE_SHARES, 's');
333
334
		$this->default_select_alias = 's';
335
336
		return $qb;
337
	}
338
339
	/**
340
	 * Base of the Sql Insert request for Shares