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

(98 errors, 176 warnings)

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

admin/tool/forcedcache/classes/cache_administration_helper.php
(#43) 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
(#63) Short array syntax must be used to define arrays
(#66) Short array syntax must be used to define arrays
(#146) Short array syntax must be used to define arrays
(#177) Short array syntax must be used to define arrays
(#225) Short array syntax must be used to define arrays
(#228) 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
(#265) Short array syntax must be used to define arrays
admin/tool/forcedcache/classes/cache_config.php
(#121) There should be a comma after the last array item in a multi-line array.
(#175) There should be a comma after the last array item in a multi-line array.
(#207) Short array syntax must be used to define arrays
(#216) Short array syntax must be used to define arrays
(#260) There must not be a space before the colon in a return type declaration
(#262) Short array syntax must be used to define arrays
(#263) Short array syntax must be used to define arrays
(#266) There should be a comma after the last array item in a multi-line array.
(#268) Short array syntax must be used to define arrays
(#271) There should be a comma after the last array item in a multi-line array.
(#273) Short array syntax must be used to define arrays
(#276) There should be a comma after the last array item in a multi-line array.
(#277) There should be a comma after the last array item in a multi-line array.
(#326) Short array syntax must be used to define arrays
(#353) Short array syntax must be used to define arrays
(#379) Short array syntax must be used to define arrays
(#427) There must not be a space before the colon in a return type declaration
(#428) Short array syntax must be used to define arrays
(#429) Short array syntax must be used to define arrays
(#433) There should be a comma after the last array item in a multi-line array.
(#434) There should be a comma after the last array item in a multi-line array.
admin/tool/forcedcache/classes/cache_config_writer.php
(#17) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
admin/tool/forcedcache/classes/cache_factory.php
(#85) There must not be a space before the colon in a return type declaration
admin/tool/forcedcache/classes/check/enabled.php
(#54) There must not be a space before the colon in a return type declaration
admin/tool/forcedcache/classes/privacy/provider.php
(#36) There must not be a space before the colon in a return type declaration
admin/tool/forcedcache/lang/en/tool_forcedcache.php
(#28) Unexpected comment found. Auto-fixing will not work after this comment
(#29) The string key "page_status" is not in the correct order, it should be before "pluginname"
(#30) The string key "page_config_ok" is not in the correct order, it should be before "page_status"
(#31) The string key "page_config_broken" is not in the correct order, it should be before "page_config_ok"
(#35) The string key "page_rulesets" is not in the correct order, it should be before "page_store"
(#36) The string key "page_not_active" is not in the correct order, it should be before "page_rulesets"
(#37) The string key "page_active" is not in the correct order, it should be before "page_not_active"
(#39) Unexpected comment found. Auto-fixing will not work after this comment
(#40) The string key "config_json_parse_fail" is not in the correct order, it should be before "page_active"
(#41) The string key "config_array_parse_fail" is not in the correct order, it should be before "config_json_parse_fail"
(#48) The string key "store_bad_type" is not in the correct order, it should be before "store_missing_fields"
(#52) Unexpected comment found. Auto-fixing will not work after this comment
(#53) The string key "definition_overrides_title" is not in the correct order, it should be before "store_not_ready"
(#54) The string key "definition_name" is not in the correct order, it should be before "definition_overrides_title"
(#63) Unexpected comment found. Auto-fixing will not work after this comment
(#64) The string key "checkforcedcache" is not in the correct order, it should be before "store_value"
admin/tool/forcedcache/tests/cache_config_test.php
(#28) Unit test cache_config_test should be declared as final.
(#44) Test method test_read_config_file_from_invalid_path() is missing a return type
(#64) There should be a comma after the last array item in a multi-line array.
(#69) Test method test_read_valid_config_file() is missing a return type
(#93) Test method test_read_garbled_config_file() is missing a return type
(#115) Test method test_read_non_existent_config_file() is missing a return type
(#138) Test method test_generate_store_instance_config() is missing a return type
(#177) Test method test_default_mode_mappings() is missing a return type
(#189) Test method test_generated_mode_mappings_for_definitionmatchtopruleset() is missing a return type
(#206) Test method test_generated_mode_mappings_for_definitionnoruleset() is missing a return type
(#220) Test method test_generate_definition_mappings_from_rules() is missing a return type
admin/tool/forcedcache/tests/fixtures/definition_mappings_data.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file definition_mappings_data.php
(#19) Short array syntax must be used to define arrays
(#20) Short array syntax must be used to define arrays
(#22) 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
(#38) Short array syntax must be used to define arrays
(#39) Short array syntax must be used to define arrays
(#41) 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
(#45) There should be a comma after the last array item in a multi-line array.
(#46) There should be a comma after the last array item in a multi-line array.
(#48) Short array syntax must be used to define arrays
(#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.
(#51) There should be a comma after the last array item in a multi-line array.
(#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) 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.
(#57) Short array syntax must be used to define arrays
(#59) Short array syntax must be used to define arrays
(#65) 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.
(#70) 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
(#74) Short array syntax must be used to define arrays
(#76) Short array syntax must be used to define arrays
(#90) Short array syntax must be used to define arrays
(#91) Short array syntax must be used to define arrays
(#92) Short array syntax must be used to define arrays
(#93) Short array syntax must be used to define arrays
(#95) There should be a comma after the last array item in a multi-line array.
(#97) Short array syntax must be used to define arrays
(#99) 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.
(#102) Short array syntax must be used to define arrays
(#103) 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.
(#105) There should be a comma after the last array item in a multi-line array.
(#106) There should be a comma after the last array item in a multi-line array.
(#108) Short array syntax must be used to define arrays
(#109) Short array syntax must be used to define arrays
(#109) There should be a comma after the last array item in a multi-line array.
(#111) Short array syntax must be used to define arrays
(#113) Short array syntax must be used to define arrays
(#117) There should be a comma after the last array item in a multi-line array.
(#118) There should be a comma after the last array item in a multi-line array.
(#121) Short array syntax must be used to define arrays
(#122) Short array syntax must be used to define arrays
(#124) 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
(#140) Short array syntax must be used to define arrays
(#141) Short array syntax must be used to define arrays
(#143) There should be a comma after the last array item in a multi-line array.
(#145) Short array syntax must be used to define arrays
(#147) There should be a comma after the last array item in a multi-line array.
(#148) There should be a comma after the last array item in a multi-line array.
(#150) Short array syntax must be used to define arrays
(#151) 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) Short array syntax must be used to define arrays
(#157) 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.
(#160) Short array syntax must be used to define arrays
(#161) Short array syntax must be used to define arrays
(#162) There should be a comma after the last array item in a multi-line array.
(#163) There should be a comma after the last array item in a multi-line array.
(#164) There should be a comma after the last array item in a multi-line array.
(#166) Short array syntax must be used to define arrays
(#167) Short array syntax must be used to define arrays
(#167) There should be a comma after the last array item in a multi-line array.
(#169) Short array syntax must be used to define arrays
(#171) Short array syntax must be used to define arrays
(#175) 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.
(#179) Short array syntax must be used to define arrays
(#180) Short array syntax must be used to define arrays
(#182) Short array syntax must be used to define arrays
(#196) Short array syntax must be used to define arrays
(#197) Short array syntax must be used to define arrays
(#198) Short array syntax must be used to define arrays
(#199) Short array syntax must be used to define arrays
(#201) There should be a comma after the last array item in a multi-line array.
(#203) Short array syntax must be used to define arrays
(#205) 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.
(#208) Short array syntax must be used to define arrays
(#209) Short array syntax must be used to define arrays
(#211) 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
(#215) There should be a comma after the last array item in a multi-line array.
(#216) There should be a comma after the last array item in a multi-line array.
(#218) Short array syntax must be used to define arrays
(#219) Short array syntax must be used to define arrays
(#221) There should be a comma after the last array item in a multi-line array.
(#223) Short array syntax must be used to define arrays
(#224) There should be a comma after the last array item in a multi-line array.
(#225) There should be a comma after the last array item in a multi-line array.
(#226) There should be a comma after the last array item in a multi-line array.
(#228) Short array syntax must be used to define arrays
(#229) Short array syntax must be used to define arrays
(#229) There should be a comma after the last array item in a multi-line array.
(#231) Short array syntax must be used to define arrays
(#232) There should be a comma after the last array item in a multi-line array.
admin/tool/forcedcache/tests/fixtures/mode_mappings_data.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file mode_mappings_data.php
(#19) Short array syntax must be used to define arrays
(#20) Short array syntax must be used to define arrays
(#23) There should be a comma after the last array item in a multi-line array.
(#25) Short array syntax must be used to define arrays
(#28) There should be a comma after the last array item in a multi-line array.
(#30) Short array syntax must be used to define arrays
(#33) There should be a comma after the last array item in a multi-line array.
(#34) 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
(#38) Short array syntax must be used to define arrays
(#41) 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
(#46) There should be a comma after the last array item in a multi-line array.
(#48) 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.
(#52) There should be a comma after the last array item in a multi-line array.
admin/tool/forcedcache/tests/fixtures/stores_data.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file stores_data.php
(#19) Short array syntax must be used to define arrays
(#20) Short array syntax must be used to define arrays
(#21) Short array syntax must be used to define arrays
(#23) Short array syntax must be used to define arrays
(#25) There should be a comma after the last array item in a multi-line array.
(#26) There should be a comma after the last array item in a multi-line array.
(#27) There should be a comma after the last array item in a multi-line array.
(#29) Short array syntax must be used to define arrays
(#31) Short array syntax must be used to define arrays
(#35) Short array syntax must be used to define arrays
(#47) Short array syntax must be used to define arrays
(#51) Short array syntax must be used to define arrays
(#60) Short array syntax must be used to define arrays
(#64) Short array syntax must be used to define arrays
(#73) Short array syntax must be used to define arrays
(#77) Short array syntax must be used to define arrays
(#84) 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.
(#88) Short array syntax must be used to define arrays
(#89) Short array syntax must be used to define arrays
(#90) Short array syntax must be used to define arrays
(#92) Short array syntax must be used to define arrays
(#94) There should be a comma after the last array item in a multi-line array.
(#95) There should be a comma after the last array item in a multi-line array.
(#97) Short array syntax must be used to define arrays
(#99) 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.
(#102) There should be a comma after the last array item in a multi-line array.
(#103) 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
(#107) Short array syntax must be used to define arrays
(#111) Short array syntax must be used to define arrays
(#123) Short array syntax must be used to define arrays
(#127) Short array syntax must be used to define arrays
(#139) Short array syntax must be used to define arrays
(#143) Short array syntax must be used to define arrays
(#152) Short array syntax must be used to define arrays
(#156) Short array syntax must be used to define arrays
(#165) Short array syntax must be used to define arrays
(#169) Short array syntax must be used to define arrays
(#176) There should be a comma after the last array item in a multi-line array.
(#177) There should be a comma after the last array item in a multi-line array.
(#180) Short array syntax must be used to define arrays
(#181) Short array syntax must be used to define arrays
(#183) Short array syntax must be used to define arrays
(#185) Short array syntax must be used to define arrays
(#189) Short array syntax must be used to define arrays
(#198) Short array syntax must be used to define arrays
(#202) Short array syntax must be used to define arrays
(#211) Short array syntax must be used to define arrays
(#215) Short array syntax must be used to define arrays
(#222) There should be a comma after the last array item in a multi-line array.
(#223) There should be a comma after the last array item in a multi-line array.
(#226) Short array syntax must be used to define arrays
(#227) Short array syntax must be used to define arrays
(#228) Short array syntax must be used to define arrays
(#230) Short array syntax must be used to define arrays
(#231) There should be a comma after the last array item in a multi-line array.
(#232) There should be a comma after the last array item in a multi-line array.
(#233) There should be a comma after the last array item in a multi-line array.
(#234) There should be a comma after the last array item in a multi-line array.
(#237) Short array syntax must be used to define arrays
(#238) Short array syntax must be used to define arrays
(#239) Short array syntax must be used to define arrays
(#241) There should be a comma after the last array item in a multi-line array.
(#242) 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
(#247) Short array syntax must be used to define arrays
(#249) Short array syntax must be used to define arrays
(#251) 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.
(#254) Short array syntax must be used to define arrays
(#256) Short array syntax must be used to define arrays
(#260) Short array syntax must be used to define arrays
(#269) Short array syntax must be used to define arrays
(#273) Short array syntax must be used to define arrays
(#282) Short array syntax must be used to define arrays
(#286) Short array syntax must be used to define arrays
(#293) There should be a comma after the last array item in a multi-line array.
(#294) 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

(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]