Code Duplication    Length = 3-3 lines in 3 locations

main/exercice/exercise.class.php 3 locations

@@ 5472-5474 (lines=3) @@
5469
            $array[] = array('title' => get_lang("Description"), 'content' => $this->description);
5470
        }
5471
        */
5472
        if (!empty($start_date)) {
5473
            $array[] = array('title' => get_lang('StartDate'), 'content' => $start_date);
5474
        }
5475
5476
        if (!empty($duration)) {
5477
            $array[] = array('title' => get_lang('Duration'), 'content' => $duration);
@@ 5476-5478 (lines=3) @@
5473
            $array[] = array('title' => get_lang('StartDate'), 'content' => $start_date);
5474
        }
5475
5476
        if (!empty($duration)) {
5477
            $array[] = array('title' => get_lang('Duration'), 'content' => $duration);
5478
        }
5479
5480
        if (!empty($ip)) {
5481
            $array[] = array('title' => get_lang('IP'), 'content' => $ip);
@@ 5480-5482 (lines=3) @@
5477
            $array[] = array('title' => get_lang('Duration'), 'content' => $duration);
5478
        }
5479
5480
        if (!empty($ip)) {
5481
            $array[] = array('title' => get_lang('IP'), 'content' => $ip);
5482
        }
5483
        $html  = '<div class="question-result">';
5484
        $html .= Display::page_header(
5485
            Display::return_icon('test-quiz.png', get_lang('Result'),null, ICON_SIZE_MEDIUM).' '.$this->exercise.' : '.get_lang('Result')