]> git.mjollnir.org Git - moodle.git/commitdiff
Fix whitespace.
authortjhunt <tjhunt>
Fri, 4 Aug 2006 16:47:57 +0000 (16:47 +0000)
committertjhunt <tjhunt>
Fri, 4 Aug 2006 16:47:57 +0000 (16:47 +0000)
mod/quiz/attempt.php
question/type/match/questiontype.php

index 083d9269ea7ea4f75086ce276cc252d4a374cbac..6260229fe6cec137ce8ca65e488e91a5f12b42c9 100644 (file)
                 $action->responses = $closestates[$key]->responses;
                 $action->timestamp = $closestates[$key]->timestamp;
                 question_process_responses($question, $closestates[$key], $action, $quiz, $attempt);
-                            save_question_session($question, $closestates[$key]);
+                save_question_session($question, $closestates[$key]);
             }
         }
         add_to_log($course->id, 'quiz', 'close attempt',
index 3d1a48d3a247304babac482504c647311ffcf64c..e1ba2a76beedd7a556eba5085ffa1e1bd9a2b7d8 100644 (file)
@@ -111,9 +111,9 @@ class question_match_qtype extends default_questiontype {
 
     function create_session_and_responses(&$question, &$state, $cmoptions, $attempt) {
         if (!$state->options->subquestions = get_records('question_match_sub',
-         'question', $question->id)) {
-           notify('Error: Missing subquestions!');
-           return false;
+                'question', $question->id)) {
+            notify('Error: Missing subquestions!');
+            return false;
         }
 
         foreach ($state->options->subquestions as $key => $subquestion) {
@@ -126,7 +126,7 @@ class question_match_qtype extends default_questiontype {
             $answer->answer   = $subquestion->answertext;
             $answer->fraction = 1.0;
             $state->options->subquestions[$key]->options
-             ->answers[$subquestion->code] = clone($answer);
+                    ->answers[$subquestion->code] = clone($answer);
 
             $state->responses[$key] = '';
         }