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

(295 errors, 191 warnings)

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

enrol/attributes/classes/privacy/provider.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#29) Missing docblock for class provider
(#37) There must not be a space before the colon in a return type declaration
enrol/attributes/classes/task/invalidatecache_task.php
(#1) No one-line description found in phpdocs for docblock of file invalidatecache_task.php
(#26) Missing docblock for class invalidatecache_task
enrol/attributes/classes/task/processenrolments_task.php
(#1) No one-line description found in phpdocs for docblock of file processenrolments_task.php
(#26) Missing docblock for class processenrolments_task
(#42) "require_once" must be immediately followed by an open parenthesis
enrol/attributes/cli/sync.php
(#1) No one-line description found in phpdocs for docblock of file sync.php
(#31) Short array syntax must be used to define arrays
(#31) Short array syntax must be used to define arrays
enrol/attributes/db/access.php
(#1) No one-line description found in phpdocs for docblock of file access.php
(#26) Short array syntax must be used to define arrays
(#28) Short array syntax must be used to define arrays
(#31) 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.
(#35) 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.
enrol/attributes/db/caches.php
(#1) No one-line description found in phpdocs for docblock of file caches.php
(#26) Short array syntax must be used to define arrays
(#27) 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.
enrol/attributes/db/events.php
(#1) No one-line description found in phpdocs for docblock of file events.php
(#24) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#24) Short array syntax must be used to define arrays
(#25) Short array syntax must be used to define arrays
(#32) Short array syntax must be used to define arrays
(#39) Short array syntax must be used to define arrays
(#46) Short array syntax must be used to define arrays
enrol/attributes/db/install.php
(#1) No one-line description found in phpdocs for docblock of file install.php
(#24) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#26) Missing docblock for function xmldb_enrol_attributes_install
enrol/attributes/db/tasks.php
(#1) No one-line description found in phpdocs for docblock of file tasks.php
(#34) There should be a comma after the last array item in a multi-line array.
(#43) There should be a comma after the last array item in a multi-line array.
enrol/attributes/db/upgrade.php
(#1) No one-line description found in phpdocs for docblock of file upgrade.php
(#24) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#26) Missing docblock for function xmldb_enrol_attributes_upgrade
(#33) Inline comments must end in full-stops, exclamation marks, or question marks
(#36) Inline comments must end in full-stops, exclamation marks, or question marks
(#41) Inline comments must end in full-stops, exclamation marks, or question marks
(#46) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) File must end with a newline character
enrol/attributes/edit.php
(#1) No one-line description found in phpdocs for docblock of file edit.php
(#28) Inline comments must start with a capital letter, digit or 3-dots sequence
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
(#30) Short array syntax must be used to define arrays
(#36) Short array syntax must be used to define arrays
(#38) There should be a comma after the last array item in a multi-line array.
(#42) Short array syntax must be used to define arrays
(#48) Expected "if (...) {\n"; found "if(...){\n"
(#49) Commas (,) must be followed by white space.
(#56) Short array syntax must be used to define arrays
(#59) There should be a comma after the last array item in a multi-line array.
(#62) Expected "} else {\n"; found "}\nelse {\n"
(#64) Inline comments must start with a capital letter, digit or 3-dots sequence
(#64) Inline comments must end in full-stops, exclamation marks, or question marks
(#65) Short array syntax must be used to define arrays
(#71) 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.
(#80) Usage of ELSEIF not allowed; use ELSE IF instead
(#88) Inline comments must end in full-stops, exclamation marks, or question marks
(#90) Inline comments must end in full-stops, exclamation marks, or question marks
(#92) Expected "} else {\n"; found "}\n else {\n"
(#93) 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.
(#111) function name "getRulesWithGroups" must be lower-case letters only
(#111) Expected 1 space before opening brace; found 0
(#123) Short array syntax must be used to define arrays
(#130) Inline comments must end in full-stops, exclamation marks, or question marks
(#132) The use of function print_r() is forbidden
(#133) Variable "debug_fieldsandrules" must not contain underscores.
(#134) The use of function print_r() is forbidden
(#134) Variable "debug_fieldsandrules" must not contain underscores.
(#135) Variable "debug_arraysql" must not contain underscores.
(#135) Variable "debug_fieldsandrules" must not contain underscores.
(#136) The use of function print_r() is forbidden
(#136) Variable "debug_arraysql" must not contain underscores.
(#137) Variable "debug_sqlquery" must not contain underscores.
(#138) Variable "debug_arraysql" must not contain underscores.
(#138) Variable "debug_arraysql" must not contain underscores.
(#139) The use of function print_r() is forbidden
(#139) Variable "debug_sqlquery" must not contain underscores.
(#140) Variable "debug_users" must not contain underscores.
(#140) Variable "debug_sqlquery" must not contain underscores.
(#140) Variable "debug_arraysql" must not contain underscores.
(#141) The use of function print_r() is forbidden
(#141) Variable "debug_users" must not contain underscores.
(#142) Inline comments must start with a capital letter, digit or 3-dots sequence
(#142) This comment is 55% valid code; is this commented out code?
(#142) Expected 1 space before comment text but found 4; use block comment if you need indentation
(#143) Expected 1 space before comment text but found 4; use block comment if you need indentation
(#144) Inline comments must end in full-stops, exclamation marks, or question marks
(#144) Expected 1 space before comment text but found 4; use block comment if you need indentation
(#146) Inline comments must end in full-stops, exclamation marks, or question marks
enrol/attributes/edit_form.php
(#1) No one-line description found in phpdocs for docblock of file edit_form.php
(#27) "require_once" must be immediately followed by an open parenthesis
(#29) Missing docblock for class enrol_attributes_edit_form
(#31) Missing docblock for function definition
(#31) Visibility must be declared on method "definition"
(#34) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#47) Inline comments must end in full-stops, exclamation marks, or question marks
(#52) Short array syntax must be used to define arrays
(#63) Line exceeds maximum limit of 180 characters; contains 181 characters
(#66) Expected "} else {\n"; found "}\n else {\n"
(#67) Line exceeds maximum limit of 180 characters; contains 185 characters
(#70) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#72) Inline comments must end in full-stops, exclamation marks, or question marks
(#73) 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.
(#79) Line exceeds maximum limit of 180 characters; contains 200 characters
(#100) Missing docblock for function add_action_buttons
(#100) Visibility must be declared on method "add_action_buttons"
(#106) Inline comments must start with a capital letter, digit or 3-dots sequence
(#106) Inline comments must end in full-stops, exclamation marks, or question marks
(#106) No space found before comment text; expected "// when two elements we need a group" but found "//when two elements we need a group"
(#107) Short array syntax must be used to define arrays
(#110) Short array syntax must be used to define arrays
(#112) There should be a comma after the last array item in a multi-line array.
(#114) Short array syntax must be used to define arrays
(#116) There should be a comma after the last array item in a multi-line array.
(#118) Short array syntax must be used to define arrays
enrol/attributes/force.php
(#1) No one-line description found in phpdocs for docblock of file force.php
(#34) Short array syntax must be used to define arrays
(#52) Expected "} else {\n"; found "}\nelse {\n"
enrol/attributes/jsparams.php
(#1) No one-line description found in phpdocs for docblock of file jsparams.php
(#24) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#30) Short array syntax must be used to define arrays
(#35) Short array syntax must be used to define arrays
(#41) 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.
enrol/attributes/lang/en/enrol_attributes.php
(#1) No one-line description found in phpdocs for docblock of file enrol_attributes.php
(#25) The string key "defaultrole" is not in the correct order, it should be before "pluginname"
(#27) The string key "attrsyntax" is not in the correct order, it should be before "defaultrole_desc"
(#29) The string key "attributes:config" is not in the correct order, it should be before "attrsyntax_help"
(#33) The string key "ajax-error" is not in the correct order, it should be before "attributes:unenrolself"
(#35) The string key "ajax-okforced" is not in the correct order, it should be before "ajax-okpurged"
(#37) The string key "force" is not in the correct order, it should be before "purge"
(#38) The string key "confirmforce" is not in the correct order, it should be before "force"
(#49) The string key "addcondition" is not in the correct order, it should be before "removewhenexpired_help"
(#53) The string key "defaultwhenexpired" is not in the correct order, it should be before "privacy:metadata"
(#60) The string key "observelogins" is not in the correct order, it should be before "whenexpiredsuspend"
(#62) The string key "cachedef_dbquerycache" is not in the correct order, it should be before "observelogins_desc"
(#67) The string key "listitem_description" is not in the correct order, it should be before "no_profile_field_selected"
enrol/attributes/lang/fr/enrol_attributes.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file enrol_attributes.php
enrol/attributes/lib.php
(#1) No one-line description found in phpdocs for docblock of file lib.php
(#25) "require_once" must be immediately followed by an open parenthesis
(#26) "require_once" must be immediately followed by an open parenthesis
(#36) Missing member variable doc comment
(#45) Whitespace found at end of line
(#46) Inline comments must end in full-stops, exclamation marks, or question marks
(#49) Inline comments must end in full-stops, exclamation marks, or question marks
(#52) Inline comments must end in full-stops, exclamation marks, or question marks
(#55) Whitespace found at end of line
(#56) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) Variable "enrol_instances" must not contain underscores.
(#57) Short array syntax must be used to define arrays
(#59) There should be a comma after the last array item in a multi-line array.
(#61) Whitespace found at end of line
(#62) Variable "enrol_instances" must not contain underscores.
(#64) Inline comments must end in full-stops, exclamation marks, or question marks
(#65) Variable "user_enrolment" must not contain underscores.
(#65) Short array syntax must be used to define arrays
(#67) There should be a comma after the last array item in a multi-line array.
(#69) Whitespace found at end of line
(#70) Variable "user_enrolment" must not contain underscores.
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#73) Whitespace found at end of line
(#74) Inline comments must end in full-stops, exclamation marks, or question marks
(#77) Whitespace found at end of line
(#80) Whitespace found at end of line
(#82) Short array syntax must be used to define arrays
(#83) Whitespace found at end of line
(#84) Variable "still_valid" must not contain underscores.
(#85) Whitespace found at end of line
(#86) Variable "still_valid" must not contain underscores.
(#87) Inline comments must end in full-stops, exclamation marks, or question marks
(#88) Variable "enrol_plugin" must not contain underscores.
(#89) Whitespace found at end of line
(#92) Inline comments must end in full-stops, exclamation marks, or question marks
(#93) Variable "enrol_plugin" must not contain underscores.
(#94) Whitespace found at end of line
(#95) Inline comments must end in full-stops, exclamation marks, or question marks
(#97) Short array syntax must be used to define arrays
(#98) Variable "user_enrolment" must not contain underscores.
(#102) Short array syntax must be used to define arrays
(#102) There should be a comma after the last array item in a multi-line array.
(#105) Whitespace found at end of line
(#106) Inline comments must end in full-stops, exclamation marks, or question marks
(#107) Short array syntax must be used to define arrays
(#113) Whitespace found at end of line
(#115) Inline comments must end in full-stops, exclamation marks, or question marks
(#116) Variable "enrol_plugin" must not contain underscores.
(#117) Whitespace found at end of line
(#118) Inline comments must end in full-stops, exclamation marks, or question marks
(#120) Short array syntax must be used to define arrays
(#121) Variable "user_enrolment" must not contain underscores.
(#125) Short array syntax must be used to define arrays
(#127) There should be a comma after the last array item in a multi-line array.
(#128) There should be a comma after the last array item in a multi-line array.
(#131) Whitespace found at end of line
(#132) Inline comments must end in full-stops, exclamation marks, or question marks
(#146) Inline comments must start with a capital letter, digit or 3-dots sequence
(#146) Inline comments must end in full-stops, exclamation marks, or question marks
(#148) Inline comments must start with a capital letter, digit or 3-dots sequence
(#148) Inline comments must end in full-stops, exclamation marks, or question marks
(#153) Inline comments must start with a capital letter, digit or 3-dots sequence
(#154) Line exceeds 132 characters; contains 143 characters
(#154) Inline comments must end in full-stops, exclamation marks, or question marks
(#156) Short array syntax must be used to define arrays
(#160) Short array syntax must be used to define arrays
(#161) Variable "mappings_str" must not contain underscores.
(#162) Variable "mappings_str" must not contain underscores.
(#162) Variable "mapping_str" must not contain underscores.
(#163) Variable "mapping_str" must not contain underscores.
(#170) Inline comments must start with a capital letter, digit or 3-dots sequence
(#170) Inline comments must end in full-stops, exclamation marks, or question marks
(#182) Inline comments must start with a capital letter, digit or 3-dots sequence
(#182) Inline comments must end in full-stops, exclamation marks, or question marks
(#191) No one-line description found in phpdocs for docblock of function process_enrolments
(#199) Variable "possible_unenrolments" must not contain underscores.
(#199) Short array syntax must be used to define arrays
(#204) Inline comments must end in full-stops, exclamation marks, or question marks
(#205) Variable "enrol_attributes_records" must not contain underscores.
(#205) Short array syntax must be used to define arrays
(#208) There should be a comma after the last array item in a multi-line array.
(#211) Expected "} else {\n"; found "}\n else {\n"
(#214) Inline comments must end in full-stops, exclamation marks, or question marks
(#215) Variable "enrol_attributes_records" must not contain underscores.
(#215) Short array syntax must be used to define arrays
(#217) There should be a comma after the last array item in a multi-line array.
(#220) Inline comments must end in full-stops, exclamation marks, or question marks
(#225) Inline comments must end in full-stops, exclamation marks, or question marks
(#227) Variable "possible_unenrolments" must not contain underscores.
(#228) Line exceeds maximum limit of 180 characters; contains 203 characters
(#229) Short array syntax must be used to define arrays
(#231) Variable "possible_unenrolments" must not contain underscores.
(#232) Line exceeds maximum limit of 180 characters; contains 188 characters
(#233) Short array syntax must be used to define arrays
(#237) Inline comments must start with a capital letter, digit or 3-dots sequence
(#238) Variable "possible_unenrolments" must not contain underscores.
(#238) Variable "user_enrolment" must not contain underscores.
(#240) Inline comments must start with a capital letter, digit or 3-dots sequence
(#240) Inline comments must end in full-stops, exclamation marks, or question marks
(#241) TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
(#241) Line exceeds maximum limit of 180 characters; contains 189 characters
(#245) Variable "unenrol_attributes_record" must not contain underscores.
(#245) Short array syntax must be used to define arrays
(#248) Variable "user_enrolment" must not contain underscores.
(#248) There should be a comma after the last array item in a multi-line array.
(#251) Variable "unenrol_attributes_record" must not contain underscores.
(#255) Variable "unenrol_attributes_record" must not contain underscores.
(#260) Variable "user_enrolment" must not contain underscores.
(#261) Variable "unenrol_attributes_record" must not contain underscores.
(#264) Variable "users_cache" must not contain underscores.
(#265) Variable "users_cache" must not contain underscores.
(#266) Variable "users_cache" must not contain underscores.
(#269) Expected "} else {\n"; found "}\n else {\n"
(#276) Variable "user_enrolment" must not contain underscores.
(#277) Inline comments must end in full-stops, exclamation marks, or question marks
(#278) Variable "enrol_attributes_instance" must not contain underscores.
(#279) Variable "unenrol_attributes_record" must not contain underscores.
(#280) Variable "enrol_attributes_instance" must not contain underscores.
(#280) Variable "unenrol_attributes_record" must not contain underscores.
(#280) Variable "user_enrolment" must not contain underscores.
(#281) Whitespace found at end of line
(#282) Inline comments must end in full-stops, exclamation marks, or question marks
(#283) Short array syntax must be used to define arrays
(#283) Variable "unenrol_attributes_record" must not contain underscores.
(#285) Variable "user_enrolment" must not contain underscores.
(#288) Usage of ELSEIF not allowed; use ELSE IF instead
(#288) Variable "unenrol_attributes_record" must not contain underscores.
(#289) Variable "enrol_attributes_instance" must not contain underscores.
(#289) Variable "unenrol_attributes_record" must not contain underscores.
(#289) Variable "user_enrolment" must not contain underscores.
(#291) Inline comments must end in full-stops, exclamation marks, or question marks
(#297) Inline comments must start with a capital letter, digit or 3-dots sequence
(#298) Variable "enrol_attributes_records" must not contain underscores.
(#298) Variable "enrol_attributes_record" must not contain underscores.
(#300) TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
(#300) Line exceeds 132 characters; contains 158 characters
(#301) Inline comments must start with a capital letter, digit or 3-dots sequence
(#301) Inline comments must end in full-stops, exclamation marks, or question marks
(#305) Variable "enrol_attributes_record" must not contain underscores.
(#309) Inline comments must start with a capital letter, digit or 3-dots sequence
(#309) Inline comments must end in full-stops, exclamation marks, or question marks
(#312) Variable "configured_profilefields" must not contain underscores.
(#317) Variable "configured_profilefields" must not contain underscores.
(#321) Variable "enrol_attributes_instance" must not contain underscores.
(#322) Variable "enrol_attributes_instance" must not contain underscores.
(#322) Variable "enrol_attributes_record" must not contain underscores.
(#325) Inline comments must start with a capital letter, digit or 3-dots sequence
(#325) Inline comments must end in full-stops, exclamation marks, or question marks
(#329) Expected "} else {\n"; found "}\n else { // called by scheduled task or by construct\n"
(#329) Inline comments must start with a capital letter, digit or 3-dots sequence
(#329) Inline comments must end in full-stops, exclamation marks, or question marks
(#333) Variable "enrol_attributes_record" must not contain underscores.
(#337) Inline comments must end in full-stops, exclamation marks, or question marks
(#337) No space found before comment text; expected "// TODO fix bug related to cache : users are not unenrolled" but found "//TODO fix bug related to cache : users are not unenrolled"
(#338) Variable "users_cache" must not contain underscores.
(#339) Variable "users_cache" must not contain underscores.
(#340) Variable "users_cache" must not contain underscores.
(#350) Variable "enrol_attributes_record" must not contain underscores.
(#351) Inline comments must start with a capital letter, digit or 3-dots sequence
(#351) Inline comments must end in full-stops, exclamation marks, or question marks
(#353) Inline comments must end in full-stops, exclamation marks, or question marks
(#354) Variable "enrol_attributes_instance" must not contain underscores.
(#354) Variable "enrol_attributes_record" must not contain underscores.
(#355) Variable "enrol_attributes_record" must not contain underscores.
(#357) Whitespace found at end of line
(#358) Inline comments must end in full-stops, exclamation marks, or question marks
(#359) Variable "enrol_attributes_record" must not contain underscores.
(#363) Inline comments must end in full-stops, exclamation marks, or question marks
(#367) TRUE, FALSE and NULL must be lowercase; expected "false" but found "FALSE"
(#367) Line exceeds 132 characters; contains 154 characters
(#368) Inline comments must start with a capital letter, digit or 3-dots sequence
(#368) Inline comments must end in full-stops, exclamation marks, or question marks
(#387) No one-line description found in phpdocs for docblock of function restore_group_member
(#393) Missing docblock for function attrsyntax_toarray
(#393) Opening brace must be the last content on the line
(#393) Inline comments must end in full-stops, exclamation marks, or question marks
(#396) Variable "attrsyntax_object" must not contain underscores.
(#397) Variable "attrsyntax_object" must not contain underscores.
(#399) Short array syntax must be used to define arrays
(#404) Short array syntax must be used to define arrays
(#406) There should be a comma after the last array item in a multi-line array.
(#410) Missing docblock for function arraysyntax_tosql
(#410) Variable "join_id" must not contain underscores.
(#414) Short array syntax must be used to define arrays
(#420) Expected "} else {\n"; found "}\n else {\n"
(#423) Inline comments must start with a capital letter, digit or 3-dots sequence
(#423) Inline comments must end in full-stops, exclamation marks, or question marks
(#429) Variable "sub_arraysyntax" must not contain underscores.
(#429) Short array syntax must be used to define arrays
(#431) There should be a comma after the last array item in a multi-line array.
(#433) Variable "sub_sql" must not contain underscores.
(#433) Variable "sub_arraysyntax" must not contain underscores.
(#433) Variable "join_id" must not contain underscores.
(#434) Variable "sub_sql" must not contain underscores.
(#435) Variable "sub_sql" must not contain underscores.
(#436) Variable "sub_sql" must not contain underscores.
(#437) Usage of ELSEIF not allowed; use ELSE IF instead
(#438) Inline comments must start with a capital letter, digit or 3-dots sequence
(#438) Inline comments must end in full-stops, exclamation marks, or question marks
(#439) Variable "join_id" must not contain underscores.
(#440) Variable "join_id" must not contain underscores.
(#441) Variable "join_id" must not contain underscores.
(#441) Variable "join_id" must not contain underscores.
(#441) Variable "join_id" must not contain underscores.
(#441) Line exceeds 132 characters; contains 157 characters
(#450) Line exceeds 132 characters; contains 146 characters
(#480) Expected "if (...) {\n"; found "if(...) {\n"
(#481) Inline comments must end in full-stops, exclamation marks, or question marks
(#487) Short array syntax must be used to define arrays
(#490) There should be a comma after the last array item in a multi-line array.
(#494) Missing docblock for function purge_instance
(#498) Expected "if (...) {\n"; found "if(...) {\n"
(#499) Variable "enrol_attributes_record" must not contain underscores.
(#500) Variable "enrolment_records" must not contain underscores.
(#500) Variable "enrol_attributes_record" must not contain underscores.
(#501) Variable "enrolment_records" must not contain underscores.
(#502) Variable "enrol_attributes_record" must not contain underscores.
(#532) Logical operator "or" is prohibited; use "||" instead
(#536) Variable "configured_profilefields" must not contain underscores.
(#537) Variable "configured_profilefields" must not contain underscores.
(#538) Inline comments must start with a capital letter, digit or 3-dots sequence
(#538) Inline comments must end in full-stops, exclamation marks, or question marks
(#542) Inline comments must start with a capital letter, digit or 3-dots sequence
(#542) Inline comments must end in full-stops, exclamation marks, or question marks
(#543) Short array syntax must be used to define arrays
(#603) Short array syntax must be used to define arrays
(#606) Short array syntax must be used to define arrays
(#608) There should be a comma after the last array item in a multi-line array.
(#611) Short array syntax must be used to define arrays
(#617) Line indented incorrectly; expected at least 4 spaces, found 3
(#647) Short array syntax must be used to define arrays
(#649) There should be a comma after the last array item in a multi-line array.
(#654) File must end with a newline character
enrol/attributes/locallib.php
(#1) No one-line description found in phpdocs for docblock of file locallib.php
(#24) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#26) Missing docblock for constant ENROL_ATTRIBUTES_WHENEXPIREDDONOTHING
(#27) Missing docblock for constant ENROL_ATTRIBUTES_WHENEXPIREDREMOVE
(#28) Missing docblock for constant ENROL_ATTRIBUTES_WHENEXPIREDSUSPEND
enrol/attributes/purge.php
(#1) No one-line description found in phpdocs for docblock of file purge.php
(#34) Short array syntax must be used to define arrays
(#43) Expected "} else {\n"; found "}\nelse {\n"
enrol/attributes/settings.php
(#1) No one-line description found in phpdocs for docblock of file settings.php
(#26) "require_once" must be immediately followed by an open parenthesis
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
(#34) Variable "student_role" must not contain underscores.
(#38) Variable "student_role" must not contain underscores.
(#50) Inline comments must end in full-stops, exclamation marks, or question marks
(#81) Commas (,) must be followed by white space.
(#85) Inline comments must end in full-stops, exclamation marks, or question marks
(#86) Line exceeds maximum limit of 180 characters; contains 193 characters
(#88) Inline comments must end in full-stops, exclamation marks, or question marks
enrol/attributes/tests/attributes_test.php
(#1) Moodle boilerplate not found
(#3) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#6) Inline comments must end in full-stops, exclamation marks, or question marks
(#6) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#9) "require_once" must be immediately followed by an open parenthesis
(#11) Unit test attributes_test should be declared as final.
(#11) Missing @copyright tag
(#11) Missing @license tag
(#11) Missing docblock for class attributes_test
(#11) PHPUnit test file missing any valid testcase class declaration
(#12) Opening brace should be on the same line as the declaration for class attributes_test
(#30) The setUp() method in unit tests must always call to parent::setUp().
(#31) Opening brace should be on the same line as the declaration
(#38) Variable "new_rec" must not contain underscores.
(#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) Variable "new_rec" must not contain underscores.
(#45) Inline comments must start with a capital letter, digit or 3-dots sequence
(#46) Variable "new_rec" must not contain underscores.
(#47) Variable "new_rec" must not contain underscores.
(#61) Variable "user_info_data" must not contain underscores.
(#64) There should be a comma after the last array item in a multi-line array.
(#66) Variable "user_info_data" must not contain underscores.
(#73) There should be a comma after the last array item in a multi-line array.
(#81) Missing docblock for function testAddUserEnrolByGroup in testcase
(#81) Public method name "attributes_test::testAddUserEnrolByGroup" must be in lower-case letters only
(#82) Opening brace should be on the same line as the declaration
(#87) Missing docblock for function testEnrolUser in testcase
(#87) Public method name "attributes_test::testEnrolUser" must be in lower-case letters only
(#87) Expected 1 space before opening brace; found 0
(#92) Missing docblock for function testUnenrolUser in testcase
(#92) Public method name "attributes_test::testUnenrolUser" must be in lower-case letters only
(#92) Expected 1 space before opening brace; found 0
(#93) Inline comments must end in full-stops, exclamation marks, or question marks
(#93) No space found before comment text; expected "// Simulating the invalidatecache task run by the cron" but found "//Simulating the invalidatecache task run by the cron"
(#102) Missing docblock for function testDeleteUserFromGroupAfterUnenrolment in testcase
(#102) Visibility must be declared on method "testDeleteUserFromGroupAfterUnenrolment"
(#102) method name "attributes_test::testDeleteUserFromGroupAfterUnenrolment" must be in lower-case letters only
(#103) Opening brace should be on the same line as the declaration
(#104) Inline comments must end in full-stops, exclamation marks, or question marks
(#104) No space found before comment text; expected "// Simulating the invalidatecache task run by the cron" but found "//Simulating the invalidatecache task run by the cron"
(#114) Missing docblock for function testWhenExpiredRemoveBehavior in testcase
(#114) Visibility must be declared on method "testWhenExpiredRemoveBehavior"
(#114) method name "attributes_test::testWhenExpiredRemoveBehavior" must be in lower-case letters only
(#115) Opening brace should be on the same line as the declaration
(#122) Variable "user_info_data" must not contain underscores.
(#126) Inline comments must end in full-stops, exclamation marks, or question marks
(#127) Variable "user_info_data" must not contain underscores.
(#127) Variable "user_info_data" must not contain underscores.
(#128) Variable "user_info_data" must not contain underscores.
(#129) Variable "user_info_data" must not contain underscores.
(#131) Inline comments must end in full-stops, exclamation marks, or question marks
(#137) Missing docblock for function testWhenExpiredSuspendBehavior in testcase
(#137) Visibility must be declared on method "testWhenExpiredSuspendBehavior"
(#137) method name "attributes_test::testWhenExpiredSuspendBehavior" must be in lower-case letters only
(#138) Opening brace should be on the same line as the declaration
(#153) Variable "user_info_data" must not contain underscores.
(#157) Inline comments must end in full-stops, exclamation marks, or question marks
(#158) Variable "user_info_data" must not contain underscores.
(#158) Variable "user_info_data" must not contain underscores.
(#159) Variable "user_info_data" must not contain underscores.
(#160) Variable "user_info_data" must not contain underscores.
(#162) Inline comments must end in full-stops, exclamation marks, or question marks
(#165) Inline comments must end in full-stops, exclamation marks, or question marks
(#166) 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.
(#174) Missing docblock for function testWhenExpiredDoNothingBehavior in testcase
(#174) Visibility must be declared on method "testWhenExpiredDoNothingBehavior"
(#174) method name "attributes_test::testWhenExpiredDoNothingBehavior" must be in lower-case letters only
(#175) Opening brace should be on the same line as the declaration
(#190) Variable "user_info_data" must not contain underscores.
(#194) Inline comments must end in full-stops, exclamation marks, or question marks
(#195) Variable "user_info_data" must not contain underscores.
(#195) Variable "user_info_data" must not contain underscores.
(#196) Variable "user_info_data" must not contain underscores.
(#197) Variable "user_info_data" must not contain underscores.
(#199) Inline comments must end in full-stops, exclamation marks, or question marks
(#202) Inline comments must end in full-stops, exclamation marks, or question marks
(#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.
(#211) Missing docblock for function unenrolUser in testcase
(#211) Visibility must be declared on method "unenrolUser"
(#211) method name "attributes_test::unenrolUser" must be in lower-case letters only
(#212) Opening brace should be on the same line as the declaration
(#220) File must end with a newline character
enrol/attributes/version.php
(#1) No one-line description found in phpdocs for docblock of file version.php
(#27) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(56 errors, 115 warnings)

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

enrol/attributes/js/javascript.js
(#23) Identifier 'enrol_attributes_purge' is not in camel case. (camelcase)
(#23) 'enrol_attributes_purge' is assigned a value but never used. (no-unused-vars)
(#23) Identifier 'enrol_attributes_force' is not in camel case. (camelcase)
(#23) 'enrol_attributes_force' is not defined. (no-undef)
(#23) Unexpected space before function parentheses. (space-before-function-paren)
(#24) Unexpected alert. (no-alert)
(#27) Unexpected space before function parentheses. (space-before-function-paren)
(#29) Unexpected space before function parentheses. (space-before-function-paren)
(#31) Identifier '$shib_rules' is not in camel case. (camelcase)
(#35) Identifier 'shib_boolconfig' is not in camel case. (camelcase)
(#35) 'shib_boolconfig' declared on line 38 column 17 is used outside of binding context. (block-scoped-var)
(#35) eval can be harmful. (no-eval)
(#36) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#38) 'shib_boolconfig' is already defined. (no-redeclare)
(#38) 'shib_boolconfig' declared on line 35 column 17 is used outside of binding context. (block-scoped-var)
(#45) Identifier '$shib_rules' is not in camel case. (camelcase)
(#46) 'shib_boolconfig' declared on line 35 column 17 is used outside of binding context. (block-scoped-var)
(#46) Identifier 'shib_boolconfig' is not in camel case. (camelcase)
(#46) 'shib_boolconfig' declared on line 38 column 17 is used outside of binding context. (block-scoped-var)
(#47) Identifier 'enrol_attributes_updateExpr' is not in camel case. (camelcase)
(#52) Identifier 'enrol_attributes_purge' is not in camel case. (camelcase)
(#52) Unexpected space before function parentheses. (space-before-function-paren)
(#53) Unexpected confirm. (no-alert)
(#54) This line has a length of 156. Maximum allowed is 132. (max-len)
(#55) Unexpected space before function parentheses. (space-before-function-paren)
(#56) Unexpected alert. (no-alert)
(#59) Missing semicolon. (semi)
(#61) Identifier 'enrol_attributes_force' is not in camel case. (camelcase)
(#61) 'enrol_attributes_force' is not defined. (no-undef)
(#61) Unexpected space before function parentheses. (space-before-function-paren)
(#62) Unexpected confirm. (no-alert)
(#63) This line has a length of 156. Maximum allowed is 132. (max-len)
(#64) Unexpected space before function parentheses. (space-before-function-paren)
(#65) Unexpected alert. (no-alert)
(#68) Missing semicolon. (semi)
(#69) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#77) Identifier 'enrol_attributes_updateExpr' is not in camel case. (camelcase)
(#78) 'expressionStr' is assigned a value but never used. (no-unused-vars)
(#79) 'serializedObj' is assigned a value but never used. (no-unused-vars)
(#85) 'jQuery' is not defined. (no-undef)
(#85) Missing semicolon. (semi)
enrol/attributes/js/jquery.booleanEditor.js
(#23) Unnecessary semicolon. (no-extra-semi)
(#24) Unexpected space before function parentheses. (space-before-function-paren)
(#47) Unexpected space before function parentheses. (space-before-function-paren)
(#48) Comments should not begin with a lowercase character. (capitalized-comments)
(#52) Expected { after 'if' condition. (curly)
(#54) There should be no space after this paren. (space-in-parens)
(#54) There should be no space before this paren. (space-in-parens)
(#55) Identifier 'ser_obj' is not in camel case. (camelcase)
(#60) Unreachable code. (no-unreachable)
(#64) Identifier 'ser_obj' is not in camel case. (camelcase)
(#66) Unreachable code. (no-unreachable)
(#69) Unreachable code. (no-unreachable)
(#71) Method 'booleanEditor' expected a return value. (consistent-return)
(#74) 'settings' is not defined. (no-undef)
(#76) Unexpected space before function parentheses. (space-before-function-paren)
(#77) 'settings' is not defined. (no-undef)
(#78) 'settings' is not defined. (no-undef)
(#78) Missing semicolon. (semi)
(#82) 'settings' is not defined. (no-undef)
(#90) Identifier 'root_elem' is not in camel case. (camelcase)
(#91) Identifier 'ser_obj' is not in camel case. (camelcase)
(#92) Identifier 'group_c_op' is not in camel case. (camelcase)
(#93) Identifier 'group_c_op' is not in camel case. (camelcase)
(#94) Identifier 'ser_obj' is not in camel case. (camelcase)
(#94) Expected { after 'if' condition. (curly)
(#94) Identifier 'cond_op' is not in camel case. (camelcase)
(#94) Identifier 'group_c_op' is not in camel case. (camelcase)
(#96) Unexpected space before function parentheses. (space-before-function-paren)
(#97) 'r' is not defined. (no-undef)
(#98) 'r' is not defined. (no-undef)
(#99) Identifier 'ser_obj' is not in camel case. (camelcase)
(#99) ["rules"] is better written in dot notation. (dot-notation)
(#101) Identifier 'cond_obj' is not in camel case. (camelcase)
(#102) 'r' is not defined. (no-undef)
(#103) Identifier 'comp_op' is not in camel case. (camelcase)
(#103) 'r' is not defined. (no-undef)
(#104) 'r' is not defined. (no-undef)
(#106) Identifier 'cond_op' is not in camel case. (camelcase)
(#106) 'r' is not defined. (no-undef)
(#107) Identifier 'cond_op' is not in camel case. (camelcase)
(#108) Identifier 'cond_obj' is not in camel case. (camelcase)
(#108) Expected { after 'if' condition. (curly)
(#108) Identifier 'cond_op' is not in camel case. (camelcase)
(#108) Identifier 'cond_op' is not in camel case. (camelcase)
(#109) Identifier 'ser_obj' is not in camel case. (camelcase)
(#109) ["rules"] is better written in dot notation. (dot-notation)
(#112) Identifier 'ser_obj' is not in camel case. (camelcase)
(#118) Unexpected space before function parentheses. (space-before-function-paren)
(#119) 'r' is not defined. (no-undef)
(#120) Identifier 'c_op' is not in camel case. (camelcase)
(#120) 'r' is not defined. (no-undef)
(#121) Identifier 'c_op' is not in camel case. (camelcase)
(#121) Identifier 'c_op' is not in camel case. (camelcase)
(#121) Expected { after 'if' condition. (curly)
(#121) Identifier 'c_op' is not in camel case. (camelcase)
(#123) 'r' is not defined. (no-undef)
(#124) This line has a length of 160. Maximum allowed is 132. (max-len)
(#124) Identifier 'c_op' is not in camel case. (camelcase)
(#127) Identifier 'c_op' is not in camel case. (camelcase)
(#129) 'r' is not defined. (no-undef)
(#130) 'r' is not defined. (no-undef)
(#131) 'r' is not defined. (no-undef)
(#141) '$o' is not defined. (no-undef)
(#142) '$o' is not defined. (no-undef)
(#143) '$o' is not defined. (no-undef)
(#143) '$o' is not defined. (no-undef)
(#145) '$o' is not defined. (no-undef)
(#146) '$o' is not defined. (no-undef)
(#146) '$o' is not defined. (no-undef)
(#151) Identifier 'list_elem' is not in camel case. (camelcase)
(#153) Identifier 'list_elem' is not in camel case. (camelcase)
(#154) Unexpected console statement. (no-console)
(#160) Identifier 'list_elem' is not in camel case. (camelcase)
(#164) Identifier 'r_idx' is not in camel case. (camelcase)
(#164) Identifier 'r_idx' is not in camel case. (camelcase)
(#164) Identifier 'r_idx' is not in camel case. (camelcase)
(#165) Identifier 'r_idx' is not in camel case. (camelcase)
(#166) ["first"] is better written in dot notation. (dot-notation)
(#166) Identifier 'r_idx' is not in camel case. (camelcase)
(#172) Identifier 'list_elem' is not in camel case. (camelcase)
(#174) Closing curly brace does not appear on the same line as the subsequent block. (brace-style)
(#176) Identifier 'list_elem' is not in camel case. (camelcase)
(#181) Function 'createRuleList' expected no return value. (consistent-return)
(#181) Identifier 'list_elem' is not in camel case. (camelcase)
(#182) Unnecessary semicolon. (no-extra-semi)
(#194) Identifier 'cond_op' is not in camel case. (camelcase)
(#196) Identifier 'comp_op' is not in camel case. (camelcase)
(#205) Identifier 'cond_block_content' is not in camel case. (camelcase)
(#207) Identifier 'cond_block_content' is not in camel case. (camelcase)
(#209) Identifier 'cond_block_content' is not in camel case. (camelcase)
(#210) Multiple spaces found before '// The list of...'. (no-multi-spaces)
(#213) Identifier 'selected_value' is not in camel case. (camelcase)
(#215) Comments should not begin with a lowercase character. (capitalized-comments)
(#215) Expected space or tab after '//' in comment. (spaced-comment)
(#219) Identifier 'selected_value' is not in camel case. (camelcase)
(#223) Unexpected space before function parentheses. (space-before-function-paren)
(#224) Missing semicolon. (semi)
(#226) Multiple spaces found before '// The value o...'. (no-multi-spaces)
(#233) Missing semicolon. (semi)
(#237) Unnecessary semicolon. (no-extra-semi)
(#248) Identifier 'selected_value' is not in camel case. (camelcase)
(#255) This line has a length of 139. Maximum allowed is 132. (max-len)
(#255) Operator '+' must be spaced. (space-infix-ops)
(#255) Operator '+' must be spaced. (space-infix-ops)
(#256) Unexpected space before function parentheses. (space-before-function-paren)
(#260) This line has a length of 136. Maximum allowed is 132. (max-len)
(#260) Operator '+' must be spaced. (space-infix-ops)
(#260) Operator '+' must be spaced. (space-infix-ops)
(#261) Unexpected space before function parentheses. (space-before-function-paren)
(#265) This line has a length of 142. Maximum allowed is 132. (max-len)
(#265) Operator '+' must be spaced. (space-infix-ops)
(#265) Operator '+' must be spaced. (space-infix-ops)
(#266) Unexpected space before function parentheses. (space-before-function-paren)
(#270) Unexpected space before function parentheses. (space-before-function-paren)
(#272) Unexpected space before function parentheses. (space-before-function-paren)
(#273) Missing semicolon. (semi)
(#287) Identifier 'selected_value' is not in camel case. (camelcase)
(#292) Unexpected space before function parentheses. (space-before-function-paren)
(#295) Unexpected space before function parentheses. (space-before-function-paren)
(#296) Identifier 'p_obj' is not in camel case. (camelcase)
(#300) Identifier 'p_obj' is not in camel case. (camelcase)
(#302) Identifier 'p_obj' is not in camel case. (camelcase)
(#316) Unexpected space before function parentheses. (space-before-function-paren)
(#317) Missing semicolon. (semi)
(#329) Unexpected space before function parentheses. (space-before-function-paren)
(#330) Missing semicolon. (semi)
(#354) 'p' is not defined. (no-undef)
(#355) Unexpected space before function parentheses. (space-before-function-paren)
(#358) 'p' is not defined. (no-undef)
(#363) 'jQuery' is not defined. (no-undef)

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]