Code Duplication    Length = 5-6 lines in 2 locations

main/survey/survey.lib.php 2 locations

@@ 2774-2778 (lines=5) @@
2771
                } else {
2772
                    foreach ($possible_option as $option_id => & $value) {
2773
                        if ($questions[$question_id]['type'] == 'percentage') {
2774
                            if (!empty($answers_of_user[$question_id][$option_id])) {
2775
                                echo "<td align='center'>";
2776
                                echo $answers_of_user[$question_id][$option_id]['value'];
2777
                                echo "</td>";
2778
                            }
2779
                        }
2780
                        else {
2781
                            echo '<td align="center">';
@@ 2783-2788 (lines=6) @@
2780
                        else {
2781
                            echo '<td align="center">';
2782
                            if (!empty($answers_of_user[$question_id][$option_id])) {
2783
                                if ($answers_of_user[$question_id][$option_id]['value'] != 0) {
2784
                                    echo $answers_of_user[$question_id][$option_id]['value'];
2785
                                }
2786
                                else {
2787
                                    echo 'v';
2788
                                }
2789
                            }
2790
                        } // </hub>
2791
                    }