diff --git a/lib/webdavlib.php b/lib/webdavlib.php index c1d1d311105da..96b445829434d 100644 --- a/lib/webdavlib.php +++ b/lib/webdavlib.php @@ -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); @@ -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. diff --git a/mod/quiz/report/responses/responses_options.php b/mod/quiz/report/responses/responses_options.php index 15c57e6994561..d43501d7cc8d5 100644 --- a/mod/quiz/report/responses/responses_options.php +++ b/mod/quiz/report/responses/responses_options.php @@ -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. */ diff --git a/question/classes/statistics/responses/analysis_for_subpart.php b/question/classes/statistics/responses/analysis_for_subpart.php index 3c2dfd69a927a..a0d34e7d163a8 100644 --- a/question/classes/statistics/responses/analysis_for_subpart.php +++ b/question/classes/statistics/responses/analysis_for_subpart.php @@ -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); } } } diff --git a/question/type/essay/renderer.php b/question/type/essay/renderer.php index 4ddc8bbb6b4dd..ae7eafc3b3ee5 100644 --- a/question/type/essay/renderer.php +++ b/question/type/essay/renderer.php @@ -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), @@ -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'); diff --git a/question/type/match/tests/question_test.php b/question/type/match/tests/question_test.php index b18bf69da6543..56e0209629b66 100644 --- a/question/type/match/tests/question_test.php +++ b/question/type/match/tests/question_test.php @@ -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)); diff --git a/question/type/numerical/lang/en/qtype_numerical.php b/question/type/numerical/lang/en/qtype_numerical.php index cc411fd71375d..7c58a6bc5655d 100644 --- a/question/type/numerical/lang/en/qtype_numerical.php +++ b/question/type/numerical/lang/en/qtype_numerical.php @@ -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.'; diff --git a/question/type/questiontypebase.php b/question/type/questiontypebase.php index a6c3a57a51434..73fd706e3ef40 100644 --- a/question/type/questiontypebase.php +++ b/question/type/questiontypebase.php @@ -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() { diff --git a/question/type/rendererbase.php b/question/type/rendererbase.php index c2b7a9d4944d9..c8a8594845d0e 100644 --- a/question/type/rendererbase.php +++ b/question/type/rendererbase.php @@ -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. */ @@ -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. */ diff --git a/webservice/amf/locallib.php b/webservice/amf/locallib.php index cd0bd10dd4987..60640d70d35d9 100644 --- a/webservice/amf/locallib.php +++ b/webservice/amf/locallib.php @@ -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();