Code Duplication    Length = 9-13 lines in 2 locations

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

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

main/exercice/exercise.class.php 1 location

@@ 7808-7816 (lines=9) @@
7805
            $show_only_score = true;
7806
        }
7807
7808
        if ($show_results || $show_only_score) {
7809
            $user_info = api_get_user_info($exercise_stat_info['exe_user_id']);
7810
            // Shows exercise header.
7811
            echo $this->show_exercise_result_header(
7812
                $user_info['complete_name'],
7813
                api_convert_and_format_date($exercise_stat_info['start_date'], DATE_TIME_FORMAT_LONG),
7814
                $exercise_stat_info['duration']
7815
            );
7816
        }
7817
7818
        // Display text when test is finished #4074 and for LP #4227
7819
        $end_of_message = $this->selectTextWhenFinished();