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

(22 errors, 112 warnings)

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

mod/assign/submission/maharaws/backup/moodle2/backup_assignsubmission_mahara_subplugin.class.php
(#49) Short array syntax must be used to define arrays
(#57) Short array syntax must be used to define arrays
mod/assign/submission/maharaws/backup/moodle2/restore_assignsubmission_mahara_subplugin.class.php
(#43) Short array syntax must be used to define arrays
mod/assign/submission/maharaws/classes/cli/convert_mnet.php
(#60) There should be a comma after the last array item in a multi-line array.
(#69) There should be a comma after the last array item in a multi-line array.
mod/assign/submission/maharaws/classes/event/assessable_uploaded.php
(#63) Short array syntax must be used to define arrays
mod/assign/submission/maharaws/classes/mahara_oauth.php
(#52) Short array syntax must be used to define arrays
(#56) Short array syntax must be used to define arrays
(#58) Short array syntax must be used to define arrays
(#61) Short array syntax must be used to define arrays
(#61) Short array syntax must be used to define arrays
mod/assign/submission/maharaws/classes/observers.php
(#59) Short array syntax must be used to define arrays
(#102) Short array syntax must be used to define arrays
(#126) Short array syntax must be used to define arrays
mod/assign/submission/maharaws/classes/privacy/provider.php
(#27) Import statements must not begin with a leading backslash
(#28) Import statements must not begin with a leading backslash
(#29) Import statements must not begin with a leading backslash
(#30) Import statements must not begin with a leading backslash
(#31) Import statements must not begin with a leading backslash
(#47) There must not be a space before the colon in a return type declaration
(#69) There should be a comma after the last array item in a multi-line array.
(#110) Short array syntax must be used to define arrays
mod/assign/submission/maharaws/db/access.php
(#28) Short array syntax must be used to define arrays
(#29) Short array syntax must be used to define arrays
(#33) Short array syntax must be used to define arrays
(#34) There should be a comma after the last array item in a multi-line array.
(#35) There should be a comma after the last array item in a multi-line array.
mod/assign/submission/maharaws/db/events.php
(#28) Short array syntax must be used to define arrays
(#29) Short array syntax must be used to define arrays
(#33) Short array syntax must be used to define arrays
mod/assign/submission/maharaws/db/upgrade.php
(#111) Short array syntax must be used to define arrays
(#114) There should be a comma after the last array item in a multi-line array.
(#132) Short array syntax must be used to define arrays
(#133) Short array syntax must be used to define arrays
(#133) Short array syntax must be used to define arrays
(#134) Short array syntax must be used to define arrays
(#134) Short array syntax must be used to define arrays
(#140) Short array syntax must be used to define arrays
(#168) Short array syntax must be used to define arrays
(#180) Short array syntax must be used to define arrays
mod/assign/submission/maharaws/lang/en/assignsubmission_maharaws.php
(#26) The string key "assign_submission_maharaws_description" is not in the correct order, it should be before "assign_submission_maharaws_name"
(#30) The string key "debug" is not in the correct order, it should be before "debug_help"
(#32) The string key "defaultlockpages" is not in the correct order, it should be before "defaultlockpages_help"
(#34) The string key "defaulton" is not in the correct order, it should be before "defaulton_help"
(#36) The string key "defaultsite" is not in the correct order, it should be before "defaultsite_help"
(#39) The string key "enabled" is not in the correct order, it should be before "enabled_help"
(#54) The string key "key" is not in the correct order, it should be before "key_help"
(#56) The string key "lockpages" is not in the correct order, it should be before "lockpages_help"
(#79) The string key "secret" is not in the correct order, it should be before "secret_help"
(#82) The string key "token" is not in the correct order, it should be before "token_help"
(#84) The string key "url" is not in the correct order, it should be before "url_help"
(#88) The string key "archiveonrelease" is not in the correct order, it should be before "yesunlock"
(#94) The string key "privacy:metadata:assignmentsubmission_maharaws:fullname" is not in the correct order, it should be before "privacy:metadata:assignmentsubmission_maharaws:username"
(#95) The string key "privacy:metadata:assignmentsubmission_maharaws:firstname" is not in the correct order, it should be before "privacy:metadata:assignmentsubmission_maharaws:fullname"
(#97) The string key "privacy:metadata:assignmentsubmission_maharaws:email" is not in the correct order, it should be before "privacy:metadata:assignmentsubmission_maharaws:lastname"
(#99) The string key "privacy:metadata:assignmentsubmission_maharaws:courseid" is not in the correct order, it should be before "privacy:metadata:assignmentsubmission_maharaws:idnumber"
(#101) The string key "privacy:metadata:assignmentsubmission_maharaws:coursefullname" is not in the correct order, it should be before "privacy:metadata:assignmentsubmission_maharaws:courseshortname"
(#102) The string key "errorinvalidapistring" is not in the correct order, it should be before "privacy:metadata:assignmentsubmission_maharaws:coursefullname"
mod/assign/submission/maharaws/launch.php
(#44) Short array syntax must be used to define arrays
(#66) Short array syntax must be used to define arrays
mod/assign/submission/maharaws/locallib.php
(#72) Short array syntax must be used to define arrays
(#105) Short array syntax must be used to define arrays
(#125) Short array syntax must be used to define arrays
(#138) Short array syntax must be used to define arrays
(#157) Short array syntax must be used to define arrays
(#160) There should be a comma after the last array item in a multi-line array.
(#245) Short array syntax must be used to define arrays
(#246) Short array syntax must be used to define arrays
(#248) Short array syntax must be used to define arrays
(#288) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $context.
(#325) Short array syntax must be used to define arrays
(#334) Short array syntax must be used to define arrays
(#344) Short array syntax must be used to define arrays
(#394) Short array syntax must be used to define arrays
(#395) Short array syntax must be used to define arrays
(#396) Short array syntax must be used to define arrays
(#396) Short array syntax must be used to define arrays
(#397) Short array syntax must be used to define arrays
(#413) There should be a comma after the last array item in a multi-line array.
(#420) Short array syntax must be used to define arrays
(#464) Short array syntax must be used to define arrays
(#570) Short array syntax must be used to define arrays
(#570) Short array syntax must be used to define arrays
(#570) Short array syntax must be used to define arrays
(#627) There should be a comma after the last array item in a multi-line array.
(#637) Short array syntax must be used to define arrays
(#647) Short array syntax must be used to define arrays
(#648) Short array syntax must be used to define arrays
(#649) Short array syntax must be used to define arrays
(#656) There should be a comma after the last array item in a multi-line array.
(#686) Short array syntax must be used to define arrays
(#686) Short array syntax must be used to define arrays
(#686) Short array syntax must be used to define arrays
(#691) There should be a comma after the last array item in a multi-line array.
(#728) Short array syntax must be used to define arrays
(#794) Short array syntax must be used to define arrays
(#802) Short array syntax must be used to define arrays
(#821) Short array syntax must be used to define arrays
(#823) Short array syntax must be used to define arrays
(#830) Short array syntax must be used to define arrays
(#834) Short array syntax must be used to define arrays
(#835) Short array syntax must be used to define arrays
(#836) There should be a comma after the last array item in a multi-line array.
(#837) There should be a comma after the last array item in a multi-line array.
(#849) Short array syntax must be used to define arrays
(#858) Short array syntax must be used to define arrays
(#863) There should be a comma after the last array item in a multi-line array.
(#869) Short array syntax must be used to define arrays
(#893) Short array syntax must be used to define arrays
(#967) Short array syntax must be used to define arrays
(#982) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $flags.
(#1021) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $flags.
(#1038) Short array syntax must be used to define arrays
(#1063) Short array syntax must be used to define arrays
(#1096) Short array syntax must be used to define arrays
(#1104) Short array syntax must be used to define arrays
(#1107) Short array syntax must be used to define arrays
(#1130) Short array syntax must be used to define arrays
(#1230) Short array syntax must be used to define arrays
(#1232) There should be a comma after the last array item in a multi-line array.
(#1236) Short array syntax must be used to define arrays
(#1243) Short array syntax must be used to define arrays
(#1258) Short array syntax must be used to define arrays
(#1264) Short array syntax must be used to define arrays
(#1281) Short array syntax must be used to define arrays
(#1301) Short array syntax must be used to define arrays
(#1355) Short array syntax must be used to define arrays
(#1385) There should be a comma after the last array item in a multi-line array.
mod/assign/submission/maharaws/settings.php
(#51) Short array syntax must be used to define arrays
mod/assign/submission/maharaws/tests/locallib_test.php
(#41) Unit test locallib_test should be declared as final.
(#55) Test method test_save_settings() is missing a return type
(#100) Short array syntax must be used to define arrays
(#104) Short array syntax must be used to define arrays
mod/assign/submission/maharaws/version.php
(#30) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(2 errors, 2 warnings)

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

mod/assign/submission/maharaws/js/popup.js
(#24) Operator ':' must be spaced. (space-infix-ops)
(#32) 'e' is defined but never used. (no-unused-vars)
(#54) Expected { after 'if' condition. (curly)
(#109) Expected space(s) after "for". (keyword-spacing)

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]