Prechecker results: error


PHP lint problems

(0 errors, 0 warnings)

This section shows php lint problems in the code detected by php -l [More info]


PHP coding style problems

(0 errors, 35 warnings)

This section shows the coding style problems detected in the code by phpcs [More info]

mod/quiz/report/answersheets/classes/event/attempt_created.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/quiz/report/answersheets/classes/event/attempt_printed.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/quiz/report/answersheets/classes/event/attempt_viewed.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/quiz/report/answersheets/classes/event/base_event.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/quiz/report/answersheets/classes/event/responses_submitted.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/quiz/report/answersheets/classes/event/right_answer_printed.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/quiz/report/answersheets/classes/event/right_answer_viewed.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/quiz/report/answersheets/classes/output/combined/renderer.php
(#65) This comment is 47% valid code; is this commented out code?
(#104) This comment is 52% valid code; is this commented out code?
(#197) This comment is 54% valid code; is this commented out code?
mod/quiz/report/answersheets/classes/output/match/renderer.php
(#101) This comment is 56% valid code; is this commented out code?
mod/quiz/report/answersheets/classes/output/multichoice/renderer.php
(#100) This comment is 48% valid code; is this commented out code?
mod/quiz/report/answersheets/classes/output/oumultiresponse/renderer.php
(#75) This comment is 59% valid code; is this commented out code?
(#105) This comment is 48% valid code; is this commented out code?
mod/quiz/report/answersheets/classes/output/randomsamatch/renderer.php
(#29) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/quiz/report/answersheets/classes/output/stack/renderer.php
(#109) This comment is 53% valid code; is this commented out code?
mod/quiz/report/answersheets/classes/output/truefalse/renderer.php
(#94) This comment is 57% valid code; is this commented out code?
(#140) This comment is 47% valid code; is this commented out code?
mod/quiz/report/answersheets/classes/privacy/provider.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/quiz/report/answersheets/classes/utils.php
(#41) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/quiz/report/answersheets/db/install.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/quiz/report/answersheets/lang/en/quiz_answersheets.php
(#42) The use of backticks in strings is not recommended
(#47) The use of backticks in strings is not recommended
(#49) The use of backticks in strings is not recommended
(#52) The use of backticks in strings is not recommended
(#53) The use of backticks in strings is not recommended
(#54) The use of backticks in strings is not recommended
(#57) The use of backticks in strings is not recommended
(#59) The use of backticks in strings is not recommended
(#60) The use of backticks in strings is not recommended
(#62) The use of backticks in strings is not recommended
mod/quiz/report/answersheets/tests/report_test.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#34) PHPUnit testcase name "quiz_answersheets_report_testcase" does not match file name "report_test"
(#34) PHPUnit class "quiz_answersheets_report_testcase" does not have any namespace. It is recommended to add it to the "quiz_answersheets" namespace, using more levels if needed, in order to match the code being tested
(#43) Test method test_get_question_instruction() is missing any coverage information, own or at class level

Javascript coding style problems

(0 errors, 0 warnings)

This section shows the coding style problems detected in the code by eslint [More info]


CSS problems

(0 errors, 0 warnings)

This section shows CSS problems detected by stylelint [More info]


PHPDocs style problems

(62 errors, 0 warnings)

This section shows the phpdocs problems detected in the code by local_moodlecheck [More info]

mod/quiz/report/answersheets/classes/event/attempt_created.php
(#46) Function attempt_created::get_name is not documented
(#50) Function attempt_created::get_description is not documented
(#56) Function attempt_created::get_url is not documented
mod/quiz/report/answersheets/classes/event/attempt_printed.php
(#38) Function attempt_printed::get_name is not documented
(#42) Function attempt_printed::get_description is not documented
(#48) Function attempt_printed::get_url is not documented
mod/quiz/report/answersheets/classes/event/attempt_viewed.php
(#38) Function attempt_viewed::get_name is not documented
(#42) Function attempt_viewed::get_description is not documented
(#48) Function attempt_viewed::get_url is not documented
mod/quiz/report/answersheets/classes/event/base_event.php
(#46) Function base_event::validate_data is not documented
(#61) Function base_event::get_objectid_mapping is not documented
mod/quiz/report/answersheets/classes/event/responses_submitted.php
(#38) Function responses_submitted::get_name is not documented
(#42) Function responses_submitted::get_description is not documented
(#48) Function responses_submitted::get_url is not documented
mod/quiz/report/answersheets/classes/event/right_answer_printed.php
(#38) Function right_answer_printed::get_name is not documented
(#42) Function right_answer_printed::get_description is not documented
(#48) Function right_answer_printed::get_url is not documented
mod/quiz/report/answersheets/classes/event/right_answer_viewed.php
(#38) Function right_answer_viewed::get_name is not documented
(#42) Function right_answer_viewed::get_description is not documented
(#48) Function right_answer_viewed::get_url is not documented
mod/quiz/report/answersheets/classes/external.php
(#32) Class quiz_answersheets_external is not documented
mod/quiz/report/answersheets/classes/output/combined/renderer.php
(#159) Package quiz_answersheets\output\combined is not valid
(#262) Package quiz_answersheets\output\combined is not valid
(#166) Phpdocs for function qtype_oumultiresponse_embedded_override_renderer::subquestion has incomplete parameters list
(#269) Phpdocs for function qtype_combined_gapselect_embedded_override_renderer::subquestion has incomplete parameters list
mod/quiz/report/answersheets/classes/output/gapselect/renderer.php
(#48) Phpdocs for function qtype_gapselect_override_renderer::embedded_element has incomplete parameters list
mod/quiz/report/answersheets/classes/output/pmatch/renderer.php
(#42) Function qtype_pmatch_override_renderer::question_tests_link is not documented
mod/quiz/report/answersheets/classes/output/recordrtc/renderer.php
(#44) Class qtype_recordrtc_override_renderer is not documented
(#46) Function qtype_recordrtc_override_renderer::no_recording_message is not documented
(#56) Function qtype_recordrtc_override_renderer::playback_ui is not documented
(#95) Function qtype_recordrtc_override_renderer::general_feedback is not documented
mod/quiz/report/answersheets/classes/output/renderer.php
(#299) Function core_question_override_renderer::formulation is not documented
(#324) Function core_question_override_renderer::status is not documented
(#381) Function core_question_override_renderer::question is not documented
(#185) Phpdocs for function renderer::render_attempt_sheet has incomplete parameters list
mod/quiz/report/answersheets/classes/output/stack/renderer.php
(#48) Function qtype_stack_override_renderer::question_tests_link is not documented
mod/quiz/report/answersheets/classes/report_display_options.php
(#59) Function report_display_options::__construct is not documented
(#66) Function report_display_options::resolve_dependencies is not documented
(#74) Function report_display_options::setup_from_params is not documented
(#84) Function report_display_options::get_url_params is not documented
(#91) Function report_display_options::process_settings_from_form is not documented
(#100) Function report_display_options::get_initial_form_data is not documented
(#111) Function report_display_options::setup_from_user_preferences is not documented
(#47) Variable report_display_options::$lastchanged is not documented
mod/quiz/report/answersheets/classes/report_settings_form.php
(#40) Function report_settings_form::other_preference_fields is not documented
mod/quiz/report/answersheets/classes/report_table.php
(#53) Function report_table::__construct is not documented
(#60) Function report_table::build_table is not documented
mod/quiz/report/answersheets/classes/utils.php
(#52) Constant utils::ATTEMPT_SHEET_CREATED is not documented
(#53) Constant utils::ATTEMPT_SHEET_PRINTED is not documented
(#54) Constant utils::ATTEMPT_SHEET_VIEWED is not documented
(#55) Constant utils::RIGHT_ANSWER_SHEET_PRINTED is not documented
(#56) Constant utils::RIGHT_ANSWER_SHEET_VIEWED is not documented
(#57) Constant utils::RESPONSES_SUBMITTED is not documented
(#58) Constant utils::EXAMPLE_TUTOR is not documented
(#59) Constant utils::EXAMPLE_STUDENT is not documented
(#331) Phpdocs for function utils::get_reflection_property has incomplete parameters list
(#348) Phpdocs for function utils::get_attempt_sheet_print_header has incomplete parameters list
mod/quiz/report/answersheets/processresponses.php
(#17) No one-line description found in phpdocs for file
mod/quiz/report/answersheets/report.php
(#43) Function quiz_answersheets_report::display is not documented
(#309) Phpdocs for function quiz_answersheets_report::generate_bulk_download_script has incomplete parameters list
(#482) Phpdocs for function quiz_answersheets_report::generate_attempt_folder_name has incomplete parameters list
mod/quiz/report/answersheets/tests/behat/behat_quiz_answersheets.php
(#100) Phpdocs for function behat_quiz_answersheets::check_question_type_installed has incomplete parameters list

Update savepoints problems

(0 errors, 0 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]


Third party library modification problems

(0 errors, 0 warnings)

This section shows problems detected with the modification of third party libraries [More info]


Missing changes in external functions or backup support for new detected tables or columns

(0 errors, 0 warnings)

This section shows potential problems detected when there are new database structures added in a patch and it is detected that nothing has been changed related with external functions (to be used by WS) or backup and restore. It must be checked that everything is correct and nothing is being missed in those areas. [More info]


grunt changes

(0 errors, 0 warnings)

This section shows files built by grunt and not commited [More info]


shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 0 warnings)

This section shows problems detected in mustache templates [More info]


Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]