mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-20636 Fix codechecker issues in the question behaviours.
This commit is contained in:
parent
9447399c11
commit
1631ceeaec
21 changed files with 147 additions and 86 deletions
|
@ -102,7 +102,8 @@ class qbehaviour_adaptive_renderer extends qbehaviour_renderer {
|
|||
// print info about new penalty
|
||||
// penalty is relevant only if the answer is not correct and further attempts are possible
|
||||
if (!$qa->get_state()->is_finished()) {
|
||||
$output .= ' ' . get_string('gradingdetailspenalty', 'qbehaviour_adaptive', $qa->get_question()->penalty);
|
||||
$output .= ' ' . get_string('gradingdetailspenalty', 'qbehaviour_adaptive',
|
||||
$qa->get_question()->penalty);
|
||||
}
|
||||
|
||||
return $output;
|
||||
|
|
|
@ -233,7 +233,6 @@ class qbehaviour_adaptive_walkthrough_test extends qbehaviour_walkthrough_test_b
|
|||
$this->get_contains_partcorrect_expectation(),
|
||||
$this->get_does_not_contain_validation_error_expectation());
|
||||
|
||||
|
||||
// Now submit blank again.
|
||||
$this->process_submission(array('-submit' => 1, 'answer' => ''));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue