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

(99 errors, 117 warnings)

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

question/type/shortanswerwiris/backup/moodle1/lib.php
(#23) Missing @copyright tag
(#23) Missing @license tag
(#23) Missing docblock for class moodle1_qtype_shortanswerwiris_handler
(#27) No one-line description found in phpdocs for docblock of function get_question_subpaths
(#28) Short array syntax must be used to define arrays
(#44) Short array syntax must be used to define arrays
(#85) Short array syntax must be used to define arrays
(#88) Missing docblock for function wrsqz_get_cas_for_computations
(#116) Missing docblock for function wrsqz_hidden_initial_cas_value
(#131) Missing docblock for function wrsqz_get_extra_parameters
(#135) Short array syntax must be used to define arrays
(#235) Missing docblock for function wrsqz_get_distribution
question/type/shortanswerwiris/backup/moodle2/backup_qtype_shortanswerwiris_plugin.class.php
(#17) Missing @copyright tag
(#17) Missing @license tag
(#17) Missing docblock for class backup_qtype_shortanswerwiris_plugin
(#19) Missing docblock for function define_question_plugin_structure
(#28) Short array syntax must be used to define arrays
(#28) Short array syntax must be used to define arrays
(#30) Short array syntax must be used to define arrays
question/type/shortanswerwiris/backup/moodle2/restore_qtype_shortanswerwiris_plugin.class.php
(#17) Missing @copyright tag
(#17) Missing @license tag
(#17) Missing docblock for class restore_qtype_shortanswerwiris_plugin
(#23) Short array syntax must be used to define arrays
(#43) Missing docblock for function process_qtype_wq_shortanswerwiris
(#78) Missing docblock for function decode_html_entities
(#87) Missing docblock for function process_shortanswerwiris
question/type/shortanswerwiris/classes/privacy/provider.php
(#28) Missing docblock for class provider
question/type/shortanswerwiris/edit_shortanswerwiris_form.php
(#1) Missing docblock for file edit_shortanswerwiris_form.php
(#22) Missing docblock for class qtype_shortanswerwiris_edit_form
(#24) Missing docblock for function definition_inner
(#68) Missing docblock for function qtype
(#73) Missing docblock for class qtype_shortanswerwiris_helper_edit_form
(#74) Missing docblock for function get_more_choices_string
(#77) Missing docblock for function add_per_answer_fields
question/type/shortanswerwiris/lang/ca/qtype_shortanswerwiris.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_shortanswerwiris.php
(#19) The string key "editingshortanswerwiris" is not in the correct order, it should be before "shortanswerwiris_help"
(#20) The string key "addingshortanswerwiris" is not in the correct order, it should be before "editingshortanswerwiris"
(#22) The string key "shortanswerwiris_addanswers" is not in the correct order, it should be before "shortanswerwirissummary"
(#24) The string key "shortanswerwiris_algorithm" is not in the correct order, it should be before "shortanswerwiris_answersinstruct"
(#26) The string key "filloutoneanswer" is not in the correct order, it should be before "shortanswerwiris_cantimportcompoundtest"
(#27) The string key "failedtogradetest" is not in the correct order, it should be before "filloutoneanswer"
(#29) Unexpected comment found. Auto-fixing will not work after this comment
(#33) The string key "pluginnameediting" is not in the correct order, it should be before "pluginnamesummary"
(#34) The string key "pluginnameadding" is not in the correct order, it should be before "pluginnameediting"
(#35) The string key "contentnotviewable" is not in the correct order, it should be before "pluginnameadding"
question/type/shortanswerwiris/lang/de/qtype_shortanswerwiris.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_shortanswerwiris.php
(#19) The string key "editingshortanswerwiris" is not in the correct order, it should be before "shortanswerwiris_help"
(#20) The string key "addingshortanswerwiris" is not in the correct order, it should be before "editingshortanswerwiris"
(#22) The string key "shortanswerwiris_addanswers" is not in the correct order, it should be before "shortanswerwirissummary"
(#24) The string key "shortanswerwiris_algorithm" is not in the correct order, it should be before "shortanswerwiris_answersinstruct"
(#26) The string key "filloutoneanswer" is not in the correct order, it should be before "shortanswerwiris_cantimportcompoundtest"
(#27) The string key "failedtogradetest" is not in the correct order, it should be before "filloutoneanswer"
(#29) Unexpected comment found. Auto-fixing will not work after this comment
(#33) The string key "pluginnameediting" is not in the correct order, it should be before "pluginnamesummary"
(#34) The string key "pluginnameadding" is not in the correct order, it should be before "pluginnameediting"
(#35) The string key "contentnotviewable" is not in the correct order, it should be before "pluginnameadding"
question/type/shortanswerwiris/lang/el/qtype_shortanswerwiris.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_shortanswerwiris.php
(#19) The string key "editingshortanswerwiris" is not in the correct order, it should be before "shortanswerwiris_help"
(#20) The string key "addingshortanswerwiris" is not in the correct order, it should be before "editingshortanswerwiris"
(#22) The string key "shortanswerwiris_addanswers" is not in the correct order, it should be before "shortanswerwirissummary"
(#24) The string key "shortanswerwiris_algorithm" is not in the correct order, it should be before "shortanswerwiris_answersinstruct"
(#26) The string key "filloutoneanswer" is not in the correct order, it should be before "shortanswerwiris_cantimportcompoundtest"
(#27) The string key "failedtogradetest" is not in the correct order, it should be before "filloutoneanswer"
(#29) Unexpected comment found. Auto-fixing will not work after this comment
(#33) The string key "pluginnameediting" is not in the correct order, it should be before "pluginnamesummary"
(#34) The string key "pluginnameadding" is not in the correct order, it should be before "pluginnameediting"
(#35) The string key "contentnotviewable" is not in the correct order, it should be before "pluginnameadding"
question/type/shortanswerwiris/lang/en/qtype_shortanswerwiris.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_shortanswerwiris.php
(#19) The string key "editingshortanswerwiris" is not in the correct order, it should be before "shortanswerwiris_help"
(#20) The string key "addingshortanswerwiris" is not in the correct order, it should be before "editingshortanswerwiris"
(#22) The string key "shortanswerwiris_addanswers" is not in the correct order, it should be before "shortanswerwirissummary"
(#24) The string key "shortanswerwiris_algorithm" is not in the correct order, it should be before "shortanswerwiris_answersinstruct"
(#26) The string key "filloutoneanswer" is not in the correct order, it should be before "shortanswerwiris_cantimportcompoundtest"
(#27) The string key "failedtogradetest" is not in the correct order, it should be before "filloutoneanswer"
(#29) Unexpected comment found. Auto-fixing will not work after this comment
(#33) The string key "pluginnameediting" is not in the correct order, it should be before "pluginnamesummary"
(#34) The string key "pluginnameadding" is not in the correct order, it should be before "pluginnameediting"
(#35) The string key "contentnotviewable" is not in the correct order, it should be before "pluginnameadding"
question/type/shortanswerwiris/lang/es/qtype_shortanswerwiris.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_shortanswerwiris.php
(#19) The string key "editingshortanswerwiris" is not in the correct order, it should be before "shortanswerwiris_help"
(#20) The string key "addingshortanswerwiris" is not in the correct order, it should be before "editingshortanswerwiris"
(#22) The string key "shortanswerwiris_addanswers" is not in the correct order, it should be before "shortanswerwirissummary"
(#24) The string key "shortanswerwiris_algorithm" is not in the correct order, it should be before "shortanswerwiris_answersinstruct"
(#26) The string key "filloutoneanswer" is not in the correct order, it should be before "shortanswerwiris_cantimportcompoundtest"
(#27) The string key "failedtogradetest" is not in the correct order, it should be before "filloutoneanswer"
(#29) Unexpected comment found. Auto-fixing will not work after this comment
(#33) The string key "pluginnameediting" is not in the correct order, it should be before "pluginnamesummary"
(#34) The string key "pluginnameadding" is not in the correct order, it should be before "pluginnameediting"
(#35) The string key "contentnotviewable" is not in the correct order, it should be before "pluginnameadding"
question/type/shortanswerwiris/lang/fr/qtype_shortanswerwiris.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_shortanswerwiris.php
(#19) The string key "editingshortanswerwiris" is not in the correct order, it should be before "shortanswerwiris_help"
(#20) The string key "addingshortanswerwiris" is not in the correct order, it should be before "editingshortanswerwiris"
(#22) The string key "shortanswerwiris_addanswers" is not in the correct order, it should be before "shortanswerwirissummary"
(#24) The string key "shortanswerwiris_algorithm" is not in the correct order, it should be before "shortanswerwiris_answersinstruct"
(#26) The string key "filloutoneanswer" is not in the correct order, it should be before "shortanswerwiris_cantimportcompoundtest"
(#27) The string key "failedtogradetest" is not in the correct order, it should be before "filloutoneanswer"
(#29) Unexpected comment found. Auto-fixing will not work after this comment
(#33) The string key "pluginnameediting" is not in the correct order, it should be before "pluginnamesummary"
(#34) The string key "pluginnameadding" is not in the correct order, it should be before "pluginnameediting"
(#35) The string key "contentnotviewable" is not in the correct order, it should be before "pluginnameadding"
question/type/shortanswerwiris/lang/it/qtype_shortanswerwiris.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_shortanswerwiris.php
(#19) The string key "editingshortanswerwiris" is not in the correct order, it should be before "shortanswerwiris_help"
(#20) The string key "addingshortanswerwiris" is not in the correct order, it should be before "editingshortanswerwiris"
(#22) The string key "shortanswerwiris_addanswers" is not in the correct order, it should be before "shortanswerwirissummary"
(#24) The string key "shortanswerwiris_algorithm" is not in the correct order, it should be before "shortanswerwiris_answersinstruct"
(#26) The string key "filloutoneanswer" is not in the correct order, it should be before "shortanswerwiris_cantimportcompoundtest"
(#27) The string key "failedtogradetest" is not in the correct order, it should be before "filloutoneanswer"
(#29) Unexpected comment found. Auto-fixing will not work after this comment
(#33) The string key "pluginnameediting" is not in the correct order, it should be before "pluginnamesummary"
(#34) The string key "pluginnameadding" is not in the correct order, it should be before "pluginnameediting"
(#35) The string key "contentnotviewable" is not in the correct order, it should be before "pluginnameadding"
question/type/shortanswerwiris/lib.php
(#17) Missing @copyright tag
(#17) Missing @license tag
(#17) Missing docblock for function wrsqz_convert_for_compound
(#18) Short array syntax must be used to define arrays
question/type/shortanswerwiris/question.php
(#21) Missing @copyright tag
(#21) Missing @license tag
(#21) Missing docblock for class qtype_shortanswerwiris_question
(#26) Missing @var tag in member variable comment
(#31) Missing @var tag in member variable comment
(#34) Missing docblock for function __construct
(#34) 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.
(#38) Missing docblock for function start_attempt
(#42) Missing docblock for function apply_attempt_state
(#56) No one-line description found in phpdocs for docblock of function join_all_text
(#80) Missing docblock for function grade_response
(#94) Short array syntax must be used to define arrays
(#97) Short array syntax must be used to define arrays
(#99) Short array syntax must be used to define arrays
(#117) Short array syntax must be used to define arrays
(#120) Short array syntax must be used to define arrays
(#121) Short array syntax must be used to define arrays
(#123) Short array syntax must be used to define arrays
(#151) Missing docblock for function get_matching_answer
(#192) Short array syntax must be used to define arrays
(#193) Short array syntax must be used to define arrays
(#258) Missing docblock for function summarise_response
(#270) Missing docblock for function get_right_answer_summary
(#274) Missing docblock for function format_answer
(#284) Missing docblock for function is_text_answer
(#301) Missing docblock for function is_compound_answer
(#316) Missing docblock for function is_graphical_answer
(#333) Missing docblock for function get_correct_response
(#347) Missing docblock for function is_complete_response
(#351) Missing docblock for function is_empty_mathml
(#356) Missing docblock for function is_gradable_response
question/type/shortanswerwiris/questiontype.php
(#24) Missing @copyright tag
(#24) Missing @license tag
(#24) Missing docblock for class qtype_shortanswerwiris
(#26) Missing docblock for function __construct
(#30) Missing docblock for function extra_question_fields
(#31) Short array syntax must be used to define arrays
(#34) Missing docblock for function create_editing_form
(#40) Missing docblock for function initialise_question_instance
(#45) Missing docblock for function export_to_xml
(#52) Missing docblock for function import_from_xml
(#63) Short array syntax must be used to define arrays
(#119) Short array syntax must be used to define arrays
(#241) Missing docblock for function wrsqz_get_distribution
question/type/shortanswerwiris/renderer.php
(#21) Missing @copyright tag
(#21) Missing @license tag
(#21) Missing docblock for class qtype_shortanswerwiris_renderer
(#22) Missing docblock for function __construct
(#26) Missing docblock for function formulation_and_controls
(#33) Short array syntax must be used to define arrays
(#48) Short array syntax must be used to define arrays
(#61) Short array syntax must be used to define arrays
(#63) Short array syntax must be used to define arrays
(#66) Short array syntax must be used to define arrays
(#66) Short array syntax must be used to define arrays
(#71) Short array syntax must be used to define arrays
(#71) Short array syntax must be used to define arrays
(#94) Missing docblock for function correct_response
(#106) Line exceeds 132 characters; contains 139 characters
(#112) Missing docblock for function feedback_class
question/type/shortanswerwiris/tests/behat/behat_shortanswerwiris_base.php
(#1) DocBlock missing a @package tag for file behat_shortanswerwiris_base.php. Expected @package qtype_shortanswerwiris
(#17) Missing @copyright tag
(#17) Missing @license tag
(#33) Missing docblock for class behat_shortanswerwiris_base
question/type/shortanswerwiris/tests/helper.php
(#23) DocBlock missing a @package tag for class qtype_shortanswerwiris_test_helper. Expected @package qtype_shortanswerwiris
(#24) Missing docblock for function get_test_questions
(#25) Short array syntax must be used to define arrays
(#39) Short array syntax must be used to define arrays
(#43) Short array syntax must be used to define arrays
(#47) Short array syntax must be used to define arrays
(#51) Short array syntax must be used to define arrays
(#55) Short array syntax must be used to define arrays
(#56) Short array syntax must be used to define arrays
(#57) Short array syntax must be used to define arrays
(#58) Short array syntax must be used to define arrays
(#86) Short array syntax must be used to define arrays
(#88) Short array syntax must be used to define arrays
(#91) Short array syntax must be used to define arrays
(#92) Short array syntax must be used to define arrays
(#93) Short array syntax must be used to define arrays
(#94) Short array syntax must be used to define arrays
(#94) There should be a comma after the last array item in a multi-line array.
question/type/shortanswerwiris/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

(0 errors, 0 warnings)

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


PHPDocs style problems

(3 errors, 0 warnings)

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

question/type/shortanswerwiris/backup/moodle1/lib.php
(#36) Phpdocs for function moodle1_qtype_shortanswerwiris_handler::process_question has incomplete parameters list
question/type/shortanswerwiris/backup/moodle2/restore_qtype_shortanswerwiris_plugin.class.php
(#68) Phpdocs for function restore_qtype_shortanswerwiris_plugin::recode_response has incomplete parameters list
question/type/shortanswerwiris/question.php
(#102) Phpdocs for function qtype_shortanswerwiris_question::get_matching_answer_fail_test 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]