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

(18 errors, 182 warnings)

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

admin/tool/securityquestions/classes/event/locked_out.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#51) Short array syntax must be used to define arrays
(#53) Short array syntax must be used to define arrays
(#55) 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.
admin/tool/securityquestions/classes/event/lockout_expired.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#50) Short array syntax must be used to define arrays
(#53) Short array syntax must be used to define arrays
(#55) There should be a comma after the last array item in a multi-line array.
admin/tool/securityquestions/classes/event/question_added.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#51) Short array syntax must be used to define arrays
(#54) Short array syntax must be used to define arrays
(#56) There should be a comma after the last array item in a multi-line array.
(#57) There should be a comma after the last array item in a multi-line array.
admin/tool/securityquestions/classes/event/question_deleted.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#51) Short array syntax must be used to define arrays
(#54) Short array syntax must be used to define arrays
(#56) There should be a comma after the last array item in a multi-line array.
(#57) There should be a comma after the last array item in a multi-line array.
admin/tool/securityquestions/classes/event/question_deprecated.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#51) Short array syntax must be used to define arrays
(#54) Short array syntax must be used to define arrays
(#56) There should be a comma after the last array item in a multi-line array.
(#57) There should be a comma after the last array item in a multi-line array.
admin/tool/securityquestions/classes/event/user_unlocked.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#51) Short array syntax must be used to define arrays
(#54) Short array syntax must be used to define arrays
(#57) There should be a comma after the last array item in a multi-line array.
admin/tool/securityquestions/classes/form/reset_lockout.php
(#48) Short array syntax must be used to define arrays
(#68) Short array syntax must be used to define arrays
(#73) Short array syntax must be used to define arrays
admin/tool/securityquestions/classes/form/set_responses.php
(#65) Short array syntax must be used to define arrays
(#84) Short array syntax must be used to define arrays
(#101) Short array syntax must be used to define arrays
(#124) Short array syntax must be used to define arrays
(#139) Short array syntax must be used to define arrays
admin/tool/securityquestions/classes/local/table_manager.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#43) Short array syntax must be used to define arrays
(#51) Short array syntax must be used to define arrays
(#60) Short array syntax must be used to define arrays
(#63) Short array syntax must be used to define arrays
(#74) Short array syntax must be used to define arrays
(#76) Short array syntax must be used to define arrays
(#81) Short array syntax must be used to define arrays
(#110) Short array syntax must be used to define arrays
(#117) Short array syntax must be used to define arrays
(#125) Short array syntax must be used to define arrays
(#130) Short array syntax must be used to define arrays
(#134) Short array syntax must be used to define arrays
(#138) Short array syntax must be used to define arrays
admin/tool/securityquestions/classes/observer.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
admin/tool/securityquestions/classes/privacy/provider.php
(#33) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#49) There must not be a space before the colon in a return type declaration
(#56) There should be a comma after the last array item in a multi-line array.
(#67) There should be a comma after the last array item in a multi-line array.
(#77) There should be a comma after the last array item in a multi-line array.
(#95) There must not be a space before the colon in a return type declaration
(#114) Short array syntax must be used to define arrays
(#119) Short array syntax must be used to define arrays
(#124) Short array syntax must be used to define arrays
(#141) Short array syntax must be used to define arrays
(#144) Short array syntax must be used to define arrays
(#145) Short array syntax must be used to define arrays
(#146) Short array syntax must be used to define arrays
admin/tool/securityquestions/classes/tool_securityquestions_admin_setting_configtext.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
admin/tool/securityquestions/db/access.php
(#26) Short array syntax must be used to define arrays
(#27) Short array syntax must be used to define arrays
(#30) Short array syntax must be used to define arrays
(#31) There should be a comma after the last array item in a multi-line array.
(#32) There should be a comma after the last array item in a multi-line array.
admin/tool/securityquestions/db/events.php
(#27) Short array syntax must be used to define arrays
(#28) Short array syntax must be used to define arrays
admin/tool/securityquestions/db/upgrade.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#56) Short array syntax must be used to define arrays
admin/tool/securityquestions/lib.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
admin/tool/securityquestions/locallib.php
(#24) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#40) Short array syntax must be used to define arrays
(#60) Short array syntax must be used to define arrays
(#73) Short array syntax must be used to define arrays
(#74) Short array syntax must be used to define arrays
(#77) Short array syntax must be used to define arrays
(#96) Short array syntax must be used to define arrays
(#97) 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
(#143) Short array syntax must be used to define arrays
(#144) Short array syntax must be used to define arrays
(#148) Short array syntax must be used to define arrays
(#149) Short array syntax must be used to define arrays
(#211) Short array syntax must be used to define arrays
(#215) Short array syntax must be used to define arrays
(#237) Short array syntax must be used to define arrays
(#278) Short array syntax must be used to define arrays
(#312) Short array syntax must be used to define arrays
(#358) Short array syntax must be used to define arrays
(#395) Short array syntax must be used to define arrays
(#398) Short array syntax must be used to define arrays
(#417) Short array syntax must be used to define arrays
(#430) Short array syntax must be used to define arrays
(#433) Short array syntax must be used to define arrays
(#437) Short array syntax must be used to define arrays
(#448) Short array syntax must be used to define arrays
(#456) Short array syntax must be used to define arrays
(#463) Short array syntax must be used to define arrays
(#562) Short array syntax must be used to define arrays
(#635) Short array syntax must be used to define arrays
(#642) Short array syntax must be used to define arrays
(#666) Short array syntax must be used to define arrays
(#670) Short array syntax must be used to define arrays
(#671) Short array syntax must be used to define arrays
(#674) Short array syntax must be used to define arrays
(#692) Short array syntax must be used to define arrays
(#693) Short array syntax must be used to define arrays
(#753) Short array syntax must be used to define arrays
(#770) Short array syntax must be used to define arrays
(#775) Short array syntax must be used to define arrays
(#935) Short array syntax must be used to define arrays
(#946) Short array syntax must be used to define arrays
(#958) Short array syntax must be used to define arrays
admin/tool/securityquestions/reset_lockout.php
(#41) Short array syntax must be used to define arrays
(#43) Short array syntax must be used to define arrays
(#52) Short array syntax must be used to define arrays
(#54) Short array syntax must be used to define arrays
(#67) Short array syntax must be used to define arrays
(#73) Short array syntax must be used to define arrays
admin/tool/securityquestions/set_responses.php
(#87) Short array syntax must be used to define arrays
(#105) Short array syntax must be used to define arrays
(#192) Short array syntax must be used to define arrays
admin/tool/securityquestions/tests/locallib_test.php
(#34) PHPUnit testcase name "tool_securityquestions_locallib_testcase" does not match file name "locallib_test"
(#34) PHPUnit class "tool_securityquestions_locallib_testcase" does not have any namespace. It is recommended to add it to the "tool_securityquestions" namespace, using more levels if needed, in order to match the code being tested
(#40) Test method test_insert_question() is missing any coverage information, own or at class level
(#72) Test method test_get_active_questions() is missing any coverage information, own or at class level
(#90) Short array syntax must be used to define arrays
(#110) Test method test_can_deprecate_question() is missing any coverage information, own or at class level
(#143) Short array syntax must be used to define arrays
(#158) Test method test_deprecate_question() is missing any coverage information, own or at class level
(#193) Test method test_pick_questions() is missing any coverage information, own or at class level
(#241) Test method test_add_response() is missing any coverage information, own or at class level
(#256) Short array syntax must be used to define arrays
(#269) Short array syntax must be used to define arrays
(#274) Short array syntax must be used to define arrays
(#282) Short array syntax must be used to define arrays
(#285) Short array syntax must be used to define arrays
(#291) Short array syntax must be used to define arrays
(#299) Test method test_validate_injected_questions() is missing any coverage information, own or at class level
(#313) Short array syntax must be used to define arrays
(#324) Short array syntax must be used to define arrays
(#328) Short array syntax must be used to define arrays
(#333) Short array syntax must be used to define arrays
(#336) Short array syntax must be used to define arrays
(#343) Test method test_get_active_user_responses() is missing any coverage information, own or at class level
(#388) Test method test_get_lock_state() is missing any coverage information, own or at class level
(#395) Short array syntax must be used to define arrays
(#399) Short array syntax must be used to define arrays
(#402) Short array syntax must be used to define arrays
(#409) Short array syntax must be used to define arrays
(#413) Short array syntax must be used to define arrays
(#414) Short array syntax must be used to define arrays
(#417) Short array syntax must be used to define arrays
(#423) Short array syntax must be used to define arrays
(#426) Short array syntax must be used to define arrays
(#435) Test method test_increment_lockout_counter() is missing any coverage information, own or at class level
(#441) Short array syntax must be used to define arrays
(#446) Short array syntax must be used to define arrays
(#455) Short array syntax must be used to define arrays
(#463) Test method test_reset_lockout_counter() is missing any coverage information, own or at class level
(#469) Short array syntax must be used to define arrays
(#474) Short array syntax must be used to define arrays
(#483) Short array syntax must be used to define arrays
(#488) Short array syntax must be used to define arrays
(#493) Short array syntax must be used to define arrays
(#496) Short array syntax must be used to define arrays
(#504) Test method test_get_lockout_counter() is missing any coverage information, own or at class level
(#510) Short array syntax must be used to define arrays
(#515) Short array syntax must be used to define arrays
(#527) Short array syntax must be used to define arrays
(#533) Short array syntax must be used to define arrays
(#543) Test method test_lock_user() is missing any coverage information, own or at class level
(#557) Short array syntax must be used to define arrays
(#562) Short array syntax must be used to define arrays
(#571) Short array syntax must be used to define arrays
(#576) Short array syntax must be used to define arrays
(#580) Short array syntax must be used to define arrays
(#587) Short array syntax must be used to define arrays
(#590) Short array syntax must be used to define arrays
(#598) Test method test_unlock_user() is missing any coverage information, own or at class level
(#612) Short array syntax must be used to define arrays
(#617) Short array syntax must be used to define arrays
(#626) Short array syntax must be used to define arrays
(#633) Short array syntax must be used to define arrays
(#640) Short array syntax must be used to define arrays
(#649) Short array syntax must be used to define arrays
(#655) Short array syntax must be used to define arrays
(#664) Short array syntax must be used to define arrays
(#670) Short array syntax must be used to define arrays
(#701) Test method test_hash_response() is missing any coverage information, own or at class level
(#704) Short array syntax must be used to define arrays
(#725) There should be a comma after the last array item in a multi-line array.
(#734) Test method test_verify_response() is missing any coverage information, own or at class level

Javascript coding style problems

(0 errors, 1 warnings)

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

admin/tool/securityquestions/amd/src/hide_selector_question.js
(#1) Missing space before opening brace. (space-before-blocks)

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]