Code Duplication    Length = 6-6 lines in 2 locations

htdocs/modules/system/class/form/preferences.php 1 location

@@ 72-77 (lines=6) @@
69
            );
70
        }
71
72
        if (!in_array('default', array_keys($configCats))) {
73
            $configCats['default'] = array(
74
                'name'        => SystemLocale::OTHER_SETTINGS,
75
                'description' => ''
76
            );
77
        }
78
79
        foreach (array_keys($configNames) as $name) {
80
            if (!isset($configNames[$name]['category'])) {

htdocs/modules/userconfigs/class/form/configs.php 1 location

@@ 66-71 (lines=6) @@
63
                );
64
            }
65
66
            if (!in_array('default', array_keys($configCats))) {
67
                $configCats['default'] = array(
68
                    'name'        => _MD_USERCONFIGS_CONFIGS,
69
                    'description' => ''
70
                );
71
            }
72
73
            foreach (array_keys($configNames) as $name) {
74
                if (!isset($configNames[$name]['category'])) {