Code Duplication    Length = 11-14 lines in 2 locations

lib/Db/CirclesRequestBuilder.php 2 locations

@@ 316-326 (lines=11) @@
313
	 *
314
	 * @return IQueryBuilder
315
	 */
316
	protected function getLinksSelectSql() {
317
		$qb = $this->dbConnection->getQueryBuilder();
318
319
		/** @noinspection PhpMethodParametersCountMismatchInspection */
320
		$qb->select('id', 'status', 'address', 'token', 'circle_id', 'unique_id', 'creation')
321
		   ->from(self::TABLE_LINKS, 's');
322
323
		$this->default_select_alias = 's';
324
325
		return $qb;
326
	}
327
328
329
	/**
@@ 334-347 (lines=14) @@
331
	 *
332
	 * @return IQueryBuilder
333
	 */
334
	protected function getSharesSelectSql() {
335
		$qb = $this->dbConnection->getQueryBuilder();
336
337
		/** @noinspection PhpMethodParametersCountMismatchInspection */
338
		$qb->select(
339
			'circle_id', 'source', 'type', 'author', 'cloud_id', 'payload', 'creation', 'headers',
340
			'unique_id'
341
		)
342
		   ->from(self::TABLE_SHARES, 's');
343
344
		$this->default_select_alias = 's';
345
346
		return $qb;
347
	}
348
349
	/**
350
	 * Base of the Sql Insert request for Shares