Code Duplication    Length = 7-7 lines in 5 locations

lib/Db/FederatedLinksRequestBuilder.php 1 location

@@ 62-68 (lines=7) @@
59
	 *
60
	 * @return IQueryBuilder
61
	 */
62
	protected function getLinksInsertSql() {
63
		$qb = $this->dbConnection->getQueryBuilder();
64
		$qb->insert(self::TABLE_LINKS)
65
		   ->setValue('creation', $qb->createFunction('NOW()'));
66
67
		return $qb;
68
	}
69
70
71
	/**

lib/Db/MembersRequestBuilder.php 2 locations

@@ 65-71 (lines=7) @@
62
	 *
63
	 * @return IQueryBuilder
64
	 */
65
	protected function getMembersInsertSql() {
66
		$qb = $this->dbConnection->getQueryBuilder();
67
		$qb->insert(self::TABLE_MEMBERS)
68
		   ->setValue('joined', $qb->createFunction('NOW()'));
69
70
		return $qb;
71
	}
72
73
74
	/**
@@ 112-118 (lines=7) @@
109
	 *
110
	 * @return IQueryBuilder
111
	 */
112
	protected function getGroupsInsertSql() {
113
		$qb = $this->dbConnection->getQueryBuilder();
114
		$qb->insert(self::TABLE_GROUPS)
115
		   ->setValue('joined', $qb->createFunction('NOW()'));
116
117
		return $qb;
118
	}
119
120
121
	/**

lib/Db/CirclesRequestBuilder.php 2 locations

@@ 381-387 (lines=7) @@
378
	 *
379
	 * @return IQueryBuilder
380
	 */
381
	protected function getSharesInsertSql() {
382
		$qb = $this->dbConnection->getQueryBuilder();
383
		$qb->insert(self::TABLE_SHARES)
384
		   ->setValue('creation', $qb->createFunction('NOW()'));
385
386
		return $qb;
387
	}
388
389
390
	/**
@@ 415-421 (lines=7) @@
412
	 *
413
	 * @return IQueryBuilder
414
	 */
415
	protected function getCirclesInsertSql() {
416
		$qb = $this->dbConnection->getQueryBuilder();
417
		$qb->insert(self::TABLE_CIRCLES)
418
		   ->setValue('creation', $qb->createFunction('NOW()'));
419
420
		return $qb;
421
	}
422
423
424
	/**