Code Duplication    Length = 3-3 lines in 3 locations

main/exercise/exercise.class.php 3 locations

@@ 5625-5627 (lines=3) @@
5622
            $array[] = array('title' => get_lang("Description"), 'content' => $this->description);
5623
        }
5624
        */
5625
        if (!empty($start_date)) {
5626
            $array[] = array('title' => get_lang('StartDate'), 'content' => $start_date);
5627
        }
5628
5629
        if (!empty($duration)) {
5630
            $array[] = array('title' => get_lang('Duration'), 'content' => $duration);
@@ 5629-5631 (lines=3) @@
5626
            $array[] = array('title' => get_lang('StartDate'), 'content' => $start_date);
5627
        }
5628
5629
        if (!empty($duration)) {
5630
            $array[] = array('title' => get_lang('Duration'), 'content' => $duration);
5631
        }
5632
5633
        if (!empty($ip)) {
5634
            $array[] = array('title' => get_lang('IP'), 'content' => $ip);
@@ 5633-5635 (lines=3) @@
5630
            $array[] = array('title' => get_lang('Duration'), 'content' => $duration);
5631
        }
5632
5633
        if (!empty($ip)) {
5634
            $array[] = array('title' => get_lang('IP'), 'content' => $ip);
5635
        }
5636
        $html  = '<div class="question-result">';
5637
        $html .= Display::page_header(
5638
            Display::return_icon('test-quiz.png', get_lang('Result'),null, ICON_SIZE_MEDIUM).' '.$this->exercise.' : '.get_lang('Result')