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

@@ 297-306 (lines=10) @@
294
	 *
295
	 * @return int
296
	 */
297
	private function countUsers() {
298
		$allCount = $this->userManager->countUsers();
299
300
		$totalCount = 0;
301
		foreach ($allCount as $backend => $count) {
302
			$totalCount += $count;
303
		}
304
305
		return $totalCount;
306
	}
307
308
	public function run(IOutput $output) {
309
		$ocVersionFromBeforeUpdate = $this->config->getSystemValue('version', '0.0.0');