Code Duplication    Length = 11-12 lines in 2 locations

main/exercice/exercise_show.php 1 location

@@ 585-596 (lines=12) @@
582
                $destinationid = $item_list[2];
583
                $url = $item_list[3];
584
                $table_resume='';
585
            } else {
586
                if ($next==0) {
587
                    $try = $try_hotspot;
588
                    $lp = $lp_hotspot;
589
                    $destinationid= $select_question_hotspot;
590
                    $url=$url_hotspot;
591
                } else {
592
                    //show if no error
593
                    $comment=$answerComment = $objAnswerTmp->selectComment($nbrAnswers);
594
                    $answerDestination = $objAnswerTmp->selectDestination($nbrAnswers);
595
                }
596
            }
597
598
            echo '<h1><div style="color:#333;">'.get_lang('Feedback').'</div></h1>';
599
            if ($answerType == HOT_SPOT_DELINEATION) {

main/exercice/exercise.class.php 1 location

@@ 4883-4893 (lines=11) @@
4880
                                        . (($final_missing < 0) ? 0 : intval($final_missing)) . '</div></td>
4881
                                </tr>
4882
                            </table>';
4883
                        if ($next == 0) {
4884
                            $try = $try_hotspot;
4885
                            $lp = $lp_hotspot;
4886
                            $destinationid = $select_question_hotspot;
4887
                            $url = $url_hotspot;
4888
                        } else {
4889
                            //show if no error
4890
                            //echo 'no error';
4891
                            $comment = $answerComment = $objAnswerTmp->selectComment($nbrAnswers);
4892
                            $answerDestination = $objAnswerTmp->selectDestination($nbrAnswers);
4893
                        }
4894
4895
                        echo '<h1><div style="color:#333;">' . get_lang('Feedback') . '</div></h1>
4896
                            <p style="text-align:center">';