Code Duplication    Length = 7-7 lines in 5 locations

lib/Db/CirclesRequestBuilder.php 2 locations

@@ 354-360 (lines=7) @@
351
	 *
352
	 * @return IQueryBuilder
353
	 */
354
	protected function getSharesInsertSql() {
355
		$qb = $this->dbConnection->getQueryBuilder();
356
		$qb->insert(self::TABLE_SHARES)
357
		   ->setValue('creation', $qb->createFunction('NOW()'));
358
359
		return $qb;
360
	}
361
362
363
	/**
@@ 388-394 (lines=7) @@
385
	 *
386
	 * @return IQueryBuilder
387
	 */
388
	protected function getCirclesInsertSql() {
389
		$qb = $this->dbConnection->getQueryBuilder();
390
		$qb->insert(self::TABLE_CIRCLES)
391
		   ->setValue('creation', $qb->createFunction('NOW()'));
392
393
		return $qb;
394
	}
395
396
397
	/**

lib/Db/FederatedLinksRequestBuilder.php 1 location

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

lib/Db/MembersRequestBuilder.php 2 locations

@@ 42-48 (lines=7) @@
39
	 *
40
	 * @return IQueryBuilder
41
	 */
42
	protected function getMembersInsertSql() {
43
		$qb = $this->dbConnection->getQueryBuilder();
44
		$qb->insert(self::TABLE_MEMBERS)
45
		   ->setValue('joined', $qb->createFunction('NOW()'));
46
47
		return $qb;
48
	}
49
50
51
	/**
@@ 87-93 (lines=7) @@
84
	 *
85
	 * @return IQueryBuilder
86
	 */
87
	protected function getGroupsInsertSql() {
88
		$qb = $this->dbConnection->getQueryBuilder();
89
		$qb->insert(self::TABLE_GROUPS)
90
		   ->setValue('joined', $qb->createFunction('NOW()'));
91
92
		return $qb;
93
	}
94
95
96
	/**