Code Duplication    Length = 10-10 lines in 2 locations

lib/private/Repair/RemoveRootShares.php 1 location

@@ 112-121 (lines=10) @@
109
	 *
110
	 * @return int
111
	 */
112
	private function countUsers() {
113
		$allCount = $this->userManager->countUsers();
114
115
		$totalCount = 0;
116
		foreach ($allCount as $backend => $count) {
117
			$totalCount += $count;
118
		}
119
120
		return $totalCount;
121
	}
122
123
	/**
124
	 * Verify if this repair steps is required

lib/private/Repair/RepairUnmergedShares.php 1 location

@@ 343-352 (lines=10) @@
340
	 *
341
	 * @return int
342
	 */
343
	private function countUsers() {
344
		$allCount = $this->userManager->countUsers();
345
346
		$totalCount = 0;
347
		foreach ($allCount as $backend => $count) {
348
			$totalCount += $count;
349
		}
350
351
		return $totalCount;
352
	}
353
354
	public function run(IOutput $output) {
355
		$ocVersionFromBeforeUpdate = $this->config->getSystemValue('version', '0.0.0');