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

(144 errors, 125 warnings)

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

admin/tool/certificate/certificates.php
(#36) Short array syntax must be used to define arrays
(#69) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/classes/certificate.php
(#192) There should be a comma after the last array item in a multi-line array.
(#325) Short array syntax must be used to define arrays
(#500) There should be a comma after the last array item in a multi-line array.
(#507) There should be a comma after the last array item in a multi-line array.
(#514) There should be a comma after the last array item in a multi-line array.
(#520) There should be a comma after the last array item in a multi-line array.
(#527) There should be a comma after the last array item in a multi-line array.
(#534) There should be a comma after the last array item in a multi-line array.
(#541) There should be a comma after the last array item in a multi-line array.
(#548) There should be a comma after the last array item in a multi-line array.
(#554) There should be a comma after the last array item in a multi-line array.
(#561) There should be a comma after the last array item in a multi-line array.
(#568) There should be a comma after the last array item in a multi-line array.
(#574) There should be a comma after the last array item in a multi-line array.
(#623) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/classes/certificates_list.php
(#160) There should be a comma after the last array item in a multi-line array.
(#187) There should be a comma after the last array item in a multi-line array.
(#195) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/classes/customfield/issue_handler.php
(#229) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/classes/edit_element_form.php
(#72) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/classes/element_helper.php
(#118) Short array syntax must be used to define arrays
(#294) Short array syntax must be used to define arrays
(#311) Short array syntax must be used to define arrays
(#326) Short array syntax must be used to define arrays
(#371) Short array syntax must be used to define arrays
(#382) 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.
(#442) Short array syntax must be used to define arrays
(#458) Short array syntax must be used to define arrays
(#489) Short array syntax must be used to define arrays
(#493) Short array syntax must be used to define arrays
(#556) Short array syntax must be used to define arrays
(#663) Short array syntax must be used to define arrays
(#673) Short array syntax must be used to define arrays
(#686) Short array syntax must be used to define arrays
(#699) Short array syntax must be used to define arrays
admin/tool/certificate/classes/event/certificate_issued.php
(#61) There should be a comma after the last array item in a multi-line array.
(#62) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/classes/event/certificate_revoked.php
(#89) There should be a comma after the last array item in a multi-line array.
(#90) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/classes/event/certificate_verified.php
(#84) 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.
(#90) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/classes/event/template_created.php
(#74) Short array syntax must be used to define arrays
(#89) Short array syntax must be used to define arrays
admin/tool/certificate/classes/event/template_deleted.php
(#83) Short array syntax must be used to define arrays
admin/tool/certificate/classes/event/template_updated.php
(#73) Short array syntax must be used to define arrays
(#83) Short array syntax must be used to define arrays
admin/tool/certificate/classes/external/elements.php
(#49) Short array syntax must be used to define arrays
(#50) There should be a comma after the last array item in a multi-line array.
(#84) Short array syntax must be used to define arrays
admin/tool/certificate/classes/external/issues.php
(#47) Short array syntax must be used to define arrays
(#94) Short array syntax must be used to define arrays
admin/tool/certificate/classes/external/modal_form.php
(#100) Short array syntax must be used to define arrays
(#104) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/classes/external/templates.php
(#49) Short array syntax must be used to define arrays
(#51) There should be a comma after the last array item in a multi-line array.
(#89) Short array syntax must be used to define arrays
(#90) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/classes/form/certificate_issues.php
(#65) Short array syntax must be used to define arrays
(#68) There should be a comma after the last array item in a multi-line array.
(#71) Short array syntax must be used to define arrays
admin/tool/certificate/classes/form/details.php
(#183) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/classes/issues_list.php
(#74) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/classes/my_certificates_table.php
(#60) Short array syntax must be used to define arrays
(#65) Short array syntax must be used to define arrays
(#212) There should be a comma after the last array item in a multi-line array.
(#230) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/classes/output/element.php
(#101) There should be a comma after the last array item in a multi-line array.
(#113) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/classes/output/template.php
(#127) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/classes/output/verify_certificate_result.php
(#91) Short array syntax must be used to define arrays
(#115) There should be a comma after the last array item in a multi-line array.
(#119) There should be a comma after the last array item in a multi-line array.
(#123) There should be a comma after the last array item in a multi-line array.
(#127) There should be a comma after the last array item in a multi-line array.
(#132) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/classes/permission.php
(#218) There should be a comma after the last array item in a multi-line array.
(#308) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/classes/persistent/element.php
(#47) Short array syntax must be used to define arrays
(#48) Short array syntax must be used to define arrays
(#49) There should be a comma after the last array item in a multi-line array.
(#51) Short array syntax must be used to define arrays
(#53) There should be a comma after the last array item in a multi-line array.
(#55) 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.
(#58) Short array syntax must be used to define arrays
(#61) There should be a comma after the last array item in a multi-line array.
(#63) Short array syntax must be used to define arrays
(#68) Short array syntax must be used to define arrays
(#71) There should be a comma after the last array item in a multi-line array.
(#73) Short array syntax must be used to define arrays
(#76) There should be a comma after the last array item in a multi-line array.
(#78) Short array syntax must be used to define arrays
(#81) There should be a comma after the last array item in a multi-line array.
(#83) Short array syntax must be used to define arrays
(#86) 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
(#91) There should be a comma after the last array item in a multi-line array.
(#93) Short array syntax must be used to define arrays
(#96) There should be a comma after the last array item in a multi-line array.
(#98) Short array syntax must be used to define arrays
(#101) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/classes/persistent/page.php
(#47) Short array syntax must be used to define arrays
(#48) Short array syntax must be used to define arrays
(#49) There should be a comma after the last array item in a multi-line array.
(#51) Short array syntax must be used to define arrays
(#55) Short array syntax must be used to define arrays
(#59) Short array syntax must be used to define arrays
(#63) Short array syntax must be used to define arrays
(#67) Short array syntax must be used to define arrays
(#69) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/classes/persistent/template.php
(#47) Short array syntax must be used to define arrays
(#48) Short array syntax must be used to define arrays
(#49) There should be a comma after the last array item in a multi-line array.
(#51) Short array syntax must be used to define arrays
(#52) There should be a comma after the last array item in a multi-line array.
(#54) 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/certificate/classes/plugin_manager.php
(#94) Short array syntax must be used to define arrays
(#95) Short array syntax must be used to define arrays
(#97) There should be a comma after the last array item in a multi-line array.
(#105) Short array syntax must be used to define arrays
(#124) Short array syntax must be used to define arrays
(#134) Short array syntax must be used to define arrays
(#189) Short array syntax must be used to define arrays
(#229) Short array syntax must be used to define arrays
(#230) Short array syntax must be used to define arrays
(#231) Short array syntax must be used to define arrays
admin/tool/certificate/classes/privacy/provider.php
(#129) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/classes/template.php
(#135) Short array syntax must be used to define arrays
(#198) Short array syntax must be used to define arrays
(#211) Short array syntax must be used to define arrays
(#221) Short array syntax must be used to define arrays
(#230) Short array syntax must be used to define arrays
(#280) Short array syntax must be used to define arrays
(#739) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/classes/upload_image_form.php
(#41) Short array syntax must be used to define arrays
(#50) Short array syntax must be used to define arrays
(#53) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/db/access.php
(#27) 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
(#36) There should be a comma after the last array item in a multi-line array.
(#39) Short array syntax must be used to define arrays
(#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
(#50) Short array syntax must be used to define arrays
(#54) There should be a comma after the last array item in a multi-line array.
(#57) Short array syntax must be used to define arrays
(#60) Short array syntax must be used to define arrays
(#64) There should be a comma after the last array item in a multi-line array.
(#67) Short array syntax must be used to define arrays
(#70) 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.
admin/tool/certificate/db/events.php
(#31) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/db/services.php
(#35) 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.
admin/tool/certificate/element/border/classes/element.php
(#63) Short array syntax must be used to define arrays
(#85) There should be a comma after the last array item in a multi-line array.
(#88) There should be a comma after the last array item in a multi-line array.
(#91) There should be a comma after the last array item in a multi-line array.
(#94) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/element/code/classes/element.php
(#176) Short array syntax must be used to define arrays
(#177) Short array syntax must be used to define arrays
(#179) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/element/date/tests/element_test.php
(#55) There should be a comma after the last array item in a multi-line array.
(#85) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/element/digitalsignature/classes/element.php
(#33) Short array syntax must be used to define arrays
(#45) There should be a comma after the last array item in a multi-line array.
(#134) There should be a comma after the last array item in a multi-line array.
(#181) There should be a comma after the last array item in a multi-line array.
(#206) There should be a comma after the last array item in a multi-line array.
(#237) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/element/image/classes/element.php
(#41) Short array syntax must be used to define arrays
(#49) Short array syntax must be used to define arrays
(#53) There should be a comma after the last array item in a multi-line array.
(#132) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/element/program/tests/element_test.php
(#114) There should be a comma after the last array item in a multi-line array.
(#171) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/element/text/tests/element_test.php
(#65) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/element/userfield/classes/element.php
(#75) There should be a comma after the last array item in a multi-line array.
(#79) Short array syntax must be used to define arrays
(#119) Short array syntax must be used to define arrays
admin/tool/certificate/element/userfield/tests/element_test.php
(#69) Short array syntax must be used to define arrays
(#71) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/includes/colourpicker.php
(#44) Short array syntax must be used to define arrays
(#62) Short array syntax must be used to define arrays
(#64) 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
(#67) Short array syntax must be used to define arrays
(#68) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/lib.php
(#160) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/manage_templates.php
(#60) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/my.php
(#31) Short array syntax must be used to define arrays
(#32) There should be a comma after the last array item in a multi-line array.
(#59) Short array syntax must be used to define arrays
admin/tool/certificate/template.php
(#38) Short array syntax must be used to define arrays
(#42) Short array syntax must be used to define arrays
admin/tool/certificate/tests/behat/behat_tool_certificate.php
(#60) Short array syntax must be used to define arrays
(#61) There should be a comma after the last array item in a multi-line array.
(#66) Short array syntax must be used to define arrays
(#72) Short array syntax must be used to define arrays
(#85) Short array syntax must be used to define arrays
(#86) Short array syntax must be used to define arrays
(#87) Short array syntax must be used to define arrays
(#90) Short array syntax must be used to define arrays
(#125) Short array syntax must be used to define arrays
(#126) Short array syntax must be used to define arrays
(#127) Short array syntax must be used to define arrays
(#130) Short array syntax must be used to define arrays
admin/tool/certificate/tests/capabilities_test.php
(#58) Short array syntax must be used to define arrays
(#99) Short array syntax must be used to define arrays
(#104) Short array syntax must be used to define arrays
(#127) Short array syntax must be used to define arrays
(#174) Short array syntax must be used to define arrays
admin/tool/certificate/tests/certificate_test.php
(#96) Short array syntax must be used to define arrays
(#131) Short array syntax must be used to define arrays
(#347) Short array syntax must be used to define arrays
(#402) There should be a comma after the last array item in a multi-line array.
(#404) There should be a comma after the last array item in a multi-line array.
(#406) There should be a comma after the last array item in a multi-line array.
(#408) There should be a comma after the last array item in a multi-line array.
(#506) There should be a comma after the last array item in a multi-line array.
(#509) There should be a comma after the last array item in a multi-line array.
(#512) There should be a comma after the last array item in a multi-line array.
(#515) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/tests/lib_test.php
(#31) Import statements must not begin with a leading backslash
(#32) Import statements must not begin with a leading backslash
(#33) Import statements must not begin with a leading backslash
(#72) There should be a comma after the last array item in a multi-line array.
(#74) There should be a comma after the last array item in a multi-line array.
(#111) There should be a comma after the last array item in a multi-line array.
(#113) There should be a comma after the last array item in a multi-line array.
(#179) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/tests/my_certificates_table_test.php
(#77) There should be a comma after the last array item in a multi-line array.
(#83) There should be a comma after the last array item in a multi-line array.
(#84) There should be a comma after the last array item in a multi-line array.
(#92) There should be a comma after the last array item in a multi-line array.
(#100) There should be a comma after the last array item in a multi-line array.
(#108) There should be a comma after the last array item in a multi-line array.
(#116) There should be a comma after the last array item in a multi-line array.
(#117) There should be a comma after the last array item in a multi-line array.
(#125) There should be a comma after the last array item in a multi-line array.
(#135) There should be a comma after the last array item in a multi-line array.
(#135) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/tests/template_test.php
(#258) There should be a comma after the last array item in a multi-line array.
(#261) There should be a comma after the last array item in a multi-line array.
(#361) There should be a comma after the last array item in a multi-line array.
(#363) There should be a comma after the last array item in a multi-line array.
(#367) There should be a comma after the last array item in a multi-line array.
(#373) There should be a comma after the last array item in a multi-line array.
(#385) There should be a comma after the last array item in a multi-line array.
(#500) There should be a comma after the last array item in a multi-line array.
(#502) There should be a comma after the last array item in a multi-line array.
(#504) There should be a comma after the last array item in a multi-line array.
(#526) There should be a comma after the last array item in a multi-line array.
(#538) There should be a comma after the last array item in a multi-line array.
admin/tool/certificate/tests/upgradelib_test.php
(#131) There should be a comma after the last array item in a multi-line array.
(#134) There should be a comma after the last array item in a multi-line array.
(#137) There should be a comma after the last array item in a multi-line array.
(#139) There should be a comma after the last array item in a multi-line array.
(#300) There should be a comma after the last array item in a multi-line array.
(#307) There should be a comma after the last array item in a multi-line array.
(#320) There should be a comma after the last array item in a multi-line array.
(#327) 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]

admin/tool/certificate/classes/modal_form.php
(#46) Phpdocs for function modal_form::__construct has incomplete parameters list
admin/tool/certificate/classes/page.php
(#66) Phpdocs for function page::instance has incomplete parameters list
admin/tool/certificate/classes/template.php
(#308) Phpdocs for function template::duplicate 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, 1 warnings)

This section shows problems detected in mustache templates [More info]

admin/tool/certificate/templates/form-user-selector-suggestion.mustache
(#1) HTML Validation error, line 3: An “img” element which has an “alt” attribute whose value is the empty string must not have a “role” attribute. (y><span><img height="12" src="https://raw.githubusercontent.com/moodle/moodle/master/pix/g/f1.png" alt="" role="presentation"> <)

Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]