Code Duplication    Length = 12-12 lines in 2 locations

lib/Command/FixUniqueId.php 1 location

@@ 111-122 (lines=12) @@
108
	}
109
110
111
	private function swapToShortenUniqueIdInTable($circleId, $shortenUniqueId, $table) {
112
113
		$qb = $this->connection->getQueryBuilder();
114
		$qb->update($table)
115
		   ->where(
116
			   $qb->expr()
117
				  ->eq('circle_id', $qb->createNamedParameter($circleId))
118
		   );
119
120
		$qb->set('circle_id', $qb->createNamedParameter($shortenUniqueId));
121
		$qb->execute();
122
	}
123
124
125
	private function swapToShortenUniqueIdInShares($circleId, $shortenUniqueId) {

lib/Migration/UsingShortenUniqueIdInsteadOfCircleId.php 1 location

@@ 118-129 (lines=12) @@
115
	}
116
117
118
	private function swapToShortenUniqueIdInTable($circleId, $shortenUniqueId, $table) {
119
120
		$qb = $this->connection->getQueryBuilder();
121
		$qb->update($table)
122
		   ->where(
123
			   $qb->expr()
124
				  ->eq('circle_id', $qb->createNamedParameter($circleId))
125
		   );
126
127
		$qb->set('circle_id', $qb->createNamedParameter($shortenUniqueId));
128
		$qb->execute();
129
	}
130
131
132
	private function swapToShortenUniqueIdInShares($circleId, $shortenUniqueId) {