Code Duplication    Length = 3-3 lines in 3 locations

main/exercise/exercise.class.php 3 locations

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