Code Duplication    Length = 14-14 lines in 2 locations

main/exercise/exercise.class.php 2 locations

@@ 6990-7003 (lines=14) @@
6987
                    if (!empty($questionDescription)) {
6988
                        $html .= Display::div($questionDescription, array('class' => 'question_description'));
6989
                    }
6990
                } else {
6991
                    $html .= '<div class="media">';
6992
                    $html .= '<div class="pull-left">';
6993
                    $html .= '<div class="media-object">';
6994
                    $html .= Display::div($current_item, array('class' => 'question_no_title'));
6995
                    $html .= '</div>';
6996
                    $html .= '</div>';
6997
                    $html .= '<div class="media-body">';
6998
                    if (!empty($questionDescription)) {
6999
                        $html .= Display::div($questionDescription, array('class' => 'question_description'));
7000
                    }
7001
                    $html .= '</div>';
7002
                    $html .= '</div>';
7003
                }
7004
            }
7005
7006
            if (in_array($answerType, array(FREE_ANSWER, ORAL_EXPRESSION)) && $freeze) {
@@ 7660-7673 (lines=14) @@
7657
                    $html .=  TestCategory::getCategoryNamesForQuestion($objQuestionTmp->id);
7658
                    $html .=  '<div class="question_title">'.$current_item.'. '.$questionName.'</div>';
7659
                    $html .=  $questionDescription;
7660
                } else {
7661
                    $html .= '<div class="media">';
7662
                    $html .= '<div class="pull-left">';
7663
                    $html .= '<div class="media-object">';
7664
                    $html .= Display::div($current_item.'. ', array('class' => 'question_no_title'));
7665
                    $html .= '</div>';
7666
                    $html .= '</div>';
7667
                    $html .= '<div class="media-body">';
7668
                    if (!empty($questionDescription)) {
7669
                        $html .= Display::div($questionDescription, array('class' => 'question_description'));
7670
                    }
7671
                    $html .= '</div>';
7672
                    $html .= '</div>';
7673
                }
7674
                //@todo I need to the get the feedback type
7675
                $html .=  '<input type="hidden" name="hidden_hotspot_id" value="'.$questionId.'" />';
7676
                $html .=  '<table class="exercise_questions">