From f50451223bd100ffa53227e4e579a3c5294f92f3 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Tue, 5 Sep 2017 08:23:39 +0200 Subject: [PATCH] Minor - format code. --- main/exercise/exercise.class.php | 19 ++++++++++++++++--- main/inc/ajax/exercise.ajax.php | 28 +++++++++++++++++++--------- 2 files changed, 35 insertions(+), 12 deletions(-) diff --git a/main/exercise/exercise.class.php b/main/exercise/exercise.class.php index a479539b15..262975c9b4 100755 --- a/main/exercise/exercise.class.php +++ b/main/exercise/exercise.class.php @@ -6662,7 +6662,12 @@ class Exercise return $new_array; } - public function edit_question_to_remind($exe_id, $question_id, $action = 'add') + /** + * @param int $exe_id + * @param int $question_id + * @param string $action + */ + public function editQuestionToRemind($exe_id, $question_id, $action = 'add') { $exercise_info = self::get_stat_track_exercise_info_by_exe_id($exe_id); $question_id = intval($question_id); @@ -6714,6 +6719,10 @@ class Exercise } } + /** + * @param string $answer + * @return mixed + */ public function fill_in_blank_answer_to_array($answer) { api_preg_match_all('/\[[^]]+\]/', $answer, $teacher_answer_list); @@ -6743,6 +6752,9 @@ class Exercise return $result; } + /** + * @return string + */ public function return_time_left_div() { $html = '