Code Duplication    Length = 3-3 lines in 3 locations

main/exercice/exercise.class.php 3 locations

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