Code Duplication    Length = 9-16 lines in 3 locations

main/exercice/calculated_answer.class.php 1 location

@@ 250-258 (lines=9) @@
247
     * @param null $score
248
     * @return null|string
249
     */
250
    function return_header($feedback_type = null, $counter = null, $score = null)
251
    {
252
        $header = parent::return_header($feedback_type, $counter, $score);
253
        $header .= '<table class="'.$this->question_table_class .'">
254
            <tr>
255
                <th>'.get_lang("Answer").'</th>
256
            </tr>';
257
        return $header;
258
    }
259
260
    /**
261
     * Returns true if the current question has been attempted to be answered

main/exercice/oral_expression.class.php 1 location

@@ 63-78 (lines=16) @@
60
     * @param null $score
61
     * @return null|string
62
     */
63
    function return_header($feedback_type = null, $counter = null, $score = null)
64
    {
65
        $header = parent::return_header($feedback_type, $counter, $score);
66
        $header .= '<table class="'.$this->question_table_class.'">
67
            <tr>
68
                <th>&nbsp;</th>
69
            </tr>
70
            <tr>
71
                <th>'.get_lang("Answer").'</th>
72
            </tr>
73
            <tr>
74
                <th>&nbsp;</th>
75
            </tr>';
76
77
        return $header;
78
    }
79
}
80

main/exercice/fill_blanks.class.php 1 location

@@ 417-426 (lines=10) @@
414
     * @param null $score
415
     * @return null|string
416
     */
417
    public function return_header($feedback_type = null, $counter = null, $score = null)
418
    {
419
        $header = parent::return_header($feedback_type, $counter, $score);
420
        $header .= '<table class="'.$this->question_table_class .'">
421
            <tr>
422
                <th>'.get_lang("Answer").'</th>
423
            </tr>';
424
425
        return $header;
426
    }
427
428
    /**
429
     * @param $separatorStartRegexp