Prechecker results: error


Overview

(0 errors, 0 warnings)

This section shows the general problems detected when processing the code [More info]


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

(243 errors, 205 warnings)

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

question/type/wq/bootstrap.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file bootstrap.php
question/type/wq/classes/MoodleConfiguration.class.php
(#21) Missing @copyright tag
(#21) Missing @license tag
(#21) Missing docblock for class MoodleConfiguration
(#23) Missing docblock for function get
question/type/wq/classes/accessprovider.class.php
(#21) Incorrect @package tag for file accessprovider.class.php. Expected qtype_wq, found qtype.
(#38) Missing docblock for class accessprovider
question/type/wq/classes/moodledbcache.php
(#21) Incorrect @package tag for file moodledbcache.php. Expected qtype_wq, found filter.
(#27) Missing docblock for class moodledbcache
(#29) Missing member variable doc comment
(#30) Missing member variable doc comment
(#31) Missing member variable doc comment
(#32) Missing member variable doc comment
(#50) Invalid docblock tag "@throw".
(#57) Invalid docblock tag "@throw".
(#76) Short array syntax must be used to define arrays
(#77) Short array syntax must be used to define arrays
(#90) Invalid docblock tag "@key".
(#101) Invalid docblock tag "@throw".
(#108) Short array syntax must be used to define arrays
(#111) Short array syntax must be used to define arrays
(#124) Short array syntax must be used to define arrays
question/type/wq/classes/moodledbjsoncache.php
(#21) Incorrect @package tag for file moodledbjsoncache.php. Expected qtype_wq, found filter.
(#27) Missing docblock for class moodledbjsoncache
(#29) Missing member variable doc comment
(#30) Missing member variable doc comment
(#31) Missing member variable doc comment
(#32) Missing member variable doc comment
(#49) Invalid docblock tag "@throw".
(#56) Invalid docblock tag "@throw".
(#78) Short array syntax must be used to define arrays
(#80) Short array syntax must be used to define arrays
(#120) Invalid docblock tag "@key".
(#131) Invalid docblock tag "@throw".
(#144) Short array syntax must be used to define arrays
(#150) Short array syntax must be used to define arrays
(#154) Short array syntax must be used to define arrays
(#171) Short array syntax must be used to define arrays
question/type/wq/classes/moodlefilecache.php
(#21) Incorrect @package tag for file moodlefilecache.php. Expected qtype_wq, found filter.
(#27) Missing docblock for class moodlefilecache
(#29) Missing member variable doc comment
(#30) Missing member variable doc comment
(#31) Missing member variable doc comment
(#47) Invalid docblock tag "@throw".
(#54) Invalid docblock tag "@throw".
(#82) Invalid docblock tag "@throw".
question/type/wq/classes/moodlelock.php
(#21) Incorrect @package tag for file moodlelock.php. Expected qtype_wq, found qtype.
(#27) Missing docblock for class moodlelock
(#29) Missing member variable doc comment
(#31) Missing docblock for function __construct
(#35) Missing docblock for function release
question/type/wq/classes/moodlelockprovider.class.php
(#21) Incorrect @package tag for file moodlelockprovider.class.php. Expected qtype_wq, found qtype.
(#33) Missing docblock for class moodlelockprovider
(#43) Invalid docblock tag "@throw".
question/type/wq/classes/moodlewqdbcache.class.php
(#21) Incorrect @package tag for file moodlewqdbcache.class.php. Expected qtype_wq, found qtype.
(#35) Missing docblock for class moodlewqdbcache
(#37) Missing member variable doc comment
(#39) Missing docblock for function __construct
(#43) Missing docblock for function get
(#47) Missing docblock for function set
(#51) Missing docblock for function delete
question/type/wq/classes/moodlewqfilecache.class.php
(#21) Incorrect @package tag for file moodlewqfilecache.class.php. Expected qtype_wq, found qtype.
(#34) Missing docblock for class moodlewqfilecache
(#36) Missing member variable doc comment
(#38) Missing docblock for function __construct
(#42) Missing docblock for function get
(#46) Missing docblock for function set
(#50) Missing docblock for function delete
question/type/wq/classes/privacy/provider.php
(#34) Missing docblock for class provider
(#89) There should be a comma after the last array item in a multi-line array.
(#146) There should be a comma after the last array item in a multi-line array.
(#244) Short array syntax must be used to define arrays
question/type/wq/config.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file config.php
question/type/wq/db/caches.php
(#20) Incorrect @package tag for file caches.php. Expected qtype_wq, found qtype.
(#28) Short array syntax must be used to define arrays
(#29) Short array syntax must be used to define arrays
(#30) There should be a comma after the last array item in a multi-line array.
(#31) There should be a comma after the last array item in a multi-line array.
question/type/wq/db/upgrade.php
(#1) Missing docblock for file upgrade.php
(#17) Missing docblock for function xmldb_qtype_wq_upgrade
(#53) Short array syntax must be used to define arrays
(#70) Short array syntax must be used to define arrays
(#89) Short array syntax must be used to define arrays
(#103) Missing docblock for function get_entities_table
(#108) Short array syntax must be used to define arrays
question/type/wq/edit_wq_form.php
(#20) Missing @copyright tag
(#20) Missing @license tag
(#20) Missing docblock for class qtype_wq_edit_form
(#21) Missing member variable doc comment
(#23) Missing docblock for function __construct
(#48) Missing docblock for function definition_inner
(#53) Short array syntax must be used to define arrays
(#55) Short array syntax must be used to define arrays
(#67) Short array syntax must be used to define arrays
(#94) Short array syntax must be used to define arrays
(#98) Missing docblock for function set_data
(#101) Missing docblock for function validation
(#104) Missing docblock for function data_preprocessing
(#107) Missing docblock for function qtype
question/type/wq/info.php
(#1) Missing docblock for file info.php
(#22) Missing docblock for function wrs_assert_simple
(#30) Missing docblock for function wrs_assert
(#43) Missing docblock for function wrs_getstatus
(#51) Missing docblock for function wrs_createtablerow
(#62) Short array syntax must be used to define arrays
(#70) Short array syntax must be used to define arrays
(#72) Short array syntax must be used to define arrays
(#73) Short array syntax must be used to define arrays
(#76) Short array syntax must be used to define arrays
(#79) Short array syntax must be used to define arrays
(#91) Short array syntax must be used to define arrays
(#117) Short array syntax must be used to define arrays
(#148) Short array syntax must be used to define arrays
(#172) Short array syntax must be used to define arrays
(#174) Short array syntax must be used to define arrays
(#175) Short array syntax must be used to define arrays
(#178) There should be a comma after the last array item in a multi-line array.
(#180) Short array syntax must be used to define arrays
(#183) There should be a comma after the last array item in a multi-line array.
(#185) Short array syntax must be used to define arrays
(#188) There should be a comma after the last array item in a multi-line array.
(#190) Short array syntax must be used to define arrays
(#193) There should be a comma after the last array item in a multi-line array.
(#195) Short array syntax must be used to define arrays
(#198) There should be a comma after the last array item in a multi-line array.
(#200) Short array syntax must be used to define arrays
(#203) There should be a comma after the last array item in a multi-line array.
(#205) Short array syntax must be used to define arrays
(#208) There should be a comma after the last array item in a multi-line array.
(#209) There should be a comma after the last array item in a multi-line array.
(#211) Short array syntax must be used to define arrays
(#212) Short array syntax must be used to define arrays
(#227) Short array syntax must be used to define arrays
(#238) Short array syntax must be used to define arrays
(#242) Short array syntax must be used to define arrays
(#259) Short array syntax must be used to define arrays
(#262) Short array syntax must be used to define arrays
(#263) There should be a comma after the last array item in a multi-line array.
(#290) Short array syntax must be used to define arrays
(#308) Short array syntax must be used to define arrays
(#329) Short array syntax must be used to define arrays
(#352) Short array syntax must be used to define arrays
(#371) Short array syntax must be used to define arrays
(#457) Short array syntax must be used to define arrays
(#468) Short array syntax must be used to define arrays
(#482) Short array syntax must be used to define arrays
(#532) Short array syntax must be used to define arrays
(#534) Short array syntax must be used to define arrays
question/type/wq/lang/ca/qtype_wq.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_wq.php
(#18) The string key "pluginname" is not in the correct order, it should be before "wq"
(#19) The string key "access_provider_enabled" is not in the correct order, it should be before "pluginname"
(#23) The string key "editingwq" is not in the correct order, it should be before "wq_help"
(#24) The string key "addingwq" is not in the correct order, it should be before "editingwq"
(#29) The string key "info_tableheader_report" is not in the correct order, it should be before "info_tableheader_test"
(#31) The string key "info_disabled" is not in the correct order, it should be before "info_tableheader_status"
(#33) The string key "info_enabled" is duplicated
(#39) The string key "info_test2_info" is not in the correct order, it should be before "info_test2_name"
(#67) The string key "info_test10_name" is not in the correct order, it should be before "info_test9_name"
(#74) The string key "cachedir" is not in the correct order, it should be before "proxyurl"
(#77) The string key "wirisquestionincorrect" is not in the correct order, it should be before "wqsummary"
(#79) The string key "failedtoloadwirisquizzesfromxml" is not in the correct order, it should be before "wirisquizzeserror"
(#80) The string key "connectionsettings" is not in the correct order, it should be before "failedtoloadwirisquizzesfromxml"
(#84) The string key "quizzeseditorurl" is not in the correct order, it should be before "quizzesserviceurl_help"
(#93) The string key "privacy:metadata:qtype_wq" is not in the correct order, it should be before "quizzeswirisurl_help"
(#97) The string key "auxiliar_text" is not in the correct order, it should be before "privacy:metadata:qtype_wq:xml"
(#100) The string key "corruptquestion_attempt" is not in the correct order, it should be before "corruptquestion_edit"
question/type/wq/lang/de/qtype_wq.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_wq.php
(#18) The string key "pluginname" is not in the correct order, it should be before "wq"
(#19) The string key "access_provider_enabled" is not in the correct order, it should be before "pluginname"
(#23) The string key "editingwq" is not in the correct order, it should be before "wq_help"
(#24) The string key "addingwq" is not in the correct order, it should be before "editingwq"
(#29) The string key "info_tableheader_report" is not in the correct order, it should be before "info_tableheader_test"
(#31) The string key "info_disabled" is not in the correct order, it should be before "info_tableheader_status"
(#33) The string key "info_enabled" is duplicated
(#39) The string key "info_test2_info" is not in the correct order, it should be before "info_test2_name"
(#67) The string key "info_test10_name" is not in the correct order, it should be before "info_test9_name"
(#74) The string key "cachedir" is not in the correct order, it should be before "proxyurl"
(#77) The string key "wirisquestionincorrect" is not in the correct order, it should be before "wqsummary"
(#79) The string key "failedtoloadwirisquizzesfromxml" is not in the correct order, it should be before "wirisquizzeserror"
(#80) The string key "connectionsettings" is not in the correct order, it should be before "failedtoloadwirisquizzesfromxml"
(#84) The string key "quizzeseditorurl" is not in the correct order, it should be before "quizzesserviceurl_help"
(#93) The string key "privacy:metadata:qtype_wq" is not in the correct order, it should be before "quizzeswirisurl_help"
(#97) The string key "auxiliar_text" is not in the correct order, it should be before "privacy:metadata:qtype_wq:xml"
question/type/wq/lang/el/qtype_wq.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_wq.php
(#18) The string key "pluginname" is not in the correct order, it should be before "wq"
(#19) The string key "access_provider_enabled" is not in the correct order, it should be before "pluginname"
(#23) The string key "editingwq" is not in the correct order, it should be before "wq_help"
(#24) The string key "addingwq" is not in the correct order, it should be before "editingwq"
(#29) The string key "info_tableheader_report" is not in the correct order, it should be before "info_tableheader_test"
(#31) The string key "info_disabled" is not in the correct order, it should be before "info_tableheader_status"
(#33) The string key "info_enabled" is duplicated
(#39) The string key "info_test2_info" is not in the correct order, it should be before "info_test2_name"
(#67) The string key "info_test10_name" is not in the correct order, it should be before "info_test9_name"
(#74) The string key "cachedir" is not in the correct order, it should be before "proxyurl"
(#77) The string key "wirisquestionincorrect" is not in the correct order, it should be before "wqsummary"
(#79) The string key "failedtoloadwirisquizzesfromxml" is not in the correct order, it should be before "wirisquizzeserror"
(#80) The string key "connectionsettings" is not in the correct order, it should be before "failedtoloadwirisquizzesfromxml"
(#84) The string key "quizzeseditorurl" is not in the correct order, it should be before "quizzesserviceurl_help"
(#93) The string key "privacy:metadata:qtype_wq" is not in the correct order, it should be before "quizzeswirisurl_help"
(#97) The string key "auxiliar_text" is not in the correct order, it should be before "privacy:metadata:qtype_wq:xml"
question/type/wq/lang/en/qtype_wq.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_wq.php
(#18) The string key "pluginname" is not in the correct order, it should be before "wq"
(#19) The string key "access_provider_enabled" is not in the correct order, it should be before "pluginname"
(#23) The string key "editingwq" is not in the correct order, it should be before "wq_help"
(#24) The string key "addingwq" is not in the correct order, it should be before "editingwq"
(#29) The string key "info_tableheader_report" is not in the correct order, it should be before "info_tableheader_test"
(#31) The string key "info_disabled" is not in the correct order, it should be before "info_tableheader_status"
(#33) The string key "info_enabled" is duplicated
(#39) The string key "info_test2_info" is not in the correct order, it should be before "info_test2_name"
(#67) The string key "info_test10_name" is not in the correct order, it should be before "info_test9_name"
(#74) The string key "cachedir" is not in the correct order, it should be before "proxyurl"
(#77) The string key "wirisquestionincorrect" is not in the correct order, it should be before "wqsummary"
(#79) The string key "failedtoloadwirisquizzesfromxml" is not in the correct order, it should be before "wirisquizzeserror"
(#80) The string key "connectionsettings" is not in the correct order, it should be before "failedtoloadwirisquizzesfromxml"
(#84) The string key "quizzeseditorurl" is not in the correct order, it should be before "quizzesserviceurl_help"
(#95) The string key "debug_mode_enabled" is not in the correct order, it should be before "troubleshooting_settings_text"
(#98) The string key "compatibility_settings" is not in the correct order, it should be before "debug_mode_enabled_help"
(#107) The string key "auxiliar_text" is not in the correct order, it should be before "privacy:metadata:qtype_wq:xml"
(#112) The string key "corruptquestion_edit" is not in the correct order, it should be before "log_server_errors_help"
(#113) The string key "corruptquestion_attempt" is not in the correct order, it should be before "corruptquestion_edit"
(#121) The string key "maxconnections_disabled" is not in the correct order, it should be before "quizzesgraphurl_help"
(#124) The string key "mathjax_compatibity" is not in the correct order, it should be before "maxconnections_disabled_help"
(#125) Unexpected string end, it should be a line feed after a semicolon
(#125) File must end with a newline character
question/type/wq/lang/es/qtype_wq.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_wq.php
(#18) The string key "pluginname" is not in the correct order, it should be before "wq"
(#19) The string key "access_provider_enabled" is not in the correct order, it should be before "pluginname"
(#23) The string key "editingwq" is not in the correct order, it should be before "wq_help"
(#24) The string key "addingwq" is not in the correct order, it should be before "editingwq"
(#29) The string key "info_tableheader_report" is not in the correct order, it should be before "info_tableheader_test"
(#31) The string key "info_disabled" is not in the correct order, it should be before "info_tableheader_status"
(#33) The string key "info_enabled" is duplicated
(#39) The string key "info_test2_info" is not in the correct order, it should be before "info_test2_name"
(#67) The string key "info_test10_name" is not in the correct order, it should be before "info_test9_name"
(#74) The string key "cachedir" is not in the correct order, it should be before "proxyurl"
(#77) The string key "wirisquestionincorrect" is not in the correct order, it should be before "wqsummary"
(#79) The string key "failedtoloadwirisquizzesfromxml" is not in the correct order, it should be before "wirisquizzeserror"
(#80) The string key "connectionsettings" is not in the correct order, it should be before "failedtoloadwirisquizzesfromxml"
(#84) The string key "quizzeseditorurl" is not in the correct order, it should be before "quizzesserviceurl_help"
(#93) The string key "privacy:metadata:qtype_wq" is not in the correct order, it should be before "quizzeswirisurl_help"
(#97) The string key "auxiliar_text" is not in the correct order, it should be before "privacy:metadata:qtype_wq:xml"
(#101) The string key "debug_mode_enabled" is not in the correct order, it should be before "troubleshooting_settings_text"
(#104) The string key "compatibility_settings" is not in the correct order, it should be before "debug_mode_enabled_help"
(#109) The string key "corruptquestion_edit" is not in the correct order, it should be before "filtercodes_compatibility_enabled_help"
(#110) The string key "corruptquestion_attempt" is not in the correct order, it should be before "corruptquestion_edit"
question/type/wq/lang/fr/qtype_wq.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_wq.php
(#18) The string key "pluginname" is not in the correct order, it should be before "wq"
(#19) The string key "access_provider_enabled" is not in the correct order, it should be before "pluginname"
(#23) The string key "editingwq" is not in the correct order, it should be before "wq_help"
(#24) The string key "addingwq" is not in the correct order, it should be before "editingwq"
(#29) The string key "info_tableheader_report" is not in the correct order, it should be before "info_tableheader_test"
(#31) The string key "info_disabled" is not in the correct order, it should be before "info_tableheader_status"
(#33) The string key "info_enabled" is duplicated
(#39) The string key "info_test2_info" is not in the correct order, it should be before "info_test2_name"
(#67) The string key "info_test10_name" is not in the correct order, it should be before "info_test9_name"
(#74) The string key "cachedir" is not in the correct order, it should be before "proxyurl"
(#77) The string key "wirisquestionincorrect" is not in the correct order, it should be before "wqsummary"
(#79) The string key "failedtoloadwirisquizzesfromxml" is not in the correct order, it should be before "wirisquizzeserror"
(#80) The string key "connectionsettings" is not in the correct order, it should be before "failedtoloadwirisquizzesfromxml"
(#84) The string key "quizzeseditorurl" is not in the correct order, it should be before "quizzesserviceurl_help"
(#93) The string key "privacy:metadata:qtype_wq" is not in the correct order, it should be before "quizzeswirisurl_help"
(#97) The string key "auxiliar_text" is not in the correct order, it should be before "privacy:metadata:qtype_wq:xml"
question/type/wq/lang/it/qtype_wq.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_wq.php
(#18) The string key "pluginname" is not in the correct order, it should be before "wq"
(#19) The string key "access_provider_enabled" is not in the correct order, it should be before "pluginname"
(#23) The string key "editingwq" is not in the correct order, it should be before "wq_help"
(#24) The string key "addingwq" is not in the correct order, it should be before "editingwq"
(#29) The string key "info_tableheader_report" is not in the correct order, it should be before "info_tableheader_test"
(#31) The string key "info_disabled" is not in the correct order, it should be before "info_tableheader_status"
(#33) The string key "info_enabled" is duplicated
(#39) The string key "info_test2_info" is not in the correct order, it should be before "info_test2_name"
(#67) The string key "info_test10_name" is not in the correct order, it should be before "info_test9_name"
(#74) The string key "cachedir" is not in the correct order, it should be before "proxyurl"
(#77) The string key "wirisquestionincorrect" is not in the correct order, it should be before "wqsummary"
(#79) The string key "failedtoloadwirisquizzesfromxml" is not in the correct order, it should be before "wirisquizzeserror"
(#80) The string key "connectionsettings" is not in the correct order, it should be before "failedtoloadwirisquizzesfromxml"
(#84) The string key "quizzeseditorurl" is not in the correct order, it should be before "quizzesserviceurl_help"
(#93) The string key "privacy:metadata:qtype_wq" is not in the correct order, it should be before "quizzeswirisurl_help"
(#97) The string key "auxiliar_text" is not in the correct order, it should be before "privacy:metadata:qtype_wq:xml"
question/type/wq/lib.php
(#1) Missing docblock for file lib.php
(#17) Missing docblock for function decode_html_entities
(#26) Missing docblock for function wrsqz_mathml_decode
(#29) Short array syntax must be used to define arrays
question/type/wq/question.php
(#20) Missing @copyright tag
(#20) Missing @license tag
(#20) Missing docblock for class qtype_wq_question
(#53) Missing docblock for function __construct
(#53) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $base.
(#137) Missing docblock for function get_question_summary
(#142) Missing docblock for function get_num_variants
(#150) Missing docblock for function get_min_fraction
(#154) Missing docblock for function get_max_fraction
(#158) Missing docblock for function clear_wrong_from_response
(#162) Missing docblock for function get_num_parts_right
(#166) Missing docblock for function get_expected_data
(#174) Missing docblock for function get_correct_response
(#178) Missing docblock for function prepare_simulated_post_data
(#182) Missing docblock for function format_text
(#187) Whitespace found at end of line
(#191) Missing docblock for function mathml_to_safe
(#192) Short array syntax must be used to define arrays
(#192) The use of backticks in strings is not recommended
(#193) Short array syntax must be used to define arrays
(#196) Whitespace found at end of line
(#197) Missing docblock for function expand_variables
(#220) Whitespace found at end of line
(#221) Whitespace found at end of line
(#227) Missing docblock for function filtercodes_compatibility
(#233) Missing docblock for function expand_variables_text
(#240) Missing docblock for function expand_variables_mathml
(#247) Missing docblock for function html_to_text
(#251) Missing docblock for function check_file_access
(#266) Missing docblock for function get_answers
(#276) Missing docblock for function is_same_response
(#286) Missing docblock for function summarise_response
(#292) Missing docblock for function classify_response
(#302) Missing docblock for function get_validation_error
(#306) Missing docblock for function grade_response
(#310) Missing docblock for function get_hint
(#314) Missing docblock for function get_right_answer_summary
(#318) Missing docblock for function format_hint
(#334) Missing docblock for function make_behaviour
(#346) No one-line description found in phpdocs for docblock of function join_all_text
(#360) No one-line description found in phpdocs for docblock of function join_question_text
(#377) Missing docblock for function call_wiris_service
(#441) Missing docblock for function update_attempt_state_data_for_new_version
(#448) Missing docblock for function validate_can_regrade_with_other_version
question/type/wq/questiontype.php
(#23) Missing @copyright tag
(#23) Missing @license tag
(#23) Missing docblock for class qtype_wq
(#25) Missing member variable doc comment
(#27) Missing docblock for function __construct
(#27) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $base.
(#31) Missing docblock for function create_editing_form
(#38) Missing docblock for function save_question_options
(#42) Missing docblock for function save_question_options_impl
(#46) Short array syntax must be used to define arrays
(#68) Missing docblock for function delete_question
(#72) Short array syntax must be used to define arrays
(#75) Missing docblock for function get_question_options
(#82) Short array syntax must be used to define arrays
(#94) Missing docblock for function make_question_instance
(#101) Missing docblock for function initialise_question_instance
(#148) Missing docblock for function menu_name
(#166) Missing docblock for function display_question_editing_page
(#173) Missing docblock for function export_to_xml
(#175) Short array syntax must be used to define arrays
(#184) Missing docblock for function extra_question_fields
(#188) Missing docblock for function response_file_areas
(#192) Short array syntax must be used to define arrays
(#195) Missing docblock for function wrsqz_mathml_decode
(#198) Short array syntax must be used to define arrays
(#203) Missing docblock for function wrsqz_adapttext
(#224) Missing docblock for function wrsqz_get_cas_for_computations
(#253) Missing docblock for function wrsqz_hidden_initial_cas_value
(#269) Missing docblock for function decode_html_entities
(#278) Missing docblock for function get_possible_responses
question/type/wq/renderer.php
(#1) Missing docblock for file renderer.php
(#20) Missing docblock for class qtype_wq_renderer
(#22) Missing member variable doc comment
(#24) Missing docblock for function __construct
(#24) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $base.
(#24) Declaring an optional parameter with a non-nullable type and a null default value before a required parameter is deprecated since PHP 8.4 Parameter $base is optional, while parameter $page is required. The $base parameter is implicitly treated as a required parameter.
(#29) Missing docblock for function formulation_and_controls
(#45) Short array syntax must be used to define arrays
(#54) Missing docblock for function specific_feedback
(#58) Missing docblock for function correct_response
(#62) Missing docblock for function add_javascript
(#66) Missing docblock for function question
(#72) Short array syntax must be used to define arrays
(#79) Missing docblock for function question_instance
(#96) Short array syntax must be used to define arrays
(#105) Missing docblock for function auxiliar_cas
(#106) Short array syntax must be used to define arrays
(#109) Missing docblock for function auxiliar_text
(#154) Missing docblock for function lang
(#155) Short array syntax must be used to define arrays
(#170) Missing docblock for function feedback_class
(#179) DocBlock missing a @package tag for class qtype_wq_auxiliar_text_renderer. Expected @package qtype_wq
(#180) Missing docblock for function class_name
question/type/wq/settings.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file settings.php
(#21) Short array syntax must be used to define arrays
question/type/wq/step.php
(#1) Missing docblock for file step.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#30) Missing docblock for class qtype_wirisstep
(#31) Missing docblock for constant qtype_wirisstep::MAX_ATTEMPS_SHORTANSWER_WIRIS
(#35) Missing member variable doc comment
(#36) Missing member variable doc comment
(#38) Missing docblock for function __construct
(#42) Missing docblock for function load
(#80) Docblock tag "@global" is not recommended.
(#103) Short array syntax must be used to define arrays
(#115) Short array syntax must be used to define arrays
(#120) Missing docblock for function set_var_in_answer_cache
(#127) Missing docblock for function get_var_in_answer_cache
(#139) Missing docblock for function put_answer_in_cache
(#150) Missing docblock for function is_answer_cached
(#157) Missing docblock for function trim_name
(#164) Missing docblock for function get_name_length
(#172) Missing docblock for function get_qt_data
(#180) Missing docblock for function get_var
(#197) Short array syntax must be used to define arrays
(#207) Missing docblock for function get_step_var_internal
(#225) Missing docblock for function get_db
(#313) Missing docblock for function is_first_step
(#322) Missing docblock for class question_attempt_step_subquestion_adapter_wiris
(#324) Missing docblock for function is_adapter_of_read_only
question/type/wq/tests/behat/behat_wq_base.php
(#19) Incorrect @package tag for file behat_wq_base.php. Expected qtype_wq, found question.
(#29) Missing docblock for class behat_wq_base
(#34) No one-line description found in phpdocs for docblock of function i_choose_the_question_type
(#35) Short array syntax must be used to define arrays
(#36) Short array syntax must be used to define arrays
(#111) No one-line description found in phpdocs for docblock of function i_add_the_variable_with_value
(#122) No one-line description found in phpdocs for docblock of function feedback_should_exist
(#133) No one-line description found in phpdocs for docblock of function generalfeedback_should_exist
question/type/wq/tests/privacy/provider_test.php
(#45) Unit test provider_test should be declared as final.
(#45) No one-line description found in phpdocs for docblock of class provider_test
(#56) The setUp() method in unit tests must always call to parent::setUp().
(#95) Test method test_get_metadata() is missing a return type
(#114) Test method test_get_contexts_for_userid() is missing a return type
(#125) Test method test_export_for_context() is missing a return type
(#160) Test method test_delete_data_for_all_users_in_context() is missing a return type
(#208) Test method test_delete_data_for_user_() is missing a return type
question/type/wq/version.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file version.php
(#24) Short array syntax must be used to define arrays
(#25) There should be a comma after the last array item in a multi-line array.

Javascript coding style problems

(52 errors, 29 warnings)

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

question/type/wq/js/display.js
(#2) 'moodleInputs' is assigned a value but never used. (no-unused-vars)
(#7) Identifier 'get_firstchild' is not in camel case. (camelcase)
(#8) 'x' is not defined. (no-undef)
(#9) 'x' is not defined. (no-undef)
(#10) 'x' is not defined. (no-undef)
(#10) 'x' is not defined. (no-undef)
(#12) 'x' is not defined. (no-undef)
(#15) Identifier 'get_nextsibling' is not in camel case. (camelcase)
(#16) 'x' is not defined. (no-undef)
(#17) 'x' is not defined. (no-undef)
(#18) 'x' is not defined. (no-undef)
(#18) 'x' is not defined. (no-undef)
(#20) 'x' is not defined. (no-undef)
(#32) 'i' is not defined. (no-undef)
(#32) 'i' is not defined. (no-undef)
(#32) 'i' is not defined. (no-undef)
(#33) 'i' is not defined. (no-undef)
(#34) 'i' is not defined. (no-undef)
(#40) 'i' is not defined. (no-undef)
(#40) 'i' is not defined. (no-undef)
(#40) 'i' is not defined. (no-undef)
(#41) 'i' is not defined. (no-undef)
(#48) 'i' is not defined. (no-undef)
(#48) 'i' is not defined. (no-undef)
(#48) 'i' is not defined. (no-undef)
(#49) 'i' is not defined. (no-undef)
(#56) Requires a space after '{'. (block-spacing)
(#56) Statement inside of curly braces should be on next line. (brace-style)
(#56) Requires a space before '}'. (block-spacing)
(#56) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#56) Comments should not begin with a lowercase character. (capitalized-comments)
(#62) Requires a space after '{'. (block-spacing)
(#62) Statement inside of curly braces should be on next line. (brace-style)
(#62) Requires a space before '}'. (block-spacing)
(#62) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#62) Comments should not begin with a lowercase character. (capitalized-comments)
(#67) 'i' is not defined. (no-undef)
(#67) 'i' is not defined. (no-undef)
(#67) 'i' is not defined. (no-undef)
(#69) 'i' is not defined. (no-undef)
(#69) 'i' is not defined. (no-undef)
(#70) 'i' is not defined. (no-undef)
(#70) 'i' is not defined. (no-undef)
(#71) 'i' is not defined. (no-undef)
(#71) 'i' is not defined. (no-undef)
(#72) 'i' is not defined. (no-undef)
(#73) 'i' is not defined. (no-undef)
(#75) Expected space(s) before "else". (keyword-spacing)
(#75) 'i' is not defined. (no-undef)
(#76) 'i' is not defined. (no-undef)
(#84) 'i' is not defined. (no-undef)
(#84) 'i' is not defined. (no-undef)
(#84) 'i' is not defined. (no-undef)
(#85) 'i' is not defined. (no-undef)
(#85) 'i' is not defined. (no-undef)
(#86) 'i' is not defined. (no-undef)
(#86) 'i' is not defined. (no-undef)
(#87) 'i' is not defined. (no-undef)
(#88) 'i' is not defined. (no-undef)
question/type/wq/yui/question_chooser/question_chooser.js
(#8) 'YUI' is not defined. (no-undef)
(#10) Identifier 'qtype_wq' is not in camel case. (camelcase)
(#12) Identifier 'question_chooser' is not in camel case. (camelcase)
(#27) Identifier 'move_wiris_questions' is not in camel case. (camelcase)
(#27) Identifier 'node_before' is not in camel case. (camelcase)
(#31) Expected space(s) after "if". (keyword-spacing)
(#32) Missing space before opening brace. (space-before-blocks)
(#33) Identifier 'node_before' is not in camel case. (camelcase)
(#34) Identifier 'node_before' is not in camel case. (camelcase)
(#44) Identifier 'wiris_section' is not in camel case. (camelcase)
(#46) 'label' is already defined. (no-redeclare)
(#47) Expected space(s) after "if". (keyword-spacing)
(#47) Missing space before opening brace. (space-before-blocks)
(#57) A space is required after ','. (comma-spacing)
(#62) Missing semicolon. (semi)
question/type/wq/yui/question_chooser_qbank/question_chooser_qbank.js
(#1) 'YUI' is not defined. (no-undef)
(#1) Unexpected space before function parentheses. (space-before-function-paren)
(#1) 'NAME' is defined but never used. (no-unused-vars)
(#4) Identifier 'qtype_wq' is not in camel case. (camelcase)
(#6) Identifier 'question_chooser' is not in camel case. (camelcase)
(#60) Trailing spaces not allowed. (no-trailing-spaces)
(#61) Trailing spaces not allowed. (no-trailing-spaces)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(24 errors, 0 warnings)

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

question/type/wq/classes/moodledbcache.php
(#49) Phpdocs for function moodledbcache::delete has incomplete parameters list
(#68) Phpdocs for function moodledbcache::get has incomplete parameters list
(#88) Phpdocs for function moodledbcache::parse_key has incomplete parameters list
(#99) Phpdocs for function moodledbcache::set has incomplete parameters list
question/type/wq/classes/moodledbjsoncache.php
(#36) Phpdocs for function moodledbjsoncache::__construct has incomplete parameters list
(#48) Phpdocs for function moodledbjsoncache::delete has incomplete parameters list
(#67) Phpdocs for function moodledbjsoncache::get has incomplete parameters list
(#118) Phpdocs for function moodledbjsoncache::parse_key has incomplete parameters list
(#129) Phpdocs for function moodledbjsoncache::set has incomplete parameters list
question/type/wq/classes/moodlefilecache.php
(#46) Phpdocs for function moodlefilecache::delete has incomplete parameters list
(#67) Phpdocs for function moodlefilecache::get has incomplete parameters list
(#80) Phpdocs for function moodlefilecache::set has incomplete parameters list
question/type/wq/question.php
(#102) Phpdocs for function qtype_wq_question::apply_attempt_state has incomplete parameters list
(#212) Phpdocs for function qtype_wq_question::mathjax_compatibility has incomplete parameters list
(#260) Phpdocs for function qtype_wq_question::compare_response_with_answer has incomplete parameters list
(#269) Phpdocs for function qtype_wq_question::is_complete_response has incomplete parameters list
(#295) Phpdocs for function qtype_wq_question::is_gradable_response has incomplete parameters list
(#328) Phpdocs for function qtype_wq_question::compute_final_grade has incomplete parameters list
question/type/wq/renderer.php
(#184) Phpdocs for function qtype_wq_auxiliar_text_renderer::prepare_response has incomplete parameters list
question/type/wq/step.php
(#81) Phpdocs for function qtype_wirisstep::set_var has incomplete parameters list
(#261) Phpdocs for function qtype_wirisstep::inc_attempts has incomplete parameters list
question/type/wq/tests/behat/behat_wq_base.php
(#31) Phpdocs for function behat_wq_base::i_choose_the_question_type has incomplete parameters list
(#81) Phpdocs for function behat_wq_base::i_open_wiris_quizzes_studio_instance has incomplete parameters list
(#108) Phpdocs for function behat_wq_base::i_add_the_variable_with_value 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]


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]