Code Duplication    Length = 3-6 lines in 4 locations

main/attendance/attendance_calendar.php 1 location

@@ 33-37 (lines=5) @@
30
31
$message_information = get_lang('AttendanceCalendarDescription');
32
33
if (!empty($message_information)) {
34
    $message = '<strong>'.get_lang('Information').'</strong><br />';
35
    $message .= $message_information;
36
    Display::display_normal_message($message, false);
37
}
38
39
if (isset($error_repeat_date) && $error_repeat_date) {
40
    $message = get_lang('EndDateMustBeMoreThanStartDate');

main/attendance/attendance_sheet.php 1 location

@@ 118-122 (lines=5) @@
115
    }
116
117
    $message_information = get_lang('AttendanceSheetDescription');
118
    if (!empty($message_information)) {
119
        $message = '<strong>'.get_lang('Information').'</strong><br />';
120
        $message .= $message_information;
121
        Display::display_normal_message($message, false);
122
    }
123
124
    if ($is_locked_attendance) {
125
        Display::display_warning_message(get_lang('TheAttendanceSheetIsLocked'), false);

main/inc/lib/tracking.lib.php 1 location

@@ 314-319 (lines=6) @@
311
                    }
312
313
                    $extend_link = '';
314
                    if (!empty($inter_num)) {
315
                        $extend_link = Display::url(
316
                              Display::return_icon('visible.gif', get_lang('HideAttemptView')),
317
                              api_get_self() . '?action=stats&fold_id=' . $my_item_id . $url_suffix
318
                        );
319
                    }
320
                    $title = $row['mytitle'];
321
322
                    if (empty($title)) {

main/work/work.lib.php 1 location

@@ 1434-1436 (lines=3) @@
1431
1432
        $count = getTotalWorkComment($workList, $courseInfo);
1433
1434
        if (!is_null($count) && !empty($count)) {
1435
            $work['feedback'] = ' '.Display::label($count.' '.get_lang('Feedback'), 'info');
1436
        }
1437
1438
        $lastWork = getLastWorkStudentFromParentByUser($userId, $work['id'], $courseInfo);
1439