Code Duplication    Length = 6-7 lines in 2 locations

lib/private/Repair/NC13/RepairInvalidPaths.php 2 locations

@@ 129-135 (lines=7) @@
126
	}
127
128
	private function reparent($from, $to) {
129
		if (!$this->reparentQuery) {
130
			$builder = $this->connection->getQueryBuilder();
131
132
			$this->reparentQuery = $builder->update('filecache')
133
				->set('parent', $builder->createParameter('to'))
134
				->where($builder->expr()->eq('fileid', $builder->createParameter('from')));
135
		}
136
137
		$this->reparentQuery->setParameter('from', $from);
138
		$this->reparentQuery->setParameter('to', $to);
@@ 144-149 (lines=6) @@
141
	}
142
143
	private function delete($fileid) {
144
		if (!$this->deleteQuery) {
145
			$builder = $this->connection->getQueryBuilder();
146
147
			$this->deleteQuery = $builder->delete('filecache')
148
				->where($builder->expr()->eq('fileid', $builder->createParameter('fileid')));
149
		}
150
151
		$this->deleteQuery->setParameter('fileid', $fileid, IQueryBuilder::PARAM_INT);
152