From 80fc30b7bd998f9f839f2e3408f83036e623242d Mon Sep 17 00:00:00 2001 From: "Eloy Lafuente (stronk7)" Date: Tue, 23 Aug 2011 22:52:16 +0200 Subject: [PATCH] MDL-28684 QE2 upgrade: whitespace fix --- question/engine/upgrade/upgradelib.php | 2 +- question/type/multichoice/db/upgradelib.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/question/engine/upgrade/upgradelib.php b/question/engine/upgrade/upgradelib.php index cfd9875852e..5ba8e1c93fa 100644 --- a/question/engine/upgrade/upgradelib.php +++ b/question/engine/upgrade/upgradelib.php @@ -571,7 +571,7 @@ abstract class question_qtype_attempt_updater { public function is_blank_answer($state) { return $state->answer == ''; } - + public abstract function right_answer(); public abstract function response_summary($state); public abstract function was_answered($state); diff --git a/question/type/multichoice/db/upgradelib.php b/question/type/multichoice/db/upgradelib.php index 99b5640f676..dd004a551ae 100644 --- a/question/type/multichoice/db/upgradelib.php +++ b/question/type/multichoice/db/upgradelib.php @@ -42,10 +42,10 @@ class qtype_multichoice_qe2_attempt_updater extends question_qtype_attempt_updat public function is_blank_answer($state) { // blank multichoice answers are not empty strings, they rather end in a colon $a = $state->answer; - $empty = (substr($a, strlen($a) - 1) == ':'); + $empty = (substr($a, strlen($a) - 1) == ':'); return $empty; } - + public function right_answer() { if ($this->question->options->single) { foreach ($this->question->options->answers as $ans) { -- 2.11.4.GIT