Prechecker results: error


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

(469 errors, 126 warnings)

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

local/userenrols/assign.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#38) Inline comments must end in full-stops, exclamation marks, or question marks
(#39) Variable "course_id" must not contain underscores.
(#42) Inline comments must end in full-stops, exclamation marks, or question marks
(#43) Variable "course_id" must not contain underscores.
(#44) Inline comments must start with a capital letter, digit or 3-dots sequence
(#45) Inline comments must end in full-stops, exclamation marks, or question marks
(#48) Variable "user_context" must not contain underscores.
(#50) Inline comments must end in full-stops, exclamation marks, or question marks
(#51) Variable "course_url" must not contain underscores.
(#52) Variable "groups_url" must not contain underscores.
(#54) Variable "page_head_title" must not contain underscores.
(#56) Variable "page_head_title" must not contain underscores.
(#57) Variable "page_head_title" must not contain underscores.
(#64) Inline comments must end in full-stops, exclamation marks, or question marks
(#65) Variable "meta_enrols" must not contain underscores.
(#66) Line indented incorrectly; expected 0 spaces, found 4
(#66) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#67) Line indented incorrectly; expected 4 spaces, found 8
(#68) Line indented incorrectly; expected 8 spaces, found 12
(#70) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) Line indented incorrectly; expected 12 spaces, found 16
(#71) Variable "linked_course" must not contain underscores.
(#73) Line indented incorrectly; expected 12 spaces, found 16
(#74) Variable "linked_course" must not contain underscores.
(#75) Line indented incorrectly; expected 8 spaces, found 12
(#76) Variable "meta_enrols" must not contain underscores.
(#77) Line indented incorrectly; expected 4 spaces, found 8
(#78) Line indented incorrectly; expected 0 spaces, found 4
(#79) Inline comments must end in full-stops, exclamation marks, or question marks
(#80) Line indented incorrectly; expected 0 spaces, found 4
(#80) Variable "meta_enrols" must not contain underscores.
(#81) Variable "course_url" must not contain underscores.
(#82) Line indented incorrectly; expected 0 spaces, found 4
(#87) Inline comments must end in full-stops, exclamation marks, or question marks
(#91) Variable "meta_enrols" must not contain underscores.
(#92) Variable "course_id" must not contain underscores.
(#96) Line exceeds 132 characters; contains 144 characters
(#98) Line indented incorrectly; expected 0 spaces, found 4
(#100) Inline comments must end in full-stops, exclamation marks, or question marks
(#101) Variable "course_url" must not contain underscores.
(#103) Line indented incorrectly; expected 0 spaces, found 4
(#103) Usage of ELSEIF not allowed; use ELSE IF instead
(#106) Inline comments must end in full-stops, exclamation marks, or question marks
(#108) Line exceeds 132 characters; contains 168 characters
(#114) Line indented incorrectly; expected 0 spaces, found 4
(#117) Inline comments must end in full-stops, exclamation marks, or question marks
(#120) Inline comments must end in full-stops, exclamation marks, or question marks
(#122) Variable "remove_current" must not contain underscores.
(#124) Variable "remove_current" must not contain underscores.
(#127) Line exceeds 132 characters; contains 168 characters
(#129) Inline comments must end in full-stops, exclamation marks, or question marks
(#131) Variable "groups_url" must not contain underscores.
(#135) Line indented incorrectly; expected 0 spaces, found 4
local/userenrols/assign_form.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#32) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#40) Line indented incorrectly; expected 0 spaces, found 4
(#46) Line indented incorrectly; expected 4 spaces, found 8
(#47) Opening brace should be on the same line as the declaration
(#51) Inline comments must end in full-stops, exclamation marks, or question marks
(#54) Line exceeds 132 characters; contains 172 characters
(#56) Line exceeds 132 characters; contains 148 characters
(#58) Variable "select_list" must not contain underscores.
(#59) Line indented incorrectly; expected 8 spaces, found 12
(#60) Variable "select_list" must not contain underscores.
(#61) Line indented incorrectly; expected 8 spaces, found 12
(#63) Line indented incorrectly; expected 8 spaces, found 12
(#63) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#65) Line exceeds 132 characters; contains 162 characters
(#66) Variable "element_id" must not contain underscores.
(#67) Variable "element_id" must not contain underscores.
(#67) Variable "select_list" must not contain underscores.
(#67) Line exceeds 132 characters; contains 145 characters
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#72) Line indented incorrectly; expected 12 spaces, found 16
(#73) Variable "select_list" must not contain underscores.
(#74) Variable "element_id" must not contain underscores.
(#75) Line indented incorrectly; expected 12 spaces, found 16
(#76) Variable "element_id" must not contain underscores.
(#77) Line indented incorrectly; expected 12 spaces, found 16
(#79) Variable "element_id" must not contain underscores.
(#81) Line indented incorrectly; expected 8 spaces, found 12
(#88) Line indented incorrectly; expected 4 spaces, found 8
(#92) Line indented incorrectly; expected 4 spaces, found 8
(#93) Opening brace should be on the same line as the declaration
(#95) Inline comments must end in full-stops, exclamation marks, or question marks
(#97) Line indented incorrectly; expected 8 spaces, found 12
(#99) Line indented incorrectly; expected 8 spaces, found 12
(#101) Inline comments must end in full-stops, exclamation marks, or question marks
(#102) Variable "error_element" must not contain underscores.
(#104) Variable "meta_enrols" must not contain underscores.
(#108) Line indented incorrectly; expected 8 spaces, found 12
(#111) Line indented incorrectly; expected 8 spaces, found 12
(#113) Line indented incorrectly; expected 8 spaces, found 12
(#113) Variable "enrol_id" must not contain underscores.
(#113) Variable "group_id" must not contain underscores.
(#115) Line indented incorrectly; expected 12 spaces, found 16
(#115) Variable "enrol_id" must not contain underscores.
(#116) Variable "group_id" must not contain underscores.
(#116) Variable "group_id" must not contain underscores.
(#120) Line indented incorrectly; expected 12 spaces, found 16
(#122) Line indented incorrectly; expected 8 spaces, found 12
(#126) Line indented incorrectly; expected 4 spaces, found 8
(#129) Line indented incorrectly; expected 0 spaces, found 4
(#129) This comment is 50% valid code; is this commented out code?
local/userenrols/db/upgrade.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#44) Line indented incorrectly; expected 0 spaces, found 4
(#47) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#51) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#53) Line indented incorrectly; expected 4 spaces, found 8
(#55) Line indented incorrectly; expected 8 spaces, found 12
(#55) Expected "try {\n...} catch (...) {\n"; found "try\n {\n...}\n catch (...)\n {\n"
(#58) Inline comments must end in full-stops, exclamation marks, or question marks
(#68) Line indented incorrectly; expected 12 spaces, found 16
(#70) Line indented incorrectly; expected 12 spaces, found 16
(#74) Line indented incorrectly; expected 8 spaces, found 12
(#75) Line indented incorrectly; expected 8 spaces, found 12
(#78) Line indented incorrectly; expected 8 spaces, found 12
(#80) Line indented incorrectly; expected 4 spaces, found 8
(#84) Line indented incorrectly; expected 0 spaces, found 4
local/userenrols/import.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#38) Inline comments must end in full-stops, exclamation marks, or question marks
(#39) Variable "course_id" must not contain underscores.
(#42) Inline comments must end in full-stops, exclamation marks, or question marks
(#43) Variable "course_id" must not contain underscores.
(#44) Inline comments must start with a capital letter, digit or 3-dots sequence
(#45) Inline comments must end in full-stops, exclamation marks, or question marks
(#48) Variable "user_context" must not contain underscores.
(#50) Inline comments must end in full-stops, exclamation marks, or question marks
(#51) Variable "course_url" must not contain underscores.
(#52) Variable "groups_url" must not contain underscores.
(#54) Variable "page_head_title" must not contain underscores.
(#56) Variable "page_head_title" must not contain underscores.
(#57) Variable "page_head_title" must not contain underscores.
(#65) Inline comments must end in full-stops, exclamation marks, or question marks
(#75) Inline comments must end in full-stops, exclamation marks, or question marks
(#76) Variable "manual_enrol_instance" must not contain underscores.
(#77) Variable "enrols_enabled" must not contain underscores.
(#78) Line indented incorrectly; expected 0 spaces, found 4
(#78) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#78) Variable "enrols_enabled" must not contain underscores.
(#79) Line indented incorrectly; expected 4 spaces, found 8
(#80) Variable "manual_enrol_instance" must not contain underscores.
(#83) Line indented incorrectly; expected 4 spaces, found 8
(#84) Line indented incorrectly; expected 0 spaces, found 4
(#85) Inline comments must end in full-stops, exclamation marks, or question marks
(#86) Line indented incorrectly; expected 0 spaces, found 4
(#86) Variable "manual_enrol_instance" must not contain underscores.
(#87) Variable "course_url" must not contain underscores.
(#88) Line indented incorrectly; expected 0 spaces, found 4
(#91) Inline comments must end in full-stops, exclamation marks, or question marks
(#92) Variable "enrols_enabled" must not contain underscores.
(#93) Line indented incorrectly; expected 0 spaces, found 4
(#93) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#93) Variable "enrols_enabled" must not contain underscores.
(#94) Line indented incorrectly; expected 4 spaces, found 8
(#98) Line indented incorrectly; expected 4 spaces, found 8
(#99) Line indented incorrectly; expected 0 spaces, found 4
(#101) Inline comments must end in full-stops, exclamation marks, or question marks
(#102) Variable "file_picker_options" must not contain underscores.
(#103) Spaces must be used to indent lines; tabs are not allowed
(#103) Tab found within whitespace
(#103) Commas (,) must be followed by white space.
(#107) Variable "file_picker_options" must not contain underscores.
(#107) Line exceeds 132 characters; contains 178 characters
(#113) Inline comments must end in full-stops, exclamation marks, or question marks
(#114) Variable "user_context" must not contain underscores.
(#114) Line exceeds 132 characters; contains 154 characters
(#115) Variable "course_url" must not contain underscores.
(#117) Usage of ELSEIF not allowed; use ELSE IF instead
(#120) Inline comments must end in full-stops, exclamation marks, or question marks
(#122) Line exceeds 132 characters; contains 168 characters
(#124) Inline comments must end in full-stops, exclamation marks, or question marks
(#134) Inline comments must end in full-stops, exclamation marks, or question marks
(#137) Inline comments must end in full-stops, exclamation marks, or question marks
(#138) Variable "user_id_field" must not contain underscores.
(#139) Variable "role_id" must not contain underscores.
(#140) Expected 1 space before ":"; newline found
(#141) Variable "group_assign" must not contain underscores.
(#142) Variable "group_id" must not contain underscores.
(#143) Variable "group_create" must not contain underscores.
(#146) Inline comments must end in full-stops, exclamation marks, or question marks
(#147) Variable "area_files" must not contain underscores.
(#147) Variable "user_context" must not contain underscores.
(#147) Line exceeds 132 characters; contains 158 characters
(#148) Variable "manual_enrol_instance" must not contain underscores.
(#148) Variable "user_id_field" must not contain underscores.
(#148) Variable "role_id" must not contain underscores.
(#148) Variable "group_assign" must not contain underscores.
(#148) Variable "group_id" must not contain underscores.
(#148) Variable "group_create" must not contain underscores.
(#148) Variable "area_files" must not contain underscores.
(#148) Line exceeds maximum limit of 180 characters; contains 199 characters
(#150) Inline comments must end in full-stops, exclamation marks, or question marks
(#151) Variable "user_context" must not contain underscores.
(#151) Line exceeds 132 characters; contains 134 characters
(#154) Line exceeds 132 characters; contains 168 characters
(#156) Inline comments must end in full-stops, exclamation marks, or question marks
(#158) Variable "groups_url" must not contain underscores.
local/userenrols/import_form.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#32) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#40) Line indented incorrectly; expected 0 spaces, found 4
(#46) Line indented incorrectly; expected 4 spaces, found 8
(#47) Opening brace should be on the same line as the declaration
(#56) Line indented incorrectly; expected 8 spaces, found 12
(#57) Line exceeds 132 characters; contains 137 characters
(#58) Line indented incorrectly; expected 8 spaces, found 12
(#59) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#61) Line exceeds 132 characters; contains 133 characters
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
(#64) Line exceeds maximum limit of 180 characters; contains 216 characters
(#66) Line exceeds 132 characters; contains 146 characters
(#67) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#77) Line exceeds 132 characters; contains 161 characters
(#79) Line exceeds 132 characters; contains 134 characters
(#80) Line exceeds 132 characters; contains 133 characters
(#81) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#84) Inline comments must end in full-stops, exclamation marks, or question marks
(#85) Line exceeds 132 characters; contains 154 characters
(#89) Inline comments must end in full-stops, exclamation marks, or question marks
(#91) Line indented incorrectly; expected 8 spaces, found 12
(#91) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#91) Variable "group_record" must not contain underscores.
(#92) Variable "group_record" must not contain underscores.
(#93) Line indented incorrectly; expected 8 spaces, found 12
(#94) Line exceeds 132 characters; contains 164 characters
(#96) Line exceeds 132 characters; contains 136 characters
(#99) Inline comments must end in full-stops, exclamation marks, or question marks
(#100) Line exceeds 132 characters; contains 168 characters
(#102) Line exceeds 132 characters; contains 144 characters
(#103) Line exceeds 132 characters; contains 136 characters
(#104) Line exceeds 132 characters; contains 136 characters
(#108) Inline comments must end in full-stops, exclamation marks, or question marks
(#109) Line exceeds 132 characters; contains 133 characters
(#110) Inline comments must start with a capital letter, digit or 3-dots sequence
(#110) Inline comments must end in full-stops, exclamation marks, or question marks
(#110) This comment is 58% valid code; is this commented out code?
(#110) No space found before comment text; expected "// $this->_form->addHelpButton(local_userenrols_plugin::FORMID_FILES, 'LBL_FILE', local_userenrols_plugin::PLUGIN_NAME);" but found "//$this->_form->addHelpButton(local_userenrols_plugin::FORMID_FILES, 'LBL_FILE', local_userenrols_plugin::PLUGIN_NAME);"
(#115) Line indented incorrectly; expected 4 spaces, found 8
(#119) Line indented incorrectly; expected 4 spaces, found 8
(#120) Opening brace should be on the same line as the declaration
(#122) Functions must not contain multiple empty lines in a row; found 3 empty lines
(#128) Inline comments must end in full-stops, exclamation marks, or question marks
(#129) Line indented incorrectly; expected 8 spaces, found 12
(#129) Line exceeds 132 characters; contains 144 characters
(#130) Line exceeds 132 characters; contains 167 characters
(#131) Line indented incorrectly; expected 8 spaces, found 12
(#135) Variable "role_id" must not contain underscores.
(#136) Line indented incorrectly; expected 8 spaces, found 12
(#136) Variable "role_id" must not contain underscores.
(#136) Variable "role_id" must not contain underscores.
(#136) Line exceeds 132 characters; contains 136 characters
(#138) Line indented incorrectly; expected 8 spaces, found 12
(#140) Inline comments must end in full-stops, exclamation marks, or question marks
(#141) Variable "group_assign" must not contain underscores.
(#142) Line indented incorrectly; expected 8 spaces, found 12
(#142) Variable "group_assign" must not contain underscores.
(#142) Variable "group_assign" must not contain underscores.
(#143) Line exceeds 132 characters; contains 139 characters
(#144) Line indented incorrectly; expected 8 spaces, found 12
(#146) Variable "group_id" must not contain underscores.
(#146) Variable "group_assign" must not contain underscores.
(#147) Line indented incorrectly; expected 8 spaces, found 12
(#147) Variable "group_id" must not contain underscores.
(#147) Variable "group_id" must not contain underscores.
(#148) Variable "group_id" must not contain underscores.
(#149) Line exceeds 132 characters; contains 142 characters
(#150) Line indented incorrectly; expected 8 spaces, found 12
(#152) Inline comments must end in full-stops, exclamation marks, or question marks
(#153) Variable "group_create" must not contain underscores.
(#153) Variable "group_assign" must not contain underscores.
(#153) Variable "group_id" must not contain underscores.
(#154) Line indented incorrectly; expected 8 spaces, found 12
(#154) Variable "group_create" must not contain underscores.
(#154) Variable "group_create" must not contain underscores.
(#155) Line exceeds 132 characters; contains 142 characters
(#156) Line indented incorrectly; expected 8 spaces, found 12
(#160) Inline comments must end in full-stops, exclamation marks, or question marks
(#161) Variable "area_files" must not contain underscores.
(#161) Line exceeds 132 characters; contains 177 characters
(#162) Variable "import_file" must not contain underscores.
(#162) Variable "area_files" must not contain underscores.
(#163) Line indented incorrectly; expected 8 spaces, found 12
(#163) Variable "import_file" must not contain underscores.
(#165) Line indented incorrectly; expected 8 spaces, found 12
(#169) Line indented incorrectly; expected 4 spaces, found 8
(#172) Line indented incorrectly; expected 0 spaces, found 4
(#172) This comment is 50% valid code; is this commented out code?
local/userenrols/lang/en/local_userenrols.php
(#2) The opening <?php tag must be followed by exactly one newline.
local/userenrols/lib.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#45) This comment is 47% valid code; is this commented out code?
(#59) Line indented incorrectly; expected 0 spaces, found 4
(#60) Opening brace should be on the same line as the declaration
(#62) Inline comments must end in full-stops, exclamation marks, or question marks
(#63) Line indented incorrectly; expected 4 spaces, found 8
(#65) Line indented incorrectly; expected 4 spaces, found 8
(#68) Inline comments must end in full-stops, exclamation marks, or question marks
(#69) Line indented incorrectly; expected 4 spaces, found 8
(#69) Variable "courseadmin_node" must not contain underscores.
(#70) Inline comments must end in full-stops, exclamation marks, or question marks
(#72) Line indented incorrectly; expected 4 spaces, found 8
(#73) Line indented incorrectly; expected 4 spaces, found 8
(#73) Variable "useradmin_node" must not contain underscores.
(#73) Variable "courseadmin_node" must not contain underscores.
(#75) Line indented incorrectly; expected 4 spaces, found 8
(#77) Inline comments must end in full-stops, exclamation marks, or question marks
(#78) Variable "useradmin_node" must not contain underscores.
(#85) Variable "useradmin_node" must not contain underscores.
(#92) Line indented incorrectly; expected 0 spaces, found 4
(#96) Line indented incorrectly; expected 0 spaces, found 4
(#136) Line indented incorrectly; expected 4 spaces, found 8
(#136) Member variable "user_id_field_options" must not contain underscores.
(#152) Line indented incorrectly; expected 4 spaces, found 8
(#153) Opening brace should be on the same line as the declaration
(#155) Functions must not contain multiple empty lines in a row; found 3 empty lines
(#158) Line exceeds 132 characters; contains 153 characters
(#160) Line indented incorrectly; expected 4 spaces, found 8
(#171) Line indented incorrectly; expected 4 spaces, found 8
(#172) Opening brace should be on the same line as the declaration
(#174) Line indented incorrectly; expected 8 spaces, found 12
(#174) Variable "user_id_field_options" must not contain underscores.
(#175) Variable "user_id_field_options" must not contain underscores.
(#180) Line indented incorrectly; expected 8 spaces, found 12
(#182) Variable "user_id_field_options" must not contain underscores.
(#184) Line indented incorrectly; expected 4 spaces, found 8
(#196) Line exceeds 132 characters; contains 139 characters
(#206) Line indented incorrectly; expected 4 spaces, found 8
(#206) Variable "enrol_instance" must not contain underscores.
(#206) Variable "ident_field" must not contain underscores.
(#206) Variable "role_id" must not contain underscores.
(#206) Variable "group_assign" must not contain underscores.
(#206) Variable "group_id" must not contain underscores.
(#206) Variable "group_create" must not contain underscores.
(#206) Variable "import_file" must not contain underscores.
(#206) Line exceeds 132 characters; contains 177 characters
(#207) Opening brace should be on the same line as the declaration
(#209) Functions must not contain multiple empty lines in a row; found 3 empty lines
(#212) Inline comments must end in full-stops, exclamation marks, or question marks
(#215) Inline comments must end in full-stops, exclamation marks, or question marks
(#216) Variable "course_context" must not contain underscores.
(#218) Inline comments must end in full-stops, exclamation marks, or question marks
(#219) Line indented incorrectly; expected 8 spaces, found 12
(#219) Variable "ident_field" must not contain underscores.
(#221) Line indented incorrectly; expected 12 spaces, found 16
(#222) Variable "regex_pattern" must not contain underscores.
(#222) Line exceeds 132 characters; contains 168 characters
(#224) Line indented incorrectly; expected 12 spaces, found 16
(#225) Variable "regex_pattern" must not contain underscores.
(#227) Line indented incorrectly; expected 12 spaces, found 16
(#228) Variable "regex_pattern" must not contain underscores.
(#230) Line indented incorrectly; expected 8 spaces, found 12
(#233) Inline comments must end in full-stops, exclamation marks, or question marks
(#234) Variable "selected_group" must not contain underscores.
(#235) Line indented incorrectly; expected 8 spaces, found 12
(#235) Variable "group_assign" must not contain underscores.
(#237) Line indented incorrectly; expected 12 spaces, found 16
(#237) Variable "existing_groups" must not contain underscores.
(#238) Variable "existing_groups" must not contain underscores.
(#239) Line indented incorrectly; expected 12 spaces, found 16
(#241) Line indented incorrectly; expected 12 spaces, found 16
(#241) Variable "group_id" must not contain underscores.
(#242) Line indented incorrectly; expected 16 spaces, found 20
(#242) Variable "group_id" must not contain underscores.
(#242) Variable "existing_groups" must not contain underscores.
(#243) Variable "selected_group" must not contain underscores.
(#243) Variable "existing_groups" must not contain underscores.
(#243) Variable "group_id" must not contain underscores.
(#244) Line indented incorrectly; expected 16 spaces, found 20
(#245) Inline comments must end in full-stops, exclamation marks, or question marks
(#246) Variable "group_id" must not contain underscores.
(#247) Line indented incorrectly; expected 16 spaces, found 20
(#248) Line indented incorrectly; expected 12 spaces, found 16
(#250) Line indented incorrectly; expected 8 spaces, found 12
(#253) Inline comments must end in full-stops, exclamation marks, or question marks
(#255) Variable "enrols_enabled" must not contain underscores.
(#256) Line indented incorrectly; expected 8 spaces, found 12
(#256) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#256) Variable "enrols_enabled" must not contain underscores.
(#257) Line indented incorrectly; expected 12 spaces, found 16
(#260) Line indented incorrectly; expected 12 spaces, found 16
(#261) Line indented incorrectly; expected 8 spaces, found 12
(#264) Inline comments must end in full-stops, exclamation marks, or question marks
(#265) Variable "manual_enrol_plugin" must not contain underscores.
(#267) Variable "user_rec" must not contain underscores.
(#267) Expected 1 space after "="; newline found
(#268) Variable "new_group" must not contain underscores.
(#268) Expected 1 space after "="; newline found
(#269) Variable "new_grouping" must not contain underscores.
(#271) Inline comments must end in full-stops, exclamation marks, or question marks
(#272) Variable "import_file" must not contain underscores.
(#273) Variable "line_num" must not contain underscores.
(#274) Line indented incorrectly; expected 8 spaces, found 12
(#275) Variable "line_num" must not contain underscores.
(#277) Inline comments must end in full-stops, exclamation marks, or question marks
(#278) Variable "user_rec" must not contain underscores.
(#278) Variable "new_group" must not contain underscores.
(#278) Variable "new_grouping" must not contain underscores.
(#280) Inline control structures are not allowed
(#284) Inline comments must end in full-stops, exclamation marks, or question marks
(#285) Line indented incorrectly; expected 12 spaces, found 16
(#285) Variable "regex_pattern" must not contain underscores.
(#286) Variable "line_num" must not contain underscores.
(#288) Line indented incorrectly; expected 12 spaces, found 16
(#290) Variable "ident_value" must not contain underscores.
(#291) Variable "group_name" must not contain underscores.
(#299) Inline comments must end in full-stops, exclamation marks, or question marks
(#300) Variable "user_rec_array" must not contain underscores.
(#300) Variable "ident_field" must not contain underscores.
(#300) Variable "ident_value" must not contain underscores.
(#302) Inline comments must end in full-stops, exclamation marks, or question marks
(#303) Variable "user_rec_count" must not contain underscores.
(#303) Variable "user_rec_array" must not contain underscores.
(#304) Line indented incorrectly; expected 12 spaces, found 16
(#304) Variable "user_rec_count" must not contain underscores.
(#305) Inline comments must end in full-stops, exclamation marks, or question marks
(#306) Variable "line_num" must not contain underscores.
(#306) Variable "ident_value" must not contain underscores.
(#308) Line indented incorrectly; expected 12 spaces, found 16
(#308) Usage of ELSEIF not allowed; use ELSE IF instead
(#308) Variable "user_rec_count" must not contain underscores.
(#309) Inline comments must end in full-stops, exclamation marks, or question marks
(#310) Variable "line_num" must not contain underscores.
(#310) Variable "ident_value" must not contain underscores.
(#312) Line indented incorrectly; expected 12 spaces, found 16
(#314) Variable "user_rec" must not contain underscores.
(#314) Variable "user_rec_array" must not contain underscores.
(#316) Inline comments must end in full-stops, exclamation marks, or question marks
(#317) Variable "course_context" must not contain underscores.
(#317) Variable "user_rec" must not contain underscores.
(#321) Line indented incorrectly; expected 12 spaces, found 16
(#321) Variable "role_id" must not contain underscores.
(#322) Line indented incorrectly; expected 16 spaces, found 20
(#323) Variable "line_num" must not contain underscores.
(#323) Variable "ident_value" must not contain underscores.
(#324) Line indented incorrectly; expected 16 spaces, found 20
(#325) Line indented incorrectly; expected 20 spaces, found 24
(#325) Expected "try {\n...} catch (...) {\n"; found "try {\n...}\n catch (...) {\n"
(#326) Variable "manual_enrol_plugin" must not contain underscores.
(#326) Variable "enrol_instance" must not contain underscores.
(#326) Variable "user_rec" must not contain underscores.
(#326) Variable "role_id" must not contain underscores.
(#327) Line indented incorrectly; expected 20 spaces, found 24
(#328) Line indented incorrectly; expected 20 spaces, found 24
(#329) Variable "line_num" must not contain underscores.
(#329) Variable "ident_value" must not contain underscores.
(#332) Line indented incorrectly; expected 20 spaces, found 24
(#333) Line indented incorrectly; expected 16 spaces, found 20
(#334) Line indented incorrectly; expected 12 spaces, found 16
(#337) Inline comments must end in full-stops, exclamation marks, or question marks
(#338) Inline control structures are not allowed
(#338) Variable "group_assign" must not contain underscores.
(#338) Variable "group_id" must not contain underscores.
(#338) Variable "group_name" must not contain underscores.
(#341) Inline comments must end in full-stops, exclamation marks, or question marks
(#342) Variable "assign_group_id" must not contain underscores.
(#343) Variable "assign_group_name" must not contain underscores.
(#344) Line indented incorrectly; expected 12 spaces, found 16
(#344) Variable "selected_group" must not contain underscores.
(#346) Variable "assign_group_id" must not contain underscores.
(#346) Variable "selected_group" must not contain underscores.
(#347) Variable "assign_group_name" must not contain underscores.
(#347) Variable "selected_group" must not contain underscores.
(#349) Line indented incorrectly; expected 12 spaces, found 16
(#351) Line indented incorrectly; expected 16 spaces, found 20
(#351) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#351) Variable "existing_groups" must not contain underscores.
(#351) Variable "existing_group" must not contain underscores.
(#352) Inline control structures are not allowed
(#352) Variable "existing_group" must not contain underscores.
(#352) Variable "group_name" must not contain underscores.
(#354) Variable "assign_group_id" must not contain underscores.
(#354) Variable "existing_group" must not contain underscores.
(#355) Variable "assign_group_name" must not contain underscores.
(#355) Variable "existing_group" must not contain underscores.
(#357) Line indented incorrectly; expected 16 spaces, found 20
(#359) Inline comments must end in full-stops, exclamation marks, or question marks
(#360) Line indented incorrectly; expected 16 spaces, found 20
(#360) Variable "assign_group_id" must not contain underscores.
(#362) Inline comments must end in full-stops, exclamation marks, or question marks
(#363) Inline control structures are not allowed
(#363) Variable "group_create" must not contain underscores.
(#365) Inline comments must end in full-stops, exclamation marks, or question marks
(#366) Variable "new_group" must not contain underscores.
(#367) Variable "new_group" must not contain underscores.
(#367) Variable "group_name" must not contain underscores.
(#368) Variable "new_group" must not contain underscores.
(#369) Line indented incorrectly; expected 20 spaces, found 24
(#369) Variable "assign_group_id" must not contain underscores.
(#369) Variable "new_group" must not contain underscores.
(#370) Variable "line_num" must not contain underscores.
(#370) Variable "group_name" must not contain underscores.
(#372) Line indented incorrectly; expected 20 spaces, found 24
(#378) Variable "new_group" must not contain underscores.
(#378) Expected 1 space after "="; newline found
(#379) Variable "assign_group_name" must not contain underscores.
(#379) Variable "new_group" must not contain underscores.
(#380) Variable "new_group" must not contain underscores.
(#380) Variable "assign_group_id" must not contain underscores.
(#381) Variable "existing_groups" must not contain underscores.
(#381) Variable "new_group" must not contain underscores.
(#382) Line indented incorrectly; expected 20 spaces, found 24
(#384) Line indented incorrectly; expected 16 spaces, found 20
(#384) This comment is 50% valid code; is this commented out code?
(#386) Line indented incorrectly; expected 12 spaces, found 16
(#388) Inline comments must end in full-stops, exclamation marks, or question marks
(#389) Line indented incorrectly; expected 12 spaces, found 16
(#389) Variable "assign_group_id" must not contain underscores.
(#389) Variable "user_rec" must not contain underscores.
(#390) Variable "assign_group_id" must not contain underscores.
(#390) Variable "user_rec" must not contain underscores.
(#391) Variable "line_num" must not contain underscores.
(#391) Variable "ident_value" must not contain underscores.
(#391) Variable "assign_group_name" must not contain underscores.
(#391) Line exceeds 132 characters; contains 135 characters
(#393) Line indented incorrectly; expected 12 spaces, found 16
(#397) Line indented incorrectly; expected 8 spaces, found 12
(#403) Line indented incorrectly; expected 4 spaces, found 8
(#419) Line indented incorrectly; expected 4 spaces, found 8
(#419) Variable "group_selections" must not contain underscores.
(#419) Variable "remove_current" must not contain underscores.
(#420) Opening brace should be on the same line as the declaration
(#422) Functions must not contain multiple empty lines in a row; found 3 empty lines
(#426) Variable "course_groups" must not contain underscores.
(#428) Line indented incorrectly; expected 8 spaces, found 12
(#428) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#428) Variable "group_selections" must not contain underscores.
(#428) Variable "enrol_id" must not contain underscores.
(#428) Variable "assign_group_id" must not contain underscores.
(#430) Inline comments must end in full-stops, exclamation marks, or question marks
(#431) Line indented incorrectly; expected 12 spaces, found 16
(#431) Variable "assign_group_id" must not contain underscores.
(#433) Line indented incorrectly; expected 12 spaces, found 16
(#435) Inline comments must end in full-stops, exclamation marks, or question marks
(#436) Line indented incorrectly; expected 12 spaces, found 16
(#436) Variable "enrol_id" must not contain underscores.
(#438) Line indented incorrectly; expected 12 spaces, found 16
(#440) Inline comments must end in full-stops, exclamation marks, or question marks
(#441) Line indented incorrectly; expected 12 spaces, found 16
(#441) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#441) Variable "record_object" must not contain underscores.
(#443) Inline comments must end in full-stops, exclamation marks, or question marks
(#444) Line indented incorrectly; expected 16 spaces, found 20
(#444) Variable "remove_current" must not contain underscores.
(#445) Line indented incorrectly; expected 20 spaces, found 24
(#445) Variable "course_groups" must not contain underscores.
(#445) Variable "course_group" must not contain underscores.
(#446) Line indented incorrectly; expected 24 spaces, found 28
(#446) Variable "course_group" must not contain underscores.
(#446) Variable "assign_group_id" must not contain underscores.
(#447) Variable "course_group" must not contain underscores.
(#448) Line indented incorrectly; expected 24 spaces, found 28
(#449) Line indented incorrectly; expected 20 spaces, found 24
(#450) Line indented incorrectly; expected 16 spaces, found 20
(#452) Inline comments must end in full-stops, exclamation marks, or question marks
(#453) Variable "assign_group_id" must not contain underscores.
(#455) Line indented incorrectly; expected 12 spaces, found 16
(#455) This comment is 80% valid code; is this commented out code?
(#457) Line indented incorrectly; expected 8 spaces, found 12
(#457) This comment is 80% valid code; is this commented out code?
(#459) Variable "group_selections" must not contain underscores.
(#461) Line indented incorrectly; expected 4 spaces, found 8
(#475) Line indented incorrectly; expected 4 spaces, found 8
(#475) Variable "course_id" must not contain underscores.
(#476) Opening brace should be on the same line as the declaration
(#478) Functions must not contain multiple empty lines in a row; found 3 empty lines
(#481) Variable "record_object" must not contain underscores.
(#481) Variable "course_id" must not contain underscores.
(#482) Line indented incorrectly; expected 8 spaces, found 12
(#482) Variable "record_object" must not contain underscores.
(#484) Variable "course_id" must not contain underscores.
(#487) Line indented incorrectly; expected 8 spaces, found 12
(#489) Variable "record_object" must not contain underscores.
(#491) Line indented incorrectly; expected 8 spaces, found 12
(#493) Line indented incorrectly; expected 4 spaces, found 8
(#508) Line indented incorrectly; expected 4 spaces, found 8
(#508) Variable "course_id" must not contain underscores.
(#509) Opening brace should be on the same line as the declaration
(#511) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#513) Line indented incorrectly; expected 8 spaces, found 12
(#513) Expected "try {\n...} catch (...) {\n"; found "try {\n...}\n catch (...) {\n"
(#515) Variable "course_id" must not contain underscores.
(#517) Variable "record_object" must not contain underscores.
(#518) Variable "record_object" must not contain underscores.
(#518) Variable "course_id" must not contain underscores.
(#519) Variable "record_object" must not contain underscores.
(#521) Variable "record_object" must not contain underscores.
(#523) Line indented incorrectly; expected 8 spaces, found 12
(#524) Line indented incorrectly; expected 8 spaces, found 12
(#524) Empty CATCH statement detected
(#525) Inline comments must end in full-stops, exclamation marks, or question marks
(#526) Line indented incorrectly; expected 8 spaces, found 12
(#528) Line indented incorrectly; expected 4 spaces, found 8
(#531) Line indented incorrectly; expected 0 spaces, found 4
(#531) This comment is 50% valid code; is this commented out code?
local/userenrols/version.php
(#2) The opening <?php tag must be followed by exactly one newline.

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(34 errors, 22 warnings)

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

local/userenrols/assign.php
(#2) Empty line found after PHP open tag
(#28) Package local is not valid
local/userenrols/assign_form.php
(#2) Empty line found after PHP open tag
(#92) Function local_userenrols_assign_form::validation is not documented
(#36) Class local_userenrols_assign_form does not have @copyright tag
(#36) Class local_userenrols_assign_form does not have @license tag
(#28) Package local is not valid
local/userenrols/db/upgrade.php
(#2) Empty line found after PHP open tag
(#28) Package local is not valid
local/userenrols/import.php
(#2) Empty line found after PHP open tag
(#28) Package local is not valid
local/userenrols/import_form.php
(#2) Empty line found after PHP open tag
(#119) Function local_userenrols_index_form::validation is not documented
(#36) Class local_userenrols_index_form does not have @copyright tag
(#36) Class local_userenrols_index_form does not have @license tag
(#28) Package local is not valid
local/userenrols/lang/en/local_userenrols.php
(#2) Empty line found after PHP open tag
(#28) Package local is not valid
local/userenrols/lib.php
(#2) Empty line found after PHP open tag
(#96) Class local_userenrols_plugin is not documented
(#103) Constant local_userenrols_plugin::PLUGIN_NAME is not documented
(#104) Constant local_userenrols_plugin::PLUGIN_PATH is not documented
(#105) Constant local_userenrols_plugin::PLUGIN_FILEAREA is not documented
(#107) Constant local_userenrols_plugin::REQUIRED_CAP is not documented
(#109) Constant local_userenrols_plugin::PARAM_COURSE_ID is not documented
(#111) Constant local_userenrols_plugin::MAXFILESIZE is not documented
(#113) Constant local_userenrols_plugin::FORMID_ROLE_ID is not documented
(#114) Constant local_userenrols_plugin::FORMID_USER_ID_FIELD is not documented
(#115) Constant local_userenrols_plugin::FORMID_GROUP is not documented
(#116) Constant local_userenrols_plugin::FORMID_GROUP_ID is not documented
(#117) Constant local_userenrols_plugin::FORMID_GROUP_CREATE is not documented
(#118) Constant local_userenrols_plugin::FORMID_FILES is not documented
(#119) Constant local_userenrols_plugin::FORMID_METACOURSE is not documented
(#120) Constant local_userenrols_plugin::FORMID_GROUPMODE is not documented
(#121) Constant local_userenrols_plugin::FORMID_METAGROUP is not documented
(#122) Constant local_userenrols_plugin::FORMID_REMOVE_CURRENT is not documented
(#124) Constant local_userenrols_plugin::DEFAULT_USER_ID_FIELD is not documented
(#149) Phpdocs for function local_userenrols_plugin::get_plugin_url has incomplete parameters list
(#132) Phpdocs for variable local_userenrols_plugin::$user_id_field_options does not contain @var or incorrect
(#133) Not recommended phpdocs tag @access used
(#134) Not recommended phpdocs tag @staticvar used
(#147) Not recommended phpdocs tag @access used
(#148) Not recommended phpdocs tag @static used
(#167) Not recommended phpdocs tag @access used
(#168) Not recommended phpdocs tag @static used
(#192) Not recommended phpdocs tag @access used
(#193) Not recommended phpdocs tag @static used
(#410) Not recommended phpdocs tag @access used
(#411) Not recommended phpdocs tag @static used
(#468) Not recommended phpdocs tag @access used
(#469) Not recommended phpdocs tag @static used
(#500) Not recommended phpdocs tag @access used
(#501) Not recommended phpdocs tag @static used
(#28) Package local is not valid
local/userenrols/version.php
(#2) Empty line found after PHP open tag
(#28) Package local is not valid

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]


Mustache template problems

(0 errors, 0 warnings)

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