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

(155 errors, 204 warnings)

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

mod/peerwork/adminlib.php
(#48) Short array syntax must be used to define arrays
(#77) Short array syntax must be used to define arrays
(#78) Short array syntax must be used to define arrays
(#80) Short array syntax must be used to define arrays
(#107) Short array syntax must be used to define arrays
(#120) Short array syntax must be used to define arrays
(#161) Short array syntax must be used to define arrays
(#162) Short array syntax must be used to define arrays
(#163) Short array syntax must be used to define arrays
(#179) Short array syntax must be used to define arrays
(#181) Short array syntax must be used to define arrays
(#192) 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
mod/peerwork/backup/moodle2/backup_peerwork_stepslib.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#47) Short array syntax must be used to define arrays
(#47) Short array syntax must be used to define arrays
(#60) Short array syntax must be used to define arrays
(#60) Short array syntax must be used to define arrays
(#69) Short array syntax must be used to define arrays
(#69) 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.
(#81) Short array syntax must be used to define arrays
(#82) Short array syntax must be used to define arrays
(#107) Short array syntax must be used to define arrays
(#110) Short array syntax must be used to define arrays
(#116) Short array syntax must be used to define arrays
mod/peerwork/backup/moodle2/restore_peerwork_activity_task.class.php
(#56) Short array syntax must be used to define arrays
(#58) Short array syntax must be used to define arrays
(#69) Short array syntax must be used to define arrays
mod/peerwork/backup/moodle2/restore_peerwork_stepslib.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#41) Short array syntax must be used to define arrays
mod/peerwork/calculator/webpa/classes/calculator.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/peerwork/calculator/webpa/classes/privacy/provider.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#43) There must not be a space before the colon in a return type declaration
mod/peerwork/calculator/webpa/tests/calculator_test.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#42) Test method test_webpa_result_basic() is missing any coverage information, own or at class level
(#56) There should be a comma after the last array item in a multi-line array.
(#94) Test method test_webpa_result_with_weighting() is missing any coverage information, own or at class level
(#120) Test method test_webpa_result_with_weighting_and_penalty() is missing any coverage information, own or at class level
(#147) Test method test_webpa_result_without_self_grade_a() is missing any coverage information, own or at class level
(#174) Test method test_webpa_result_outlier_b() is missing any coverage information, own or at class level
(#187) There should be a comma after the last array item in a multi-line array.
(#210) Test method test_webpa_result_outlier_c() is missing any coverage information, own or at class level
(#224) There should be a comma after the last array item in a multi-line array.
(#247) Test method test_webpa_result_outlier_d() is missing any coverage information, own or at class level
(#260) There should be a comma after the last array item in a multi-line array.
(#296) There should be a comma after the last array item in a multi-line array.
(#303) There should be a comma after the last array item in a multi-line array.
(#310) There should be a comma after the last array item in a multi-line array.
(#317) There should be a comma after the last array item in a multi-line array.
(#319) There should be a comma after the last array item in a multi-line array.
(#335) There should be a comma after the last array item in a multi-line array.
(#341) There should be a comma after the last array item in a multi-line array.
(#347) There should be a comma after the last array item in a multi-line array.
(#353) There should be a comma after the last array item in a multi-line array.
(#355) There should be a comma after the last array item in a multi-line array.
(#371) There should be a comma after the last array item in a multi-line array.
(#377) There should be a comma after the last array item in a multi-line array.
(#383) There should be a comma after the last array item in a multi-line array.
(#389) There should be a comma after the last array item in a multi-line array.
(#391) 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.
(#413) There should be a comma after the last array item in a multi-line array.
(#429) There should be a comma after the last array item in a multi-line array.
(#435) There should be a comma after the last array item in a multi-line array.
(#441) There should be a comma after the last array item in a multi-line array.
(#447) There should be a comma after the last array item in a multi-line array.
(#449) There should be a comma after the last array item in a multi-line array.
mod/peerwork/classes/completion/custom_completion.php
(#96) There should be a comma after the last array item in a multi-line array.
mod/peerwork/classes/criteria.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#36) Expected 1 space before opening brace; found 2
mod/peerwork/classes/details_form.php
(#39) Short array syntax must be used to define arrays
(#75) 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.
(#266) There should be a comma after the last array item in a multi-line array.
(#271) There should be a comma after the last array item in a multi-line array.
mod/peerwork/classes/event/assessable_submitted.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#66) Short array syntax must be used to define arrays
mod/peerwork/classes/event/course_module_instance_list_viewed.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/peerwork/classes/event/course_module_viewed.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/peerwork/classes/event/gradebookupdate_failed.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#82) There should be a comma after the last array item in a multi-line array.
mod/peerwork/classes/event/grades_released.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/peerwork/classes/event/peer_feedback_created.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#74) Short array syntax must be used to define arrays
(#75) There should be a comma after the last array item in a multi-line array.
mod/peerwork/classes/event/peer_grade_created.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/peerwork/classes/event/peer_grade_overridden.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/peerwork/classes/event/submission_cleared.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/peerwork/classes/event/submission_created.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#73) Short array syntax must be used to define arrays
(#74) There should be a comma after the last array item in a multi-line array.
mod/peerwork/classes/event/submission_exported.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#81) Short array syntax must be used to define arrays
(#83) There should be a comma after the last array item in a multi-line array.
mod/peerwork/classes/event/submission_files_deleted.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/peerwork/classes/event/submission_files_uploaded.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/peerwork/classes/event/submission_grade_form_viewed.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#80) Short array syntax must be used to define arrays
(#82) There should be a comma after the last array item in a multi-line array.
mod/peerwork/classes/event/submission_graded.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#83) 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.
mod/peerwork/classes/event/submission_updated.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#73) Short array syntax must be used to define arrays
(#74) There should be a comma after the last array item in a multi-line array.
mod/peerwork/classes/event/submission_viewed.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/peerwork/classes/event/submissions_downloaded.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#73) Short array syntax must be used to define arrays
(#74) There should be a comma after the last array item in a multi-line array.
mod/peerwork/classes/event/submissions_exported.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/peerwork/classes/group_grader.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#116) Short array syntax must be used to define arrays
(#122) 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.
(#152) There should be a comma after the last array item in a multi-line array.
mod/peerwork/classes/observer.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#98) There should be a comma after the last array item in a multi-line array.
(#99) There should be a comma after the last array item in a multi-line array.
(#158) There should be a comma after the last array item in a multi-line array.
(#159) There should be a comma after the last array item in a multi-line array.
mod/peerwork/classes/output/peerwork_detail_summary.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#167) There should be a comma after the last array item in a multi-line array.
(#178) There should be a comma after the last array item in a multi-line array.
(#252) There should be a comma after the last array item in a multi-line array.
(#262) There should be a comma after the last array item in a multi-line array.
(#335) There should be a comma after the last array item in a multi-line array.
mod/peerwork/classes/output/peerwork_summary.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/peerwork/classes/pa_result.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/peerwork/classes/peerwork_plugin.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#45) Expected "bool|null" but found "boolean|null" for @var tag in member variable comment
(#47) Expected "bool|null" but found "boolean|null" for @var tag in member variable comment
(#287) There should be a comma after the last array item in a multi-line array.
(#324) There should be a comma after the last array item in a multi-line array.
(#340) There should be a comma after the last array item in a multi-line array.
(#403) Short array syntax must be used to define arrays
mod/peerwork/classes/peerworkcalculator_plugin.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/peerwork/classes/plugininfo/peerworkcalculator.php
(#29) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#61) There should be a comma after the last array item in a multi-line array.
(#96) Logical operator "or" is prohibited; use "||" instead
mod/peerwork/classes/privacy/provider.php
(#56) Expected 1 space before opening brace; found 2
(#64) There must not be a space before the colon in a return type declaration
(#96) There should be a comma after the last array item in a multi-line array.
(#117) There must not be a space before the colon in a return type declaration
(#121) There should be a comma after the last array item in a multi-line array.
(#125) Whitespace found at end of line within string
(#126) Whitespace found at end of line within string
(#280) There should be a comma after the last array item in a multi-line array.
(#354) 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.
mod/peerwork/classes/search/activity.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/peerwork/classes/submissions_form.php
(#206) There should be a comma after the last array item in a multi-line array.
(#243) There should be a comma after the last array item in a multi-line array.
(#399) There should be a comma after the last array item in a multi-line array.
(#413) There should be a comma after the last array item in a multi-line array.
(#446) Space found before square bracket; expected "$id]" but found "$id ]"
mod/peerwork/classes/task/notify_students.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#100) There should be a comma after the last array item in a multi-line array.
(#104) There should be a comma after the last array item in a multi-line array.
mod/peerwork/clearsubmissions.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file clearsubmissions.php
mod/peerwork/db/access.php
(#27) Short array syntax must be used to define arrays
(#28) Short array syntax must be used to define arrays
(#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) 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) Short array syntax must be used to define arrays
(#48) 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.
(#52) Short array syntax must be used to define arrays
(#57) 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.
(#61) There should be a comma after the last array item in a multi-line array.
mod/peerwork/db/install.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/peerwork/db/messages.php
(#27) Short array syntax must be used to define arrays
mod/peerwork/db/tasks.php
(#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.
mod/peerwork/db/uninstall.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/peerwork/db/upgrade.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/peerwork/details.php
(#35) Short array syntax must be used to define arrays
(#36) Short array syntax must be used to define arrays
(#37) Short array syntax must be used to define arrays
(#39) Short array syntax must be used to define arrays
(#77) There should be a comma after the last array item in a multi-line array.
(#86) There should be a comma after the last array item in a multi-line array.
(#107) There should be a comma after the last array item in a multi-line array.
(#189) There should be a comma after the last array item in a multi-line array.
(#213) Short array syntax must be used to define arrays
(#224) Short array syntax must be used to define arrays
(#227) Short array syntax must be used to define arrays
(#227) There should be a comma after the last array item in a multi-line array.
mod/peerwork/downloadallsubmissions.php
(#50) Logical operator "and" is prohibited; use "&&" instead
mod/peerwork/export.php
(#54) There should be a comma after the last array item in a multi-line array.
mod/peerwork/index.php
(#30) Short array syntax must be used to define arrays
(#36) Short array syntax must be used to define arrays
(#37) There should be a comma after the last array item in a multi-line array.
(#43) Short array syntax must be used to define arrays
(#51) Short array syntax must be used to define arrays
(#57) Short array syntax must be used to define arrays
(#58) Short array syntax must be used to define arrays
(#60) Short array syntax must be used to define arrays
(#61) Short array syntax must be used to define arrays
(#63) Short array syntax must be used to define arrays
(#64) Short array syntax must be used to define arrays
(#70) Short array syntax must be used to define arrays
(#72) Short array syntax must be used to define arrays
(#75) Short array syntax must be used to define arrays
(#79) Logical operator "or" is prohibited; use "||" instead
(#80) Short array syntax must be used to define arrays
(#82) Short array syntax must be used to define arrays
mod/peerwork/lib.php
(#75) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $mform.
(#111) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $mform.
(#259) Short array syntax must be used to define arrays
(#286) Short array syntax must be used to define arrays
(#354) Short array syntax must be used to define arrays
(#392) Short array syntax must be used to define arrays
(#407) Short array syntax must be used to define arrays
(#473) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $peerworknode.
(#575) Short array syntax must be used to define arrays
(#575) Expected 1 space before "=>"; 0 found
(#575) Expected 1 space after "=>"; 0 found
(#603) File must end with a newline character
mod/peerwork/locallib.php
(#139) Short array syntax must be used to define arrays
(#142) There should be a comma after the last array item in a multi-line array.
(#149) Short array syntax must be used to define arrays
(#152) There should be a comma after the last array item in a multi-line array.
(#176) There should be a comma after the last array item in a multi-line array.
(#182) Short array syntax must be used to define arrays
(#189) There should be a comma after the last array item in a multi-line array.
(#204) There should be a comma after the last array item in a multi-line array.
(#213) Short array syntax must be used to define arrays
(#220) There should be a comma after the last array item in a multi-line array.
(#290) There should be a comma after the last array item in a multi-line array.
(#311) There should be a comma after the last array item in a multi-line array.
(#436) Short array syntax must be used to define arrays
(#437) Short array syntax must be used to define arrays
(#479) Short array syntax must be used to define arrays
(#581) There should be a comma after the last array item in a multi-line array.
(#619) Short array syntax must be used to define arrays
(#640) Short array syntax must be used to define arrays
(#664) Short array syntax must be used to define arrays
(#665) Short array syntax must be used to define arrays
(#667) Short array syntax must be used to define arrays
(#703) Short array syntax must be used to define arrays
(#739) Short array syntax must be used to define arrays
(#748) There should be a comma after the last array item in a multi-line array.
(#762) Short array syntax must be used to define arrays
(#778) Short array syntax must be used to define arrays
(#796) Short array syntax must be used to define arrays
(#820) There should be a comma after the last array item in a multi-line array.
(#841) There should be a comma after the last array item in a multi-line array.
(#977) Short array syntax must be used to define arrays
(#981) Short array syntax must be used to define arrays
(#983) There should be a comma after the last array item in a multi-line array.
(#1008) There should be a comma after the last array item in a multi-line array.
(#1086) There should be a comma after the last array item in a multi-line array.
(#1119) Short array syntax must be used to define arrays
(#1123) Short array syntax must be used to define arrays
(#1127) There should be a comma after the last array item in a multi-line array.
(#1128) There should be a comma after the last array item in a multi-line array.
(#1154) Short array syntax must be used to define arrays
(#1158) Short array syntax must be used to define arrays
(#1162) There should be a comma after the last array item in a multi-line array.
(#1163) There should be a comma after the last array item in a multi-line array.
(#1207) Short array syntax must be used to define arrays
(#1210) Short array syntax must be used to define arrays
(#1210) There should be a comma after the last array item in a multi-line array.
(#1222) Short array syntax must be used to define arrays
(#1225) Short array syntax must be used to define arrays
(#1225) There should be a comma after the last array item in a multi-line array.
(#1247) Short array syntax must be used to define arrays
(#1254) Short array syntax must be used to define arrays
(#1263) Short array syntax must be used to define arrays
(#1266) Short array syntax must be used to define arrays
(#1267) There should be a comma after the last array item in a multi-line array.
(#1268) There should be a comma after the last array item in a multi-line array.
(#1276) Short array syntax must be used to define arrays
(#1279) Short array syntax must be used to define arrays
(#1280) There should be a comma after the last array item in a multi-line array.
(#1281) There should be a comma after the last array item in a multi-line array.
(#1323) Short array syntax must be used to define arrays
(#1356) There should be a comma after the last array item in a multi-line array.
(#1382) There should be a comma after the last array item in a multi-line array.
(#1383) There should be a comma after the last array item in a multi-line array.
(#1420) There should be a comma after the last array item in a multi-line array.
(#1506) There should be a comma after the last array item in a multi-line array.
mod/peerwork/mod_form.php
(#69) Short array syntax must be used to define arrays
(#90) Short array syntax must be used to define arrays
(#94) Short array syntax must be used to define arrays
(#216) There should be a comma after the last array item in a multi-line array.
(#243) There should be a comma after the last array item in a multi-line array.
(#250) There should be a comma after the last array item in a multi-line array.
(#278) 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.
mod/peerwork/release.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file release.php
(#47) There should be a comma after the last array item in a multi-line array.
(#66) 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.
mod/peerwork/renderer.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#61) Short array syntax must be used to define arrays
(#80) Short array syntax must be used to define arrays
(#88) Short array syntax must be used to define arrays
(#99) Short array syntax must be used to define arrays
(#113) 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
(#137) Short array syntax must be used to define arrays
(#230) Short array syntax must be used to define arrays
(#295) Short array syntax must be used to define arrays
mod/peerwork/settings.php
(#176) There should be a comma after the last array item in a multi-line array.
mod/peerwork/tests/behat/behat_mod_peerwork.php
(#65) Line exceeds 132 characters; contains 138 characters
(#101) Line exceeds 132 characters; contains 159 characters
mod/peerwork/tests/generator/lib.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#45) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $options.
mod/peerwork/tests/privacy_provider_test.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#57) Test method test_get_metadata() is missing any coverage information, own or at class level
(#57) No one-line description found in phpdocs for docblock of function test_get_metadata
(#65) Test method test_get_contexts_for_userid() is missing any coverage information, own or at class level
(#65) No one-line description found in phpdocs for docblock of function test_get_contexts_for_userid
(#152) Test method test_get_users_in_context() is missing any coverage information, own or at class level
(#256) Test method test_delete_data_for_all_users_in_context() is missing any coverage information, own or at class level
(#256) No one-line description found in phpdocs for docblock of function test_delete_data_for_all_users_in_context
(#375) Test method test_delete_data_for_user() is missing any coverage information, own or at class level
(#375) No one-line description found in phpdocs for docblock of function test_delete_data_for_user
(#445) There should be a comma after the last array item in a multi-line array.
(#495) Test method test_delete_data_for_users() is missing any coverage information, own or at class level
(#495) No one-line description found in phpdocs for docblock of function test_delete_data_for_users
(#615) Test method test_export_data_for_user() is missing any coverage information, own or at class level
(#615) No one-line description found in phpdocs for docblock of function test_export_data_for_user
(#654) There should be a comma after the last array item in a multi-line array.
mod/peerwork/version.php
(#33) Short array syntax must be used to define arrays
mod/peerwork/view.php
(#47) Short array syntax must be used to define arrays
(#48) Short array syntax must be used to define arrays
(#51) Short array syntax must be used to define arrays
(#52) 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.
(#72) 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.
(#113) Short array syntax must be used to define arrays
(#165) Short array syntax must be used to define arrays
(#171) There should be a comma after the last array item in a multi-line array.
(#179) Short array syntax must be used to define arrays
(#183) Short array syntax must be used to define arrays
(#212) Short array syntax must be used to define arrays
(#215) Short array syntax must be used to define arrays
(#216) Short array syntax must be used to define arrays
(#226) Short array syntax must be used to define arrays
(#313) Short array syntax must be used to define arrays
(#314) Short array syntax must be used to define arrays
(#320) Short array syntax must be used to define arrays
(#326) Short array syntax must be used to define arrays
(#337) Short array syntax must be used to define arrays
(#338) There should be a comma after the last array item in a multi-line array.

Javascript coding style problems

(11 errors, 4 warnings)

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

mod/peerwork/amd/src/inplace_editable.js
(#26) @package should be empty. (jsdoc/empty-tags)
(#41) 'cfg' is defined but never used. (no-unused-vars)
(#41) 'url' is defined but never used. (no-unused-vars)
(#41) 'autocomplete' is defined but never used. (no-unused-vars)
(#41) 'Pending' is defined but never used. (no-unused-vars)
(#65) Trailing spaces not allowed. (no-trailing-spaces)
(#67) Missing JSDoc @param "e" declaration. (jsdoc/require-param)
(#74) 'e' is defined but never used. (no-unused-vars)
(#80) Trailing spaces not allowed. (no-trailing-spaces)
(#97) Trailing spaces not allowed. (no-trailing-spaces)
(#102) Trailing spaces not allowed. (no-trailing-spaces)
mod/peerwork/amd/src/unlock-editing.js
(#54) Avoid nesting promises. (promise/no-nesting)
(#54) Avoid nesting promises. (promise/no-nesting)
(#85) Avoid nesting promises. (promise/no-nesting)
(#85) Avoid nesting promises. (promise/no-nesting)

CSS problems

(0 errors, 0 warnings)

This section shows CSS problems detected by stylelint [More info]


PHPDocs style problems

(1 errors, 0 warnings)

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

mod/peerwork/locallib.php
(#1675) Phpdocs for function add_all_calculator_plugins 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

(1 errors, 1 warnings)

This section shows files built by grunt and not commited [More info]

Problems running grunt
Task "gherkinlint" failed. Use --force to continue.

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 15 warnings)

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

mod/peerwork/templates/criterion_end.mustache
(#1) HTML Validation error, line 2: Stray end tag “div”. (> </div> <)
(#1) HTML Validation error, line 3: Stray end tag “div”. (/div> </div></div)
(#1) HTML Validation error, line 4: Stray end tag “div”. ( </div></div></b)
mod/peerwork/templates/criterion_start.mustache
(#1) HTML Validation error, line 15: End tag for “body” seen, but there were unclosed elements. ( </body></html)
(#1) HTML Validation error, line 13: Unclosed element “div”. (> <div class="mod_peerwork_peers col-md-12"> )
(#1) HTML Validation error, line 9: Unclosed element “div”. (/div> <div class="mod_peerwork_criteriarating row"> )
(#1) HTML Validation error, line 2: Unclosed element “div”. (ad><body><div class="mod_peerwork_criteria" data-criterionid=""> <)
mod/peerwork/templates/justifalert.mustache
(#1) Template produced no content
mod/peerwork/templates/peergrades_end.mustache
(#1) HTML Validation error, line 2: Stray end tag “div”. (body> </div> )
(#1) HTML Validation error, line 3: Stray end tag “div”. ( </div> )
(#1) HTML Validation error, line 4: Stray end tag “div”. ( </div></)
mod/peerwork/templates/peergrades_start.mustache
(#1) HTML Validation error, line 10: End tag for “body” seen, but there were unclosed elements. ( </body></html)
(#1) HTML Validation error, line 7: Unclosed element “div”. ( <div class="mod_peerwork_justif"> )
(#1) HTML Validation error, line 6: Unclosed element “div”. ( <div class="mod_peerwork_ratings col-md-9"> )
(#1) HTML Validation error, line 2: Unclosed element “div”. ( <div class="mod_peerwork_peer row" data-peerid=""> )
mod/peerwork/templates/peerwork_detail_summary.mustache
(#1) HTML Validation error, line 18: End tag “br”. (</table></br><)

Gherkin .feature problems

(0 errors, 0 warnings)

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