From 789c9e59516e1693e99fc9260946504e0d10e0df Mon Sep 17 00:00:00 2001 From: Marcus Green Date: Mon, 28 Aug 2023 21:32:11 +0100 Subject: [PATCH] comment type type hint --- renderer.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/renderer.php b/renderer.php index 080f56d..623c542 100755 --- a/renderer.php +++ b/renderer.php @@ -167,6 +167,7 @@ public function app_connect(qtype_gapfill_question $question, string $questionte */ public function embedded_element(question_attempt $qa, $place, question_display_options $options, $markedgaps) { /* fraction is the mark associated with this field, always 1 or 0 for this question type */ + /** @var \qtype_gapfill_question $question */ $question = $qa->get_question(); $fieldname = $question->field($place); @@ -361,6 +362,7 @@ protected function get_itemsettings(string $rightanswer) { public function get_input_class(array $markedgaps, question_attempt $qa, $fraction, $fieldname) { $response = $qa->get_last_qt_data(); $question = $qa->get_question(); + $inputclass = $this->feedback_class($fraction); foreach ($markedgaps as $gap) { if ($response[$fieldname] == $gap['value']) {