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

(26 errors, 55 warnings)

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

blocks/ranking/block_ranking.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#64) 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.
blocks/ranking/classes/external/ranking.php
(#36) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#136) Short array syntax must be used to define arrays
(#140) There should be a comma after the last array item in a multi-line array.
(#163) Short array syntax must be used to define arrays
(#166) Short array syntax must be used to define arrays
(#170) There should be a comma after the last array item in a multi-line array.
blocks/ranking/classes/output/block.php
(#74) There should be a comma after the last array item in a multi-line array.
(#82) There should be a comma after the last array item in a multi-line array.
blocks/ranking/classes/output/block_footer.php
(#65) There should be a comma after the last array item in a multi-line array.
(#72) There should be a comma after the last array item in a multi-line array.
blocks/ranking/classes/output/renderer.php
(#54) Missing docblock for function render_block_footer
blocks/ranking/classes/output/report.php
(#78) There should be a comma after the last array item in a multi-line array.
blocks/ranking/classes/rankinglib.php
(#66) There should be a comma after the last array item in a multi-line array.
blocks/ranking/db/access.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
blocks/ranking/db/events.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
blocks/ranking/db/services.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.
blocks/ranking/db/upgrade.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
blocks/ranking/graphs.php
(#33) Short array syntax must be used to define arrays
(#53) 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.
blocks/ranking/lang/en/block_ranking.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#30) The string key "nostudents" is not in the correct order, it should be before "ranking:addinstance"
(#31) The string key "blocktitle" is not in the correct order, it should be before "nostudents"
(#34) The string key "table_name" is not in the correct order, it should be before "table_position"
(#37) The string key "see_full_ranking" is not in the correct order, it should be before "your_score"
(#38) The string key "ranking_graphs" is not in the correct order, it should be before "see_full_ranking"
(#40) The string key "graph_types" is not in the correct order, it should be before "ranking_graphs"
(#41) The string key "graph_select_a_group" is not in the correct order, it should be before "graph_types"
(#42) The string key "graph_groups" is not in the correct order, it should be before "graph_select_a_group"
(#43) The string key "graph_group_evolution" is not in the correct order, it should be before "graph_groups"
(#46) Variable "$stirng" is not expected in a lang file
(#47) Variable "$stirng" is not expected in a lang file
(#50) The string key "report_head" is not in the correct order, it should be before "report_title"
(#52) Unexpected comment found. Auto-fixing will not work after this comment
(#53) The string key "rankingsize" is not in the correct order, it should be before "report_head"
(#55) The string key "configuration" is not in the correct order, it should be before "rankingsize_help"
(#57) Unexpected comment found. Auto-fixing will not work after this comment
(#59) The string key "assignpoints" is not in the correct order, it should be before "resourcepoints"
(#63) The string key "defaultpoints" is not in the correct order, it should be before "workshoppoints"
(#67) The string key "general" is not in the correct order, it should be before "weekly"
(#70) The string key "no" is not in the correct order, it should be before "yes"
(#72) The string key "enable_multiple_quizz_attempts" is not in the correct order, it should be before "no"
blocks/ranking/lang/pt_br/block_ranking.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#30) The string key "nostudents" is not in the correct order, it should be before "ranking:addinstance"
(#31) The string key "blocktitle" is not in the correct order, it should be before "nostudents"
(#34) The string key "table_name" is not in the correct order, it should be before "table_position"
(#37) The string key "see_full_ranking" is not in the correct order, it should be before "your_score"
(#38) The string key "ranking_graphs" is not in the correct order, it should be before "see_full_ranking"
(#39) The string key "graph_types" is not in the correct order, it should be before "ranking_graphs"
(#40) The string key "graph_select_a_group" is not in the correct order, it should be before "graph_types"
(#41) The string key "graph_groups" is not in the correct order, it should be before "graph_select_a_group"
(#42) The string key "graph_group_evolution" is not in the correct order, it should be before "graph_groups"
(#45) Variable "$stirng" is not expected in a lang file
(#46) Variable "$stirng" is not expected in a lang file
(#49) The string key "report_head" is not in the correct order, it should be before "report_title"
(#51) Unexpected comment found. Auto-fixing will not work after this comment
(#52) The string key "rankingsize" is not in the correct order, it should be before "report_head"
(#54) The string key "configuration" is not in the correct order, it should be before "rankingsize_help"
(#56) Unexpected comment found. Auto-fixing will not work after this comment
(#58) The string key "assignpoints" is not in the correct order, it should be before "resourcepoints"
(#62) The string key "defaultpoints" is not in the correct order, it should be before "workshoppoints"
(#66) The string key "general" is not in the correct order, it should be before "weekly"
(#69) The string key "no" is not in the correct order, it should be before "yes"
(#71) The string key "enable_multiple_quizz_attempts" is not in the correct order, it should be before "no"
blocks/ranking/lib.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
blocks/ranking/report.php
(#33) Short array syntax must be used to define arrays
blocks/ranking/settings.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#56) Short array syntax must be used to define arrays
(#58) There should be a comma after the last array item in a multi-line array.
blocks/ranking/tests/block_ranking_test.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#33) Testcase block_ranking_testcase should be declared as abstract.
(#33) PHPUnit testcase name "block_ranking_testcase" does not match file name "block_ranking_test"
(#33) PHPUnit class "block_ranking_testcase" does not have any namespace. It is recommended to add it to the "block_ranking" namespace, using more levels if needed, in order to match the code being tested
(#40) Test method test_adding() is missing any coverage information, own or at class level
(#40) Test method test_adding() is missing a return type
blocks/ranking/version.php
(#16) Boilerplate comment must be followed by a single blank line or end of file

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, 6 warnings)

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

blocks/ranking/templates/block.mustache
(#1) Example context missing (@template section not found.)
blocks/ranking/templates/block_footer.mustache
(#1) Example context missing (@template section not found.)
(#1) Template produced no content
blocks/ranking/templates/generalranking.mustache
(#1) Example context missing (@template section not found.)
blocks/ranking/templates/monthlyranking.mustache
(#1) Example context missing (@template section not found.)
blocks/ranking/templates/report.mustache
(#1) Example context missing (@template section not found.)
blocks/ranking/templates/weeklyranking.mustache
(#1) Example context missing (@template section not found.)

Gherkin .feature problems

(0 errors, 0 warnings)

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