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

(115 errors, 91 warnings)

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

question/type/multianswerwiris/backup/moodle1/lib.php
(#22) Missing @copyright tag
(#22) Missing @license tag
(#25) DocBlock missing a @package tag for class moodle1_qtype_multianswerwiris_handler. Expected @package qtype_multianswerwiris
(#30) No one-line description found in phpdocs for docblock of function get_question_subpaths
(#31) Short array syntax must be used to define arrays
(#35) There should be a comma after the last array item in a multi-line array.
(#60) Short array syntax must be used to define arrays
(#63) Missing docblock for function wrsqz_getcasforcomputations
(#92) Missing docblock for function wrsqz_hiddeninitialcasvalue
question/type/multianswerwiris/backup/moodle2/backup_qtype_multianswerwiris_plugin.class.php
(#1) DocBlock missing a @package tag for file backup_qtype_multianswerwiris_plugin.class.php. Expected @package qtype_multianswerwiris
(#17) Missing @copyright tag
(#17) Missing @license tag
(#21) Missing docblock for class backup_qtype_multianswerwiris_plugin
(#35) Short array syntax must be used to define arrays
(#35) Short array syntax must be used to define arrays
(#37) Short array syntax must be used to define arrays
question/type/multianswerwiris/backup/moodle2/restore_qtype_multianswerwiris_plugin.class.php
(#17) Missing @copyright tag
(#17) Missing @license tag
(#17) Missing docblock for class restore_qtype_multianswerwiris_plugin
(#23) Short array syntax must be used to define arrays
(#41) Missing docblock for function process_qtype_wq_multianswerwiris
(#65) Missing docblock for function after_execute_question
(#69) Missing docblock for function decode_html_entities
question/type/multianswerwiris/classes/privacy/provider.php
(#28) Missing docblock for class provider
question/type/multianswerwiris/edit_multianswerwiris_form.php
(#1) Missing docblock for file edit_multianswerwiris_form.php
(#23) Missing docblock for class qtype_multianswerwiris_edit_form
(#24) Missing docblock for function definition_inner
(#31) Short array syntax must be used to define arrays
(#45) Missing docblock for function qtype
(#50) Missing docblock for class qtype_multianswer_edit_form_helper
(#51) Missing docblock for function definition_inner
question/type/multianswerwiris/lang/ca/qtype_multianswerwiris.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_multianswerwiris.php
(#19) The string key "editingmultianswerwiris" is not in the correct order, it should be before "multianswerwiris_help"
(#20) The string key "addingmultianswerwiris" is not in the correct order, it should be before "editingmultianswerwiris"
(#22) The string key "multianswerwiris_algorithm" is not in the correct order, it should be before "multianswerwirissummary"
(#25) Unexpected comment found. Auto-fixing will not work after this comment
(#29) The string key "pluginnameadding" is not in the correct order, it should be before "pluginnamesummary"
(#31) The string key "contentnotviewable" is not in the correct order, it should be before "pluginnameediting"
question/type/multianswerwiris/lang/de/qtype_multianswerwiris.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_multianswerwiris.php
(#19) The string key "editingmultianswerwiris" is not in the correct order, it should be before "multianswerwiris_help"
(#20) The string key "addingmultianswerwiris" is not in the correct order, it should be before "editingmultianswerwiris"
(#22) The string key "multianswerwiris_algorithm" is not in the correct order, it should be before "multianswerwirissummary"
(#25) Unexpected comment found. Auto-fixing will not work after this comment
(#29) The string key "pluginnameadding" is not in the correct order, it should be before "pluginnamesummary"
(#31) The string key "contentnotviewable" is not in the correct order, it should be before "pluginnameediting"
question/type/multianswerwiris/lang/el/qtype_multianswerwiris.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_multianswerwiris.php
(#19) The string key "editingmultianswerwiris" is not in the correct order, it should be before "multianswerwiris_help"
(#20) The string key "addingmultianswerwiris" is not in the correct order, it should be before "editingmultianswerwiris"
(#22) The string key "multianswerwiris_algorithm" is not in the correct order, it should be before "multianswerwirissummary"
(#25) Unexpected comment found. Auto-fixing will not work after this comment
(#29) The string key "pluginnameadding" is not in the correct order, it should be before "pluginnamesummary"
(#31) The string key "contentnotviewable" is not in the correct order, it should be before "pluginnameediting"
question/type/multianswerwiris/lang/en/qtype_multianswerwiris.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_multianswerwiris.php
(#19) The string key "editingmultianswerwiris" is not in the correct order, it should be before "multianswerwiris_help"
(#20) The string key "addingmultianswerwiris" is not in the correct order, it should be before "editingmultianswerwiris"
(#22) The string key "multianswerwiris_algorithm" is not in the correct order, it should be before "multianswerwirissummary"
(#25) Unexpected comment found. Auto-fixing will not work after this comment
(#29) The string key "pluginnameadding" is not in the correct order, it should be before "pluginnamesummary"
(#31) The string key "contentnotviewable" is not in the correct order, it should be before "pluginnameediting"
question/type/multianswerwiris/lang/es/qtype_multianswerwiris.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_multianswerwiris.php
(#19) The string key "editingmultianswerwiris" is not in the correct order, it should be before "multianswerwiris_help"
(#20) The string key "addingmultianswerwiris" is not in the correct order, it should be before "editingmultianswerwiris"
(#22) The string key "multianswerwiris_algorithm" is not in the correct order, it should be before "multianswerwirissummary"
(#25) Unexpected comment found. Auto-fixing will not work after this comment
(#29) The string key "pluginnameadding" is not in the correct order, it should be before "pluginnamesummary"
(#31) The string key "contentnotviewable" is not in the correct order, it should be before "pluginnameediting"
question/type/multianswerwiris/lang/fr/qtype_multianswerwiris.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_multianswerwiris.php
(#19) The string key "editingmultianswerwiris" is not in the correct order, it should be before "multianswerwiris_help"
(#20) The string key "addingmultianswerwiris" is not in the correct order, it should be before "editingmultianswerwiris"
(#22) The string key "multianswerwiris_algorithm" is not in the correct order, it should be before "multianswerwirissummary"
(#25) Unexpected comment found. Auto-fixing will not work after this comment
(#29) The string key "pluginnameadding" is not in the correct order, it should be before "pluginnamesummary"
(#31) The string key "contentnotviewable" is not in the correct order, it should be before "pluginnameediting"
question/type/multianswerwiris/lang/it/qtype_multianswerwiris.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_multianswerwiris.php
(#19) The string key "editingmultianswerwiris" is not in the correct order, it should be before "multianswerwiris_help"
(#20) The string key "addingmultianswerwiris" is not in the correct order, it should be before "editingmultianswerwiris"
(#22) The string key "multianswerwiris_algorithm" is not in the correct order, it should be before "multianswerwirissummary"
(#25) Unexpected comment found. Auto-fixing will not work after this comment
(#29) The string key "pluginnameadding" is not in the correct order, it should be before "pluginnamesummary"
(#31) The string key "contentnotviewable" is not in the correct order, it should be before "pluginnameediting"
question/type/multianswerwiris/question.php
(#23) Missing @copyright tag
(#23) Missing @license tag
(#23) Missing docblock for class qtype_multianswerwiris_question
(#28) Missing @var tag in member variable comment
(#33) Missing @var tag in member variable comment
(#37) Missing @var tag in member variable comment
(#39) Missing member variable doc comment
(#40) Missing member variable doc comment
(#42) Missing docblock for function __construct
(#47) Missing docblock for function get_substep
(#53) Missing docblock for function load_step
(#62) Missing docblock for function set_wirisquestioninstance
(#70) Missing docblock for function start_attempt
(#76) Missing docblock for function apply_attempt_state
(#92) Missing docblock for function set_shortanswer_matching_answers
(#101) Short array syntax must be used to define arrays
(#128) Short array syntax must be used to define arrays
(#158) Short array syntax must be used to define arrays
(#159) Short array syntax must be used to define arrays
(#248) Missing docblock for function grade_response
(#252) Short array syntax must be used to define arrays
(#262) Missing docblock for function clear_wrong_from_response
(#277) Missing docblock for function get_question_summary
(#283) Short array syntax must be used to define arrays
(#306) Missing docblock for function get_num_parts_right
(#316) Missing docblock for function compute_final_grade
(#326) Missing docblock for function get_correct_response
(#335) Missing docblock for function join_all_text
(#350) No one-line description found in phpdocs for docblock of function join_question_text
(#376) Missing docblock for function get_renderer
(#384) Inline comments must start with a capital letter, digit or 3-dots sequence
(#384) Inline comments must end in full-stops, exclamation marks, or question marks
(#387) Inline comments must end in full-stops, exclamation marks, or question marks
(#393) Inline comments must start with a capital letter, digit or 3-dots sequence
(#393) Inline comments must end in full-stops, exclamation marks, or question marks
(#399) Missing docblock for function summarise_response
(#408) Missing docblock for function update_attempt_state_data_for_new_version
question/type/multianswerwiris/questiontype.php
(#22) Missing @copyright tag
(#22) Missing @license tag
(#22) Missing docblock for class qtype_multianswerwiris
(#24) Missing docblock for function __construct
(#28) Missing docblock for function save_question_options
(#45) Short array syntax must be used to define arrays
(#57) Short array syntax must be used to define arrays
(#69) Short array syntax must be used to define arrays
(#73) Short array syntax must be used to define arrays
(#77) Short array syntax must be used to define arrays
(#81) Short array syntax must be used to define arrays
(#83) Short array syntax must be used to define arrays
(#87) Short array syntax must be used to define arrays
(#126) Short array syntax must be used to define arrays
(#137) Missing docblock for function save_question
(#166) Missing docblock for function create_editing_form
(#173) Missing docblock for function initialise_question_instance
(#203) Missing docblock for function export_to_xml
(#220) Missing docblock for function import_from_xml
question/type/multianswerwiris/renderer.php
(#1) Missing docblock for file renderer.php
(#21) Missing docblock for class qtype_multianswerwiris_renderer
(#23) Missing docblock for function __construct
(#27) Missing docblock for class qtype_multianswerwiris_helper_renderer
(#28) Missing docblock for function subquestion
(#38) Line exceeds 132 characters; contains 141 characters
(#57) DocBlock missing a @package tag for class qtype_multianswerwiris_shortanswer_helper_question. Expected @package qtype_multianswerwiris
(#58) Missing member variable doc comment
(#60) Missing docblock for function __construct
(#75) Missing docblock for function get_matching_answer
(#110) Missing docblock for function get_correct_response
(#117) Missing docblock for function format_text
(#121) Missing docblock for function expand_variables_text
(#133) DocBlock missing a @package tag for class qtype_multianswerwiris_wirisanswerfield_renderer. Expected @package qtype_multianswerwiris
(#134) Missing docblock for function subquestion
(#146) Short array syntax must be used to define arrays
(#199) Short array syntax must be used to define arrays
(#226) Variable "useLegacyPopup" must be all lower-case
(#228) Variable "useLegacyPopup" must be all lower-case
(#255) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#257) Short array syntax must be used to define arrays
(#261) Short array syntax must be used to define arrays
(#265) Variable "useLegacyPopup" must be all lower-case
(#279) Missing docblock for function feedback_class
(#284) Missing docblock for class qtype_multianswerwiris_multichoice_inline_renderer
(#286) Missing member variable doc comment
(#288) Missing docblock for function subquestion
(#288) Line exceeds 132 characters; contains 135 characters
(#293) Missing docblock for function feedback_popup
(#293) Line exceeds 132 characters; contains 151 characters
(#295) Variable "useLegacyPopup" must be all lower-case
(#297) Variable "useLegacyPopup" must be all lower-case
(#302) Functions must not contain multiple empty lines in a row; found 2 empty lines
question/type/multianswerwiris/tests/helper.php
(#39) Missing docblock for function get_test_questions
(#40) Short array syntax must be used to define arrays
(#72) Short array syntax must be used to define arrays
(#73) There should be a comma after the last array item in a multi-line array.
(#88) Short array syntax must be used to define arrays
(#89) There should be a comma after the last array item in a multi-line array.
(#101) Short array syntax must be used to define arrays
(#109) Short array syntax must be used to define arrays
(#115) Short array syntax must be used to define arrays
(#176) Short array syntax must be used to define arrays
(#183) Short array syntax must be used to define arrays
(#187) Short array syntax must be used to define arrays
(#193) Missing docblock for function set_mc_options
(#218) Short array syntax must be used to define arrays
(#220) Short array syntax must be used to define arrays
(#222) Short array syntax must be used to define arrays
(#223) Short array syntax must be used to define arrays
(#224) Short array syntax must be used to define arrays
question/type/multianswerwiris/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

(0 errors, 0 warnings)

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


CSS problems

(1 errors, 0 warnings)

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

question/type/multianswerwiris/styles.css
(#29) Unexpected !important (declaration-no-important)

PHPDocs style problems

(1 errors, 0 warnings)

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

question/type/multianswerwiris/backup/moodle1/lib.php
(#39) Phpdocs for function moodle1_qtype_multianswerwiris_handler::process_question 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

(1 errors, 1 warnings)

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

Problems running grunt
Task "stylelint:css" failed. Use --force to continue.

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]