Skip to content

Commit

Permalink
MDL-42309 typo: fix reponse -> response throughout Moodle.
Browse files Browse the repository at this point in the history
  • Loading branch information
timhunt authored and marinaglancy committed Oct 15, 2013
1 parent 41a403c commit 562684e
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions lib/webdavlib.php
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ function options() {
*
* Creates a new collection/directory on a webdav server
* @param string path
* @return int status code received as reponse from webdav server (see rfc 2518)
* @return int status code received as response from webdav server (see rfc 2518)
*/
function mkcol($path) {
$this->_path = $this->translate_uri($path);
Expand Down Expand Up @@ -1444,7 +1444,7 @@ private function send_request() {
/**
* Private method get_respond
*
* Reads the reponse from the webdav server.
* Reads the response from the webdav server.
*
* Stores data into class vars _header for the header data and
* _body for the rest of the response.
Expand Down
2 changes: 1 addition & 1 deletion mod/quiz/report/responses/responses_options.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class quiz_responses_options extends mod_quiz_attempts_report_options {
/** @var bool whether to show the question text columns. */
public $showqtext = false;

/** @var bool whether to show the students' reponse columns. */
/** @var bool whether to show the students' response columns. */
public $showresponses = true;

/** @var bool whether to show the correct response columns. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class analysis_for_subpart {
*/
public function __construct(array $responseclasses = null) {
if (is_array($responseclasses)) {
foreach ($responseclasses as $responseclassid => $reponseclass) {
$this->responseclasses[$responseclassid] = new analysis_for_class($reponseclass, $responseclassid);
foreach ($responseclasses as $responseclassid => $responseclass) {
$this->responseclasses[$responseclassid] = new analysis_for_class($responseclass, $responseclassid);
}
}
}
Expand Down
4 changes: 2 additions & 2 deletions question/type/essay/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public function response_area_input($name, $qa, $step, $lines, $context) {
$formats[$fid] = $strformats[$fid];
}

list($draftitemid, $reponse) = $this->prepare_response_for_editing(
list($draftitemid, $response) = $this->prepare_response_for_editing(
$name, $step, $context);

$editor->use_editor($id, $this->get_editor_options($context),
Expand All @@ -221,7 +221,7 @@ public function response_area_input($name, $qa, $step, $lines, $context) {
$output .= html_writer::start_tag('div', array('class' =>
$this->class_name() . ' qtype_essay_response'));

$output .= html_writer::tag('div', html_writer::tag('textarea', s($reponse),
$output .= html_writer::tag('div', html_writer::tag('textarea', s($response),
array('id' => $id, 'name' => $inputname, 'rows' => $lines, 'cols' => 60)));

$output .= html_writer::start_tag('div');
Expand Down
4 changes: 2 additions & 2 deletions question/type/match/tests/question_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,9 @@ public function test_grading() {
$choiceorder = $question->get_choice_order();
$orderforchoice = array_combine(array_values($choiceorder), array_keys($choiceorder));

$correctreponse = $question->prepare_simulated_post_data(
$correctresponse = $question->prepare_simulated_post_data(
array(0 => 'Mammal', 1 => 'Amphibian', 2 => 'Amphibian', 3 => 'Mammal'));
$this->assertEquals(array(1, question_state::$gradedright), $question->grade_response($correctreponse));
$this->assertEquals(array(1, question_state::$gradedright), $question->grade_response($correctresponse));

$partialresponse = $question->prepare_simulated_post_data(array(0 => 'Mammal'));
$this->assertEquals(array(0.25, question_state::$gradedpartial), $question->grade_response($partialresponse));
Expand Down
2 changes: 1 addition & 1 deletion question/type/numerical/lang/en/qtype_numerical.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
If you add the unit kW with a multiplier of 0.001, this will add a correct response of 5.5 kW. This means that the answers 5500W or 5.5kW would be marked correct.
Note that the accepted error is also multiplied, so an allowed error of 100W would become an error of 0.1kW.';
$string['manynumerical'] = 'Units are optional. If a unit is entered, it is used to convert the reponse to Unit 1 before grading.';
$string['manynumerical'] = 'Units are optional. If a unit is entered, it is used to convert the response to Unit 1 before grading.';
$string['nominal'] = 'Nominal';
$string['onlynumerical'] = 'Units are not used at all. Only the numerical value is graded.';
$string['oneunitshown'] = 'Unit 1 is automatically displayed beside the answer box.';
Expand Down
2 changes: 1 addition & 1 deletion question/type/questiontypebase.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public function is_usable_by_random() {
* method, and the question_definition class must implement the
* classify_response method.
*
* @return bool whether this report can analyse all the student reponses
* @return bool whether this report can analyse all the student responses
* for things like the quiz statistics report.
*/
public function can_analyse_responses() {
Expand Down
4 changes: 2 additions & 2 deletions question/type/rendererbase.php
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ public function feedback(question_attempt $qa, question_display_options $options

/**
* Generate the specific feedback. This is feedback that varies according to
* the reponse the student gave.
* the response the student gave.
* @param question_attempt $qa the question attempt to display.
* @return string HTML fragment.
*/
Expand All @@ -158,7 +158,7 @@ protected function num_parts_correct(question_attempt $qa) {

/**
* Gereate the specific feedback. This is feedback that varies according to
* the reponse the student gave.
* the response the student gave.
* @param question_attempt $qa the question attempt to display.
* @return string HTML fragment.
*/
Expand Down
2 changes: 1 addition & 1 deletion webservice/amf/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ public function fault($fault = null, $code = 404)
// create a response object to place the output from the services.
$response = $this->getResponse();

// set reponse encoding
// set response encoding
$response->setObjectEncoding($objectEncoding);

$responseBody = $request->getAmfBodies();
Expand Down

0 comments on commit 562684e

Please sign in to comment.