Code Duplication    Length = 9-13 lines in 2 locations

main/inc/lib/exercise.lib.php 1 location

@@ 3546-3558 (lines=13) @@
3543
            }
3544
        }
3545
3546
        if ($show_results || $show_only_score) {
3547
            $user_info = api_get_user_info($exercise_stat_info['exe_user_id']);
3548
            //Shows exercise header
3549
            echo $objExercise->show_exercise_result_header(
3550
                $user_info,
3551
                api_convert_and_format_date(
3552
                    $exercise_stat_info['start_date'],
3553
                    DATE_TIME_FORMAT_LONG
3554
                ),
3555
                $exercise_stat_info['duration'],
3556
                $exercise_stat_info['user_ip']
3557
            );
3558
        }
3559
3560
        // Display text when test is finished #4074 and for LP #4227
3561
        $end_of_message = $objExercise->selectTextWhenFinished();

main/exercise/exercise.class.php 1 location

@@ 7880-7888 (lines=9) @@
7877
            $show_only_score = true;
7878
        }
7879
7880
        if ($show_results || $show_only_score) {
7881
            $user_info = api_get_user_info($exercise_stat_info['exe_user_id']);
7882
            // Shows exercise header.
7883
            echo $this->show_exercise_result_header(
7884
                $user_info['complete_name'],
7885
                api_convert_and_format_date($exercise_stat_info['start_date'], DATE_TIME_FORMAT_LONG),
7886
                $exercise_stat_info['duration']
7887
            );
7888
        }
7889
7890
        // Display text when test is finished #4074 and for LP #4227
7891
        $end_of_message = $this->selectTextWhenFinished();