Permalink
Browse files

MDL-28684 QE2 upgrade: whitespace fix

  • Loading branch information...
1 parent 251037c commit 80fc30b7bd998f9f839f2e3408f83036e623242d @stronk7 stronk7 committed Aug 23, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 question/engine/upgrade/upgradelib.php
  2. +2 −2 question/type/multichoice/db/upgradelib.php
@@ -571,7 +571,7 @@ public function compare_answers($answer1, $answer2) {
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);
@@ -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) {

0 comments on commit 80fc30b

Please sign in to comment.