diff --git a/main/exercise/exercise_result.php b/main/exercise/exercise_result.php index 7a46b49a39..b874561623 100755 --- a/main/exercise/exercise_result.php +++ b/main/exercise/exercise_result.php @@ -10,9 +10,9 @@ use ChamiloSession as Session; * that exercise. * Then it shows the results on the screen. * - * @author Olivier Brouckaert, main author - * @author Roan Embrechts, some refactoring - * @author Julio Montoya switchable fill in blank option added + * @author Olivier Brouckaert, main author + * @author Roan Embrechts, some refactoring + * @author Julio Montoya switchable fill in blank option added * * @todo split more code up in functions, move functions to library? */ @@ -74,7 +74,9 @@ if (api_get_configuration_value('quiz_prevent_copy_paste')) { } if (!empty($objExercise->getResultAccess())) { - $htmlHeadXtra[] = api_get_css(api_get_path(WEB_LIBRARY_PATH).'javascript/epiclock/renderers/minute/epiclock.minute.css'); + $htmlHeadXtra[] = api_get_css( + api_get_path(WEB_LIBRARY_PATH).'javascript/epiclock/renderers/minute/epiclock.minute.css' + ); $htmlHeadXtra[] = api_get_js('epiclock/javascript/jquery.dateformat.min.js'); $htmlHeadXtra[] = api_get_js('epiclock/javascript/jquery.epiclock.min.js'); $htmlHeadXtra[] = api_get_js('epiclock/renderers/minute/epiclock.minute.js'); @@ -99,7 +101,8 @@ if (api_is_course_admin() && !in_array($origin, ['learnpath', 'embeddable'])) { $exercise_stat_info = $objExercise->get_stat_track_exercise_info_by_exe_id($exe_id); $learnpath_id = isset($exercise_stat_info['orig_lp_id']) ? $exercise_stat_info['orig_lp_id'] : 0; $learnpath_item_id = isset($exercise_stat_info['orig_lp_item_id']) ? $exercise_stat_info['orig_lp_item_id'] : 0; -$learnpath_item_view_id = isset($exercise_stat_info['orig_lp_item_view_id']) ? $exercise_stat_info['orig_lp_item_view_id'] : 0; +$learnpath_item_view_id = isset($exercise_stat_info['orig_lp_item_view_id']) + ? $exercise_stat_info['orig_lp_item_view_id'] : 0; $logInfo = [ 'tool' => TOOL_QUIZ, @@ -111,12 +114,12 @@ Event::registerLog($logInfo); if ($origin === 'learnpath') { ?> -