mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-28684 QE2 upgrade: whitespace fix
This commit is contained in:
parent
a4a6279a61
commit
d12d4d59a6
2 changed files with 3 additions and 3 deletions
|
@ -571,7 +571,7 @@ abstract class question_qtype_attempt_updater {
|
||||||
public function is_blank_answer($state) {
|
public function is_blank_answer($state) {
|
||||||
return $state->answer == '';
|
return $state->answer == '';
|
||||||
}
|
}
|
||||||
|
|
||||||
public abstract function right_answer();
|
public abstract function right_answer();
|
||||||
public abstract function response_summary($state);
|
public abstract function response_summary($state);
|
||||||
public abstract function was_answered($state);
|
public abstract function was_answered($state);
|
||||||
|
|
|
@ -42,10 +42,10 @@ class qtype_multichoice_qe2_attempt_updater extends question_qtype_attempt_updat
|
||||||
public function is_blank_answer($state) {
|
public function is_blank_answer($state) {
|
||||||
// blank multichoice answers are not empty strings, they rather end in a colon
|
// blank multichoice answers are not empty strings, they rather end in a colon
|
||||||
$a = $state->answer;
|
$a = $state->answer;
|
||||||
$empty = (substr($a, strlen($a) - 1) == ':');
|
$empty = (substr($a, strlen($a) - 1) == ':');
|
||||||
return $empty;
|
return $empty;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function right_answer() {
|
public function right_answer() {
|
||||||
if ($this->question->options->single) {
|
if ($this->question->options->single) {
|
||||||
foreach ($this->question->options->answers as $ans) {
|
foreach ($this->question->options->answers as $ans) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue