Skip to content

Commit

Permalink
Add in comments related to issue #1363.
Browse files Browse the repository at this point in the history
  • Loading branch information
sangwinc committed Jan 16, 2025
1 parent 5a9f444 commit 4330011
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions question.php
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,11 @@ public function get_question_todos() {
return [$hastodos, $tags];
}

// phpcs:ignore moodle.Commenting.MissingDocblock.Function
/*
* The purpose of this function is to generate a human readable summary.
* This is used by moodle in the anslaysis scripts.
* For download and offline analysis use the JSON version.
*/
public function summarise_response(array $response) {
// Provide seed information on student's version via the normal moodle quiz report.
$bits = ['Seed: ' . $this->seed];
Expand Down Expand Up @@ -797,8 +801,9 @@ public function summarise_response(array $response) {
return implode('; ', $bits);
}

// Used in reporting - needs to return an array.
// phpcs:ignore moodle.Commenting.MissingDocblock.Function
/*
* Used in reporting - needs to return an array.
*/
public function summarise_response_data(array $response) {
$bits = [];
foreach ($this->inputs as $name => $input) {
Expand Down

0 comments on commit 4330011

Please sign in to comment.