Code Duplication    Length = 7-7 lines in 4 locations

lib/Db/FederatedLinksRequestBuilder.php 1 location

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

lib/Db/SharingFrameRequestBuilder.php 1 location

@@ 91-97 (lines=7) @@
88
	 *
89
	 * @return IQueryBuilder
90
	 */
91
	protected function getSharesInsertSql() {
92
		$qb = $this->dbConnection->getQueryBuilder();
93
		$qb->insert(self::TABLE_SHARES)
94
		   ->setValue('creation', $qb->createNamedParameter($this->timezoneService->getUTCDate()));
95
96
		return $qb;
97
	}
98
99
100
	/**

lib/Db/MembersRequestBuilder.php 1 location

@@ 67-73 (lines=7) @@
64
	 *
65
	 * @return IQueryBuilder
66
	 */
67
	protected function getMembersInsertSql() {
68
		$qb = $this->dbConnection->getQueryBuilder();
69
		$qb->insert(self::TABLE_MEMBERS)
70
		   ->setValue('joined', $qb->createNamedParameter($this->timezoneService->getUTCDate()));
71
72
		return $qb;
73
	}
74
75
76
	/**

lib/Db/CirclesRequestBuilder.php 1 location

@@ 309-315 (lines=7) @@
306
	 *
307
	 * @return IQueryBuilder
308
	 */
309
	protected function getCirclesInsertSql() {
310
		$qb = $this->dbConnection->getQueryBuilder();
311
		$qb->insert(self::TABLE_CIRCLES)
312
		   ->setValue('creation', $qb->createNamedParameter($this->timezoneService->getUTCDate()));
313
314
		return $qb;
315
	}
316
317
318
	/**