Code Duplication    Length = 3-3 lines in 3 locations

main/exercise/exercise.class.php 3 locations

@@ 5739-5741 (lines=3) @@
5736
            $array[] = array('title' => get_lang("Description"), 'content' => $this->description);
5737
        }
5738
        */
5739
        if (!empty($start_date)) {
5740
            $array[] = array('title' => get_lang('StartDate'), 'content' => $start_date);
5741
        }
5742
5743
        if (!empty($duration)) {
5744
            $array[] = array('title' => get_lang('Duration'), 'content' => $duration);
@@ 5743-5745 (lines=3) @@
5740
            $array[] = array('title' => get_lang('StartDate'), 'content' => $start_date);
5741
        }
5742
5743
        if (!empty($duration)) {
5744
            $array[] = array('title' => get_lang('Duration'), 'content' => $duration);
5745
        }
5746
5747
        if (!empty($ip)) {
5748
            $array[] = array('title' => get_lang('IP'), 'content' => $ip);
@@ 5747-5749 (lines=3) @@
5744
            $array[] = array('title' => get_lang('Duration'), 'content' => $duration);
5745
        }
5746
5747
        if (!empty($ip)) {
5748
            $array[] = array('title' => get_lang('IP'), 'content' => $ip);
5749
        }
5750
5751
        $icon = Display::return_icon('test-quiz.png', get_lang('Result'), null, ICON_SIZE_MEDIUM);
5752