Code Duplication    Length = 9-9 lines in 2 locations

lib/private/Repair/RepairMismatchFileCachePath.php 2 locations

@@ 209-217 (lines=9) @@
206
		}
207
	}
208
209
	private function countResultsToProcessParentIdWrongPath($storageNumericId = null) {
210
		$qb = $this->connection->getQueryBuilder();
211
		$qb->select($qb->createFunction('COUNT(*)'));
212
		$this->addQueryConditionsParentIdWrongPath($qb, $storageNumericId);
213
		$results = $qb->execute();
214
		$count = $results->fetchColumn(0);
215
		$results->closeCursor();
216
		return $count;
217
	}
218
219
	private function countResultsToProcessNonExistingParentIdEntry($storageNumericId = null) {
220
		$qb = $this->connection->getQueryBuilder();
@@ 219-227 (lines=9) @@
216
		return $count;
217
	}
218
219
	private function countResultsToProcessNonExistingParentIdEntry($storageNumericId = null) {
220
		$qb = $this->connection->getQueryBuilder();
221
		$qb->select($qb->createFunction('COUNT(*)'));
222
		$this->addQueryConditionsNonExistingParentIdEntry($qb, $storageNumericId);
223
		$results = $qb->execute();
224
		$count = $results->fetchColumn(0);
225
		$results->closeCursor();
226
		return $count;
227
	}
228
229
	/**
230
	 * Outputs a report about storages with wrong path that need repairing in the file cache