Code Duplication    Length = 11-11 lines in 2 locations

src/config/LdmlConfigHandler.class.php 2 locations

@@ 91-101 (lines=11) @@
88
        foreach ($data['calendars'] as $calKey => &$calValue) {
89
            // skip the 'default' => '' key => value pair
90
            if (is_array($calValue)) {
91
                if (isset($calValue['days']['format'])) {
92
                    foreach ($calValue['days']['format'] as $formatKey => &$formatValue) {
93
                        if (is_array($formatValue)) {
94
                            $newData = array();
95
                            foreach ($formatValue as $day => $value) {
96
                                $newData[$dayMap[$day]] = $value;
97
                            }
98
                            $formatValue = $newData;
99
                        }
100
                    }
101
                }
102
103
                if (isset($calValue['days']['stand-alone'])) {
104
                    foreach ($calValue['days']['stand-alone'] as $formatKey => &$formatValue) {
@@ 103-113 (lines=11) @@
100
                    }
101
                }
102
103
                if (isset($calValue['days']['stand-alone'])) {
104
                    foreach ($calValue['days']['stand-alone'] as $formatKey => &$formatValue) {
105
                        if (is_array($formatValue)) {
106
                            $newData = array();
107
                            foreach ($formatValue as $day => $value) {
108
                                $newData[$dayMap[$day]] = $value;
109
                            }
110
                            $formatValue = $newData;
111
                        }
112
                    }
113
                }
114
            }
115
        }
116