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/inc/lib/tracking.lib.php 1 location

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

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/work/work.lib.php 1 location

@@ 1427-1429 (lines=3) @@
1424
1425
        $count = getTotalWorkComment($workList, $courseInfo);
1426
1427
        if (!is_null($count) && !empty($count)) {
1428
            $work['feedback'] = ' '.Display::label($count.' '.get_lang('Feedback'), 'info');
1429
        }
1430
1431
        $lastWork = getLastWorkStudentFromParentByUser($userId, $work['id'], $courseInfo);
1432