Code Duplication    Length = 3-3 lines in 3 locations

main/exercice/exercise.class.php 3 locations

@@ 5487-5489 (lines=3) @@
5484
            $array[] = array('title' => get_lang("Description"), 'content' => $this->description);
5485
        }
5486
        */
5487
        if (!empty($start_date)) {
5488
            $array[] = array('title' => get_lang('StartDate'), 'content' => $start_date);
5489
        }
5490
5491
        if (!empty($duration)) {
5492
            $array[] = array('title' => get_lang('Duration'), 'content' => $duration);
@@ 5491-5493 (lines=3) @@
5488
            $array[] = array('title' => get_lang('StartDate'), 'content' => $start_date);
5489
        }
5490
5491
        if (!empty($duration)) {
5492
            $array[] = array('title' => get_lang('Duration'), 'content' => $duration);
5493
        }
5494
5495
        if (!empty($ip)) {
5496
            $array[] = array('title' => get_lang('IP'), 'content' => $ip);
@@ 5495-5497 (lines=3) @@
5492
            $array[] = array('title' => get_lang('Duration'), 'content' => $duration);
5493
        }
5494
5495
        if (!empty($ip)) {
5496
            $array[] = array('title' => get_lang('IP'), 'content' => $ip);
5497
        }
5498
        $html  = '<div class="question-result">';
5499
        $html .= Display::page_header(
5500
            Display::return_icon('test-quiz.png', get_lang('Result'),null, ICON_SIZE_MEDIUM).' '.$this->exercise.' : '.get_lang('Result')