Code Duplication    Length = 3-3 lines in 3 locations

main/exercice/exercise.class.php 3 locations

@@ 5418-5420 (lines=3) @@
5415
            $array[] = array('title' => get_lang("Description"), 'content' => $this->description);
5416
        }
5417
        */
5418
        if (!empty($start_date)) {
5419
            $array[] = array('title' => get_lang('StartDate'), 'content' => $start_date);
5420
        }
5421
5422
        if (!empty($duration)) {
5423
            $array[] = array('title' => get_lang('Duration'), 'content' => $duration);
@@ 5422-5424 (lines=3) @@
5419
            $array[] = array('title' => get_lang('StartDate'), 'content' => $start_date);
5420
        }
5421
5422
        if (!empty($duration)) {
5423
            $array[] = array('title' => get_lang('Duration'), 'content' => $duration);
5424
        }
5425
5426
        if (!empty($ip)) {
5427
            $array[] = array('title' => get_lang('IP'), 'content' => $ip);
@@ 5426-5428 (lines=3) @@
5423
            $array[] = array('title' => get_lang('Duration'), 'content' => $duration);
5424
        }
5425
5426
        if (!empty($ip)) {
5427
            $array[] = array('title' => get_lang('IP'), 'content' => $ip);
5428
        }
5429
        $html  = '<div class="question-result">';
5430
        $html .= Display::page_header(
5431
            Display::return_icon('test-quiz.png', get_lang('Result'),null, ICON_SIZE_MEDIUM).' '.$this->exercise.' : '.get_lang('Result')