Code Duplication    Length = 3-3 lines in 3 locations

main/exercise/exercise.class.php 3 locations

@@ 5573-5575 (lines=3) @@
5570
            $array[] = array('title' => get_lang("Description"), 'content' => $this->description);
5571
        }
5572
        */
5573
        if (!empty($start_date)) {
5574
            $array[] = array('title' => get_lang('StartDate'), 'content' => $start_date);
5575
        }
5576
5577
        if (!empty($duration)) {
5578
            $array[] = array('title' => get_lang('Duration'), 'content' => $duration);
@@ 5577-5579 (lines=3) @@
5574
            $array[] = array('title' => get_lang('StartDate'), 'content' => $start_date);
5575
        }
5576
5577
        if (!empty($duration)) {
5578
            $array[] = array('title' => get_lang('Duration'), 'content' => $duration);
5579
        }
5580
5581
        if (!empty($ip)) {
5582
            $array[] = array('title' => get_lang('IP'), 'content' => $ip);
@@ 5581-5583 (lines=3) @@
5578
            $array[] = array('title' => get_lang('Duration'), 'content' => $duration);
5579
        }
5580
5581
        if (!empty($ip)) {
5582
            $array[] = array('title' => get_lang('IP'), 'content' => $ip);
5583
        }
5584
        $html  = '<div class="question-result">';
5585
        $html .= Display::page_header(
5586
            Display::return_icon('test-quiz.png', get_lang('Result'),null, ICON_SIZE_MEDIUM).' '.$this->exercise.' : '.get_lang('Result')