Code Duplication    Length = 11-12 lines in 2 locations

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) {

main/exercise/exercise.class.php 1 location

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