Code Duplication    Length = 4-6 lines in 3 locations

view_calendar-month.php 1 location

@@ 118-123 (lines=6) @@
115
$weekdayNames = Calendar_Util_Textual::weekdayNames();
116
//$weekdayNames = array('Dimanche','Mardi','Mercresi','Jeudi','Vendredi','Samedi');
117
118
for ($i = 0; $i < $xoopsModuleConfig['week_start_day']; ++$i) {
119
    $weekdayName    = array_shift($weekdayNames);
120
    $weekdayNames[] = $weekdayName;
121
}
122
// Assigning weekdayNames to the template
123
$xoopsTpl->assign('weekdayNames', $weekdayNames);
124
125
// Retriving monthNames
126
$monthNames = Calendar_Util_Textual::monthNames();

view_calendar-week.php 1 location

@@ 127-130 (lines=4) @@
124
125
// Retriving weekdayNames
126
$weekdayNames = Calendar_Util_Textual::weekdayNames();
127
for ($i = 0; $i < $xoopsModuleConfig['week_start_day']; ++$i) {
128
    $weekdayName    = array_shift($weekdayNames);
129
    $weekdayNames[] = $weekdayName;
130
}
131
// Assigning weekdayNames to the template
132
$xoopsTpl->assign('weekdayNames', $weekdayNames);
133

blocks/minical.php 1 location

@@ 212-215 (lines=4) @@
209
    //     echo "<hr>L'identifiant de l'allemand sur ce système est '$loc_de'";
210
    //     echoArray($weekdayNames,true);
211
212
    for ($i = 0; $i < $extcalConfig['week_start_day']; ++$i) {
213
        $weekdayName    = array_shift($weekdayNames);
214
        $weekdayNames[] = $weekdayName;
215
    }
216
217
    // Making navig data
218
    $navig = array(