Code Duplication    Length = 5-5 lines in 2 locations

core/Profile.php 2 locations

@@ 693-697 (lines=5) @@
690
        foreach ($temp1 as $name) {
691
            if ($flags[$name] == 'ML') {
692
                $S = [];
693
                if (isset($temp[$name]['Profile'])) {
694
                    foreach ($temp[$name]['Profile'] as $z) {
695
                        foreach ($z as $l => $w) {
696
                            $S[$l] = $w;
697
                        }
698
                    }
699
                }
700
                if (!$S && isset($temp[$name]['IdP'])) {
@@ 700-704 (lines=5) @@
697
                        }
698
                    }
699
                }
700
                if (!$S && isset($temp[$name]['IdP'])) {
701
                    foreach ($temp[$name]['IdP'] as $z) {
702
                        foreach ($z as $l => $w) {
703
                            $S[$l] = $w;
704
                        }
705
                    }
706
                }
707
                $out[$name]['langs'] = $S;