Skip to content

Commit

Permalink
comment type type hint
Browse files Browse the repository at this point in the history
  • Loading branch information
marcusgreen committed Aug 28, 2023
1 parent d629dc6 commit 789c9e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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']) {
Expand Down

0 comments on commit 789c9e5

Please sign in to comment.