Code Duplication    Length = 11-12 lines in 2 locations

main/exercice/exercise_show.php 1 location

@@ 638-649 (lines=12) @@
635
                $destinationid = $item_list[2];
636
                $url = $item_list[3];
637
                $table_resume='';
638
            } else {
639
                if ($next==0) {
640
                    $try = $try_hotspot;
641
                    $lp = $lp_hotspot;
642
                    $destinationid= $select_question_hotspot;
643
                    $url=$url_hotspot;
644
                } else {
645
                    //show if no error
646
                    $comment=$answerComment = $objAnswerTmp->selectComment($nbrAnswers);
647
                    $answerDestination = $objAnswerTmp->selectDestination($nbrAnswers);
648
                }
649
            }
650
651
            echo '<h1><div style="color:#333;">'.get_lang('Feedback').'</div></h1>';
652
            if ($answerType == HOT_SPOT_DELINEATION) {

main/exercice/exercise.class.php 1 location

@@ 4952-4962 (lines=11) @@
4949
                                        . (($final_missing < 0) ? 0 : intval($final_missing)) . '</div></td>
4950
                                </tr>
4951
                            </table>';
4952
                        if ($next == 0) {
4953
                            $try = $try_hotspot;
4954
                            $lp = $lp_hotspot;
4955
                            $destinationid = $select_question_hotspot;
4956
                            $url = $url_hotspot;
4957
                        } else {
4958
                            //show if no error
4959
                            //echo 'no error';
4960
                            $comment = $answerComment = $objAnswerTmp->selectComment($nbrAnswers);
4961
                            $answerDestination = $objAnswerTmp->selectDestination($nbrAnswers);
4962
                        }
4963
4964
                        echo '<h1><div style="color:#333;">' . get_lang('Feedback') . '</div></h1>
4965
                            <p style="text-align:center">';