Code Duplication    Length = 11-12 lines in 2 locations

main/exercise/exercise.class.php 1 location

@@ 4980-4990 (lines=11) @@
4977
                                        . (($final_missing < 0) ? 0 : intval($final_missing)) . '</div></td>
4978
                                </tr>
4979
                            </table>';
4980
                        if ($next == 0) {
4981
                            $try = $try_hotspot;
4982
                            $lp = $lp_hotspot;
4983
                            $destinationid = $select_question_hotspot;
4984
                            $url = $url_hotspot;
4985
                        } else {
4986
                            //show if no error
4987
                            //echo 'no error';
4988
                            $comment = $answerComment = $objAnswerTmp->selectComment($nbrAnswers);
4989
                            $answerDestination = $objAnswerTmp->selectDestination($nbrAnswers);
4990
                        }
4991
4992
                        echo '<h1><div style="color:#333;">' . get_lang('Feedback') . '</div></h1>
4993
                            <p style="text-align:center">';

main/exercise/exercise_show.php 1 location

@@ 553-564 (lines=12) @@
550
                    $destinationid = $item_list[2];
551
                    $url = $item_list[3];
552
                    $table_resume = '';
553
                } else {
554
                    if ($next == 0) {
555
                        $try = $try_hotspot;
556
                        $lp = $lp_hotspot;
557
                        $destinationid = $select_question_hotspot;
558
                        $url = $url_hotspot;
559
                    } else {
560
                        //show if no error
561
                        $comment = $answerComment = $objAnswerTmp->selectComment($nbrAnswers);
562
                        $answerDestination = $objAnswerTmp->selectDestination($nbrAnswers);
563
                    }
564
                }
565
566
                echo '<h1><div style="color:#333;">' . get_lang('Feedback') . '</div></h1>';
567
                if ($answerType == HOT_SPOT_DELINEATION) {