Code Duplication    Length = 10-10 lines in 2 locations

lib/private/Settings/Manager.php 2 locations

@@ 408-417 (lines=10) @@
405
			->setParameter('section', $section);
406
407
		$result = $query->execute();
408
		while($row = $result->fetch()) {
409
			if(!isset($settings[$row['priority']])) {
410
				$settings[$row['priority']] = [];
411
			}
412
			try {
413
				$settings[$row['priority']][] = $this->query($row['class']);
414
			} catch (QueryException $e) {
415
				// skip
416
			}
417
		}
418
		$result->closeCursor();
419
420
		ksort($settings);
@@ 348-357 (lines=10) @@
345
		;
346
		$result = $query->execute();
347
348
		while($row = $result->fetch()) {
349
			if(!isset($sections[$row['priority']])) {
350
				$sections[$row['priority']] = [];
351
			}
352
			try {
353
				$sections[$row['priority']][] = $this->query($row['class']);
354
			} catch (QueryException $e) {
355
				// skip
356
			}
357
		}
358
		$result->closeCursor();
359
360
		ksort($sections);