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

(20 errors, 70 warnings)

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

question/type/wordselect/backup/moodle2/backup_qtype_wordselect_plugin.class.php
(#52) Short array syntax must be used to define arrays
(#52) Short array syntax must be used to define arrays
(#63) Short array syntax must be used to define arrays
(#75) Short array syntax must be used to define arrays
question/type/wordselect/backup/moodle2/restore_qtype_wordselect_plugin.class.php
(#42) 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
(#122) Short array syntax must be used to define arrays
(#153) Short array syntax must be used to define arrays
(#159) Short array syntax must be used to define arrays
question/type/wordselect/classes/output/mobile.php
(#53) There should be a comma after the last array item in a multi-line array.
(#54) There should be a comma after the last array item in a multi-line array.
(#56) There should be a comma after the last array item in a multi-line array.
question/type/wordselect/classes/privacy/provider.php
(#41) There must not be a space before the colon in a return type declaration
(#41) There must be a single space between the colon and type in a return type declaration
question/type/wordselect/db/mobile.php
(#37) Short array syntax must be used to define arrays
(#41) There should be a comma after the last array item in a multi-line array.
(#42) There should be a comma after the last array item in a multi-line array.
(#43) There should be a comma after the last array item in a multi-line array.
(#46) Short array syntax must be used to define arrays
(#47) Short array syntax must be used to define arrays
(#47) There should be a comma after the last array item in a multi-line array.
(#49) There should be a comma after the last array item in a multi-line array.
question/type/wordselect/edit_wordselect_form.php
(#47) Short array syntax must be used to define arrays
(#54) Short array syntax must be used to define arrays
(#60) Short array syntax must be used to define arrays
(#67) Short array syntax must be used to define arrays
(#87) Short array syntax must be used to define arrays
(#113) Short array syntax must be used to define arrays
(#143) Short array syntax must be used to define arrays
(#169) Short array syntax must be used to define arrays
(#176) There should be a comma after the last array item in a multi-line array.
(#183) Short array syntax must be used to define arrays
question/type/wordselect/lang/en/qtype_wordselect.php
(#31) The string key "delimitchars" is not in the correct order, it should be before "pluginnamesummary"
(#34) The string key "correctresponse" is not in the correct order, it should be before "nowordsdefined"
(#36) The string key "correctanswer" is not in the correct order, it should be before "incorrectresponse"
(#39) The string key "introduction" is not in the correct order, it should be before "questiontext_help"
(#45) The string key "penalty" is not in the correct order, it should be before "wordpenalty_help"
(#48) The string key "taptoselect" is not in the correct order, it should be before "yougotnrightcount"
question/type/wordselect/lib.php
(#41) Short array syntax must be used to define arrays
question/type/wordselect/question.php
(#54) Expected "bool" but found "boolean" for @var tag in member variable comment
(#245) Short array syntax must be used to define arrays
(#377) Short array syntax must be used to define arrays
(#398) Short array syntax must be used to define arrays
(#468) Short array syntax must be used to define arrays
(#587) Expected "bool" but found "boolean" for @var tag in member variable comment
(#594) Expected "bool" but found "boolean" for @var tag in member variable comment
question/type/wordselect/questiontype.php
(#43) Short array syntax must be used to define arrays
(#84) Short array syntax must be used to define arrays
(#104) Short array syntax must be used to define arrays
(#117) Short array syntax must be used to define arrays
(#139) Short array syntax must be used to define arrays
(#169) Short array syntax must be used to define arrays
(#191) Short array syntax must be used to define arrays
(#204) Short array syntax must be used to define arrays
(#244) Short array syntax must be used to define arrays
(#331) Short array syntax must be used to define arrays
question/type/wordselect/renderer.php
(#85) There must not be a space before the colon in a return type declaration
(#94) Short array syntax must be used to define arrays
(#181) There should be a comma after the last array item in a multi-line array.
question/type/wordselect/settings.php
(#37) There should be a comma after the last array item in a multi-line array.
question/type/wordselect/tests/helper.php
(#40) Short array syntax must be used to define arrays
(#50) Short array syntax must be used to define arrays
question/type/wordselect/tests/question_test.php
(#29) Import statements must not begin with a leading backslash
(#47) Unit test question_test should be declared as final.
(#53) Test method test_get_words() is missing a return type
(#77) Test method test_stripdelim() is missing a return type
(#88) Test method test_get_expected_data() is missing a return type
(#95) There should be a comma after the last array item in a multi-line array.
(#105) Test method test_summarise_response() is missing a return type
(#107) Short array syntax must be used to define arrays
(#120) Test method test_grade_response() is missing a return type
(#122) Short array syntax must be used to define arrays
(#127) Short array syntax must be used to define arrays
(#136) Test method test_compute_final_grade() is missing a return type
(#149) Test method test_is_complete_response() is missing a return type
(#156) Short array syntax must be used to define arrays
(#163) Test method test_is_correct_place() is missing a return type
(#173) Test method test_is_word_selected() is missing a return type
(#176) Short array syntax must be used to define arrays
(#178) Short array syntax must be used to define arrays
(#188) Test method test_pad_angle_brackets() is missing a return type
(#203) Test method test_set_is_selectable() is missing a return type
(#240) Test method test_get_wrong_responsecount() is missing a return type
(#253) Test method test_get_correct_places() is missing a return type
question/type/wordselect/tests/walkthrough_test.php
(#26) Import statements must not begin with a leading backslash
(#39) Unit test walkthrough_test should be declared as final.
(#47) Test method test_interactive_with_correct() is missing a return type
(#69) Short array syntax must be used to define arrays
(#83) Short array syntax must be used to define arrays

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

(0 errors, 0 warnings)

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


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]