original_string: public function create_answers($properties) {
          if (isset($properties->enableotheranswers) && $properties->enableotheranswers) {
              $properties->response_editor = array_values($properties->response_editor);
              $properties->jumpto = array_values($properties->jumpto);
              $properties->score = array_values($properties->score);
              $wrongresponse = end($properties->response_editor);
              $wrongkey = key($properties->response_editor);
              $properties->answer_editor[$wrongkey] = LESSON_OTHER_ANSWERS;
          }
          parent::create_answers($properties);
      }
code: public function create_answers($properties) {
          if (isset($properties->enableotheranswers) && $properties->enableotheranswers) {
              $properties->response_editor = array_values($properties->response_editor);
              $properties->jumpto = array_values($properties->jumpto);
              $properties->score = array_values($properties->score);
              $wrongresponse = end($properties->response_editor);
              $wrongkey = key($properties->response_editor);
              $properties->answer_editor[$wrongkey] = LESSON_OTHER_ANSWERS;
          }
          parent::create_answers($properties);
      }
code_tokens: public function create_answers ( $ properties ) { if ( isset ( $ properties -> enableotheranswers ) && $ properties -> enableotheranswers ) { $ properties -> response_editor = array_values ( $ properties -> response_editor ) ; $ properties -> jumpto = array_values ( $ properties -> jumpto ) ; $ properties -> score = array_values ( $ properties -> score ) ; $ wrongresponse = end ( $ properties -> response_editor ) ; $ wrongkey = key ( $ properties -> response_editor ) ; $ properties -> answer_editor [ $ wrongkey ] = LESSON_OTHER_ANSWERS ; } parent :: create_answers ( $ properties ) ; }
docstring: Creates answers for this page type.
  
  @param  object $properties The answer properties.
docstring_tokens: Creates answers for this page type .