Code Duplication    Length = 3-6 lines in 2 locations

main/inc/lib/agenda.lib.php 2 locations

@@ 3483-3488 (lines=6) @@
3480
                TIME_NO_SEC_FORMAT
3481
            );
3482
            $end_time = '';
3483
            if (!empty($item['end_date'])) {
3484
                $end_time = ' - '.api_format_date(
3485
                        $item['end_date'],
3486
                        DATE_TIME_FORMAT_LONG
3487
                    );
3488
            }
3489
3490
            // if the student has specified a course we a add a link to that course
3491
            if ($item['course'] <> "") {
@@ 3782-3784 (lines=3) @@
3779
                            );
3780
                            $end_time = '';
3781
3782
                            if (!empty($value['end_date'])) {
3783
                                $end_time = '-&nbsp;<i>'.api_format_date(
3784
                                        $value['end_date'],
3785
                                        DATE_TIME_FORMAT_LONG
3786
                                    ).'</i>';
3787
                            }