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/CirclesRequestBuilder.php 2 locations

@@ 350-356 (lines=7) @@
347
	 *
348
	 * @return IQueryBuilder
349
	 */
350
	protected function getSharesInsertSql() {
351
		$qb = $this->dbConnection->getQueryBuilder();
352
		$qb->insert(self::TABLE_SHARES)
353
		   ->setValue('creation', $qb->createFunction('NOW()'));
354
355
		return $qb;
356
	}
357
358
359
	/**
@@ 384-390 (lines=7) @@
381
	 *
382
	 * @return IQueryBuilder
383
	 */
384
	protected function getCirclesInsertSql() {
385
		$qb = $this->dbConnection->getQueryBuilder();
386
		$qb->insert(self::TABLE_CIRCLES)
387
		   ->setValue('creation', $qb->createFunction('NOW()'));
388
389
		return $qb;
390
	}
391
392
393
	/**

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
	/**
@@ 110-116 (lines=7) @@
107
	 *
108
	 * @return IQueryBuilder
109
	 */
110
	protected function getGroupsInsertSql() {
111
		$qb = $this->dbConnection->getQueryBuilder();
112
		$qb->insert(self::TABLE_GROUPS)
113
		   ->setValue('joined', $qb->createFunction('NOW()'));
114
115
		return $qb;
116
	}
117
118
119
	/**