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

(82 errors, 185 warnings)

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

local/recompletion/backup/moodle2/backup_local_recompletion_plugin.class.php
(#47) Short array syntax must be used to define arrays
(#53) Short array syntax must be used to define arrays
(#53) 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.
(#60) Short array syntax must be used to define arrays
(#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
(#66) Short array syntax must be used to define arrays
(#79) Short array syntax must be used to define arrays
(#84) 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
(#97) Short array syntax must be used to define arrays
(#97) Short array syntax must be used to define arrays
(#102) Short array syntax must be used to define arrays
(#102) Short array syntax must be used to define arrays
(#111) Short array syntax must be used to define arrays
(#112) Short array syntax must be used to define arrays
(#121) Short array syntax must be used to define arrays
(#121) Short array syntax must be used to define arrays
(#129) Short array syntax must be used to define arrays
(#136) Short array syntax must be used to define arrays
(#136) Short array syntax must be used to define arrays
(#143) Short array syntax must be used to define arrays
(#149) Short array syntax must be used to define arrays
(#149) Short array syntax must be used to define arrays
(#156) Short array syntax must be used to define arrays
(#162) Short array syntax must be used to define arrays
(#162) Short array syntax must be used to define arrays
(#168) Short array syntax must be used to define arrays
(#168) Short array syntax must be used to define arrays
(#178) Short array syntax must be used to define arrays
(#181) Short array syntax must be used to define arrays
(#189) Short array syntax must be used to define arrays
(#189) Short array syntax must be used to define arrays
(#196) Short array syntax must be used to define arrays
(#201) Short array syntax must be used to define arrays
(#201) Short array syntax must be used to define arrays
(#208) Short array syntax must be used to define arrays
(#213) Short array syntax must be used to define arrays
(#213) Short array syntax must be used to define arrays
(#220) Short array syntax must be used to define arrays
(#225) Short array syntax must be used to define arrays
(#225) Short array syntax must be used to define arrays
(#232) Short array syntax must be used to define arrays
(#237) Short array syntax must be used to define arrays
(#237) Short array syntax must be used to define arrays
(#245) Short array syntax must be used to define arrays
(#251) Short array syntax must be used to define arrays
(#251) Short array syntax must be used to define arrays
(#259) Short array syntax must be used to define arrays
(#265) Short array syntax must be used to define arrays
(#265) Short array syntax must be used to define arrays
(#272) Short array syntax must be used to define arrays
local/recompletion/backup/moodle2/restore_local_recompletion_plugin.class.php
(#39) Short array syntax must be used to define arrays
(#334) Short array syntax must be used to define arrays
(#342) Short array syntax must be used to define arrays
(#351) Short array syntax must be used to define arrays
(#358) Short array syntax must be used to define arrays
(#367) Short array syntax must be used to define arrays
(#375) Short array syntax must be used to define arrays
(#383) Short array syntax must be used to define arrays
(#393) Short array syntax must be used to define arrays
(#397) Short array syntax must be used to define arrays
(#406) Short array syntax must be used to define arrays
(#414) Short array syntax must be used to define arrays
local/recompletion/classes/admin_setting_configstrtotime.php
(#106) Line exceeds 132 characters; contains 135 characters
local/recompletion/classes/local/restrictions/base.php
(#23) Missing @copyright tag
local/recompletion/classes/local/restrictions/enrol.php
(#24) Missing @copyright tag
local/recompletion/classes/observer.php
(#42) Short array syntax must be used to define arrays
(#44) 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.
local/recompletion/classes/plugins/mod_assign.php
(#49) Short array syntax must be used to define arrays
(#55) Short array syntax must be used to define arrays
(#72) Short array syntax must be used to define arrays
(#99) Short array syntax must be used to define arrays
local/recompletion/classes/plugins/mod_certificate.php
(#31) Missing @copyright tag
(#95) There should be a comma after the last array item in a multi-line array.
local/recompletion/classes/plugins/mod_choice.php
(#46) There must not be a space before the colon in a return type declaration
(#49) Short array syntax must be used to define arrays
(#55) Short array syntax must be used to define arrays
(#75) Short array syntax must be used to define arrays
(#98) Short array syntax must be used to define arrays
local/recompletion/classes/plugins/mod_coursecertificate.php
(#31) Missing @copyright tag
(#95) There should be a comma after the last array item in a multi-line array.
local/recompletion/classes/plugins/mod_customcert.php
(#56) Short array syntax must be used to define arrays
(#62) Short array syntax must be used to define arrays
(#94) Short array syntax must be used to define arrays
(#123) Short array syntax must be used to define arrays
local/recompletion/classes/plugins/mod_h5pactivity.php
(#30) Missing @copyright tag
(#73) There should be a comma after the last array item in a multi-line array.
(#101) There should be a comma after the last array item in a multi-line array.
local/recompletion/classes/plugins/mod_hotpot.php
(#30) Missing @copyright tag
(#81) 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.
local/recompletion/classes/plugins/mod_hvp.php
(#30) Missing @copyright tag
(#81) 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.
local/recompletion/classes/plugins/mod_lesson.php
(#30) Missing @copyright tag
(#73) There should be a comma after the last array item in a multi-line array.
local/recompletion/classes/plugins/mod_lti.php
(#46) There must not be a space before the colon in a return type declaration
(#88) There must not be a space before the colon in a return type declaration
local/recompletion/classes/plugins/mod_pulse.php
(#54) Short array syntax must be used to define arrays
(#60) Short array syntax must be used to define arrays
(#74) Short array syntax must be used to define arrays
(#98) Short array syntax must be used to define arrays
local/recompletion/classes/plugins/mod_questionnaire.php
(#46) There must not be a space before the colon in a return type declaration
(#52) Short array syntax must be used to define arrays
(#58) Short array syntax must be used to define arrays
(#80) Short array syntax must be used to define arrays
(#114) Short array syntax must be used to define arrays
local/recompletion/classes/plugins/mod_quiz.php
(#46) There must not be a space before the colon in a return type declaration
(#49) Short array syntax must be used to define arrays
(#57) Short array syntax must be used to define arrays
(#82) Short array syntax must be used to define arrays
(#108) Short array syntax must be used to define arrays
(#136) Short array syntax must be used to define arrays
(#150) Short array syntax must be used to define arrays
(#152) Short array syntax must be used to define arrays
(#153) There should be a comma after the last array item in a multi-line array.
(#155) There should be a comma after the last array item in a multi-line array.
(#158) Short array syntax must be used to define arrays
(#175) Short array syntax must be used to define arrays
local/recompletion/classes/plugins/mod_scorm.php
(#46) There must not be a space before the colon in a return type declaration
(#49) Short array syntax must be used to define arrays
(#55) Short array syntax must be used to define arrays
(#75) Short array syntax must be used to define arrays
(#97) Short array syntax must be used to define arrays
local/recompletion/classes/privacy/provider.php
(#51) There must not be a space before the colon in a return type declaration
(#58) 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.
(#73) There should be a comma after the last array item in a multi-line array.
(#81) There should be a comma after the last array item in a multi-line array.
(#109) 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.
(#216) Short array syntax must be used to define arrays
(#297) Short array syntax must be used to define arrays
(#396) There must not be a space before the colon in a return type declaration
(#397) Short array syntax must be used to define arrays
(#421) Short array syntax must be used to define arrays
(#456) Short array syntax must be used to define arrays
(#485) There must not be a space before the colon in a return type declaration
(#488) Short array syntax must be used to define arrays
(#595) Short array syntax must be used to define arrays
(#869) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $userid.
local/recompletion/classes/recompletion_form.php
(#96) Line exceeds 132 characters; contains 135 characters
local/recompletion/classes/reportbuilder/datasource/archived_certificate_issues.php
(#25) Missing @copyright tag
local/recompletion/classes/reportbuilder/datasource/archived_course_completions.php
(#25) Missing @copyright tag
local/recompletion/classes/reportbuilder/datasource/archived_course_module_completions.php
(#25) Missing @copyright tag
local/recompletion/classes/reportbuilder/datasource/archived_customcert_issues.php
(#25) Missing @copyright tag
local/recompletion/classes/reportbuilder/datasource/archived_h5pactivities_atempts.php
(#25) Missing @copyright tag
(#102) There should be a comma after the last array item in a multi-line array.
local/recompletion/classes/reportbuilder/datasource/archived_hotpot_atempts.php
(#25) Missing @copyright tag
local/recompletion/classes/reportbuilder/datasource/archived_lesson_grades.php
(#26) Missing @copyright tag
local/recompletion/classes/reportbuilder/datasource/archived_quiz_atempts.php
(#25) Missing @copyright tag
local/recompletion/classes/reportbuilder/datasource/archived_quiz_grades.php
(#25) Missing @copyright tag
local/recompletion/classes/reportbuilder/entities/certificate_issues.php
(#26) Missing @copyright tag
(#42) There should be a comma after the last array item in a multi-line array.
local/recompletion/classes/reportbuilder/entities/course_completions.php
(#27) Missing @copyright tag
(#43) There should be a comma after the last array item in a multi-line array.
local/recompletion/classes/reportbuilder/entities/course_modules_completion.php
(#29) Missing @copyright tag
(#45) There should be a comma after the last array item in a multi-line array.
local/recompletion/classes/reportbuilder/entities/customcert_issues.php
(#26) Missing @copyright tag
(#42) There should be a comma after the last array item in a multi-line array.
local/recompletion/classes/reportbuilder/entities/h5pactivity_attempts.php
(#28) Missing @copyright tag
(#44) There should be a comma after the last array item in a multi-line array.
local/recompletion/classes/reportbuilder/entities/hotpot_attempts.php
(#28) Missing @copyright tag
(#44) There should be a comma after the last array item in a multi-line array.
(#220) There should be a comma after the last array item in a multi-line array.
local/recompletion/classes/reportbuilder/entities/lesson_grades.php
(#26) Missing @copyright tag
(#42) There should be a comma after the last array item in a multi-line array.
local/recompletion/classes/reportbuilder/entities/quiz_attempts.php
(#26) Missing @copyright tag
(#42) There should be a comma after the last array item in a multi-line array.
local/recompletion/classes/reportbuilder/entities/quiz_grades.php
(#26) Missing @copyright tag
(#42) There should be a comma after the last array item in a multi-line array.
local/recompletion/classes/table/participants.php
(#97) Short array syntax must be used to define arrays
(#158) Short array syntax must be used to define arrays
(#184) Short array syntax must be used to define arrays
(#186) There should be a comma after the last array item in a multi-line array.
(#194) Short array syntax must be used to define arrays
(#198) Short array syntax must be used to define arrays
local/recompletion/classes/task/check_recompletion.php
(#217) Line exceeds 132 characters; contains 139 characters
local/recompletion/db/access.php
(#36) There should be a comma after the last array item in a multi-line array.
(#47) There should be a comma after the last array item in a multi-line array.
local/recompletion/db/events.php
(#28) Short array syntax must be used to define arrays
(#29) 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.
(#33) 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.
(#37) Short array syntax must be used to define arrays
(#39) There should be a comma after the last array item in a multi-line array.
local/recompletion/db/services.php
(#36) There should be a comma after the last array item in a multi-line array.
local/recompletion/db/tasks.php
(#28) Short array syntax must be used to define arrays
(#29) 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.
(#37) There should be a comma after the last array item in a multi-line array.
local/recompletion/db/upgrade.php
(#51) Short array syntax must be used to define arrays
(#54) 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
(#76) Short array syntax must be used to define arrays
(#79) Short array syntax must be used to define arrays
(#80) Short array syntax must be used to define arrays
(#81) Short array syntax must be used to define arrays
(#82) Short array syntax must be used to define arrays
(#102) Short array syntax must be used to define arrays
(#105) Short array syntax must be used to define arrays
(#137) Short array syntax must be used to define arrays
(#138) Short array syntax must be used to define arrays
(#138) Short array syntax must be used to define arrays
(#139) Short array syntax must be used to define arrays
(#139) Short array syntax must be used to define arrays
(#142) Short array syntax must be used to define arrays
(#160) Short array syntax must be used to define arrays
(#161) Short array syntax must be used to define arrays
(#161) Short array syntax must be used to define arrays
(#164) Short array syntax must be used to define arrays
(#184) Short array syntax must be used to define arrays
(#185) Short array syntax must be used to define arrays
(#185) Short array syntax must be used to define arrays
(#186) Short array syntax must be used to define arrays
(#186) Short array syntax must be used to define arrays
(#189) Short array syntax must be used to define arrays
(#190) Short array syntax must be used to define arrays
(#273) Short array syntax must be used to define arrays
(#275) Short array syntax must be used to define arrays
(#278) Short array syntax must be used to define arrays
(#281) Short array syntax must be used to define arrays
(#284) Short array syntax must be used to define arrays
(#287) Short array syntax must be used to define arrays
(#290) Short array syntax must be used to define arrays
(#293) Short array syntax must be used to define arrays
(#296) Short array syntax must be used to define arrays
(#299) Short array syntax must be used to define arrays
(#302) Short array syntax must be used to define arrays
(#305) Short array syntax must be used to define arrays
(#600) Short array syntax must be used to define arrays
(#608) Short array syntax must be used to define arrays
(#1010) There should be a comma after the last array item in a multi-line array.
local/recompletion/editcompletion.php
(#30) Short array syntax must be used to define arrays
(#32) Short array syntax must be used to define arrays
(#38) Short array syntax must be used to define arrays
(#55) Short array syntax must be used to define arrays
(#58) Short array syntax must be used to define arrays
(#60) There should be a comma after the last array item in a multi-line array.
local/recompletion/externallib.php
(#49) There should be a comma after the last array item in a multi-line array.
(#63) There should be a comma after the last array item in a multi-line array.
local/recompletion/lib.php
(#42) Short array syntax must be used to define arrays
(#49) Short array syntax must be used to define arrays
(#53) Short array syntax must be used to define arrays
local/recompletion/locallib.php
(#122) Short array syntax must be used to define arrays
(#168) There should be a comma after the last array item in a multi-line array.
(#172) Short array syntax must be used to define arrays
local/recompletion/participants.php
(#47) Short array syntax must be used to define arrays
(#59) Short array syntax must be used to define arrays
(#61) Short array syntax must be used to define arrays
local/recompletion/resetcompletion.php
(#36) Short array syntax must be used to define arrays
(#45) Short array syntax must be used to define arrays
(#47) Short array syntax must be used to define arrays
(#58) Short array syntax must be used to define arrays
(#72) Short array syntax must be used to define arrays
local/recompletion/tests/local/restrictions/enrol_test.php
(#46) Data provider method "set_form_data_data_provider" will need to be converted to static in future.
local/recompletion/tests/plugins/mod_lesson_test.php
(#50) Short array syntax must be used to define arrays
(#98) There should be a comma after the last array item in a multi-line array.
local/recompletion/tests/recompletion_test.php
(#31) Test method test_local_recompletion() is missing any coverage information, own or at class level
local/recompletion/tests/schedule_test.php
(#32) Test method test_local_recompletion() is missing any coverage information, own or at class level

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]