diff --git a/main/inc/lib/exercise.lib.php b/main/inc/lib/exercise.lib.php index d468bb04fa..938c11155b 100644 --- a/main/inc/lib/exercise.lib.php +++ b/main/inc/lib/exercise.lib.php @@ -3240,10 +3240,7 @@ EOT; $avg_score = 0; if (!empty($user_results)) { foreach ($user_results as $result) { - if (!empty($result['exe_weighting']) && intval( - $result['exe_weighting'] - ) != 0 - ) { + if (!empty($result['exe_weighting']) && intval($result['exe_weighting']) != 0) { $score = $result['exe_result'] / $result['exe_weighting']; $avg_score += $score; } @@ -3432,7 +3429,7 @@ EOT; * * @param int $question_id * @param int $exercise_id - * @return int + * @return array */ public static function getNumberStudentsFillBlanksAnswerCount( $question_id, @@ -3456,7 +3453,6 @@ EOT; ); $arrayCount = []; - foreach ($listFillTheBlankResult as $resultCount) { foreach ($resultCount as $index => $count) { //this is only for declare the array index per answer @@ -3912,41 +3908,6 @@ EOT; return $return; } - /** - * @param string $in_name is the name and the id of the - */ - public static function displayGroupMenu($in_name, $in_default, $in_onchange = "") - { - // check the default value of option - $tabSelected = [$in_default => " selected='selected' "]; - $res = ""; - $res .= ""; - return $res; - } - /** * @param int $exe_id */ @@ -4302,7 +4263,8 @@ EOT; } if ($show_all_but_expected_answer) { - $exercise_content .= "
".get_lang('ExerciseWithFeedbackWithoutCorrectionComment')."
"; + $exercise_content .= "
". + get_lang('ExerciseWithFeedbackWithoutCorrectionComment')."
"; } // Remove audio auto play from questions on results page - refs BT#7939