Code Duplication    Length = 8-8 lines in 2 locations

lib/private/Settings/Manager.php 2 locations

@@ 254-261 (lines=8) @@
251
252
		$appSections = $this->getSections('admin');
253
254
		foreach ($appSections as $section) {
255
			/** @var ISection $section */
256
			if (!isset($sections[$section->getPriority()])) {
257
				$sections[$section->getPriority()] = [];
258
			}
259
260
			$sections[$section->getPriority()][] = $section;
261
		}
262
263
		ksort($sections);
264
@@ 372-379 (lines=8) @@
369
370
		$appSections = $this->getSections('personal');
371
372
		foreach ($appSections as $section) {
373
			/** @var ISection $section */
374
			if (!isset($sections[$section->getPriority()])) {
375
				$sections[$section->getPriority()] = [];
376
			}
377
378
			$sections[$section->getPriority()][] = $section;
379
		}
380
381
		ksort($sections);
382