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

(368 errors, 91 warnings)

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

local/userenrols/import.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#4) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#4) Line 6 of the opening comment must start "// (at your option) any later version.".
(#5) Line 7 of the opening comment must start "//".
(#5) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#6) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#6) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#7) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#8) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#8) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#36) Inline comments must end in full-stops, exclamation marks, or question marks
(#37) Variable "course_id" must not contain underscores.
(#40) Inline comments must end in full-stops, exclamation marks, or question marks
(#41) Variable "course_id" must not contain underscores.
(#42) Inline comments must start with a capital letter, digit or 3-dots sequence
(#43) Inline comments must end in full-stops, exclamation marks, or question marks
(#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.
(#53) Variable "enrol_url" must not contain underscores.
(#55) Variable "page_head_title" must not contain underscores.
(#57) Variable "page_head_title" must not contain underscores.
(#58) Variable "page_head_title" must not contain underscores.
(#66) Inline comments must end in full-stops, exclamation marks, or question marks
(#77) Inline comments must end in full-stops, exclamation marks, or question marks
(#78) Variable "manual_enrol_instance" must not contain underscores.
(#79) Variable "enrols_enabled" must not contain underscores.
(#80) Line indented incorrectly; expected 0 spaces, found 4
(#80) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#80) Variable "enrols_enabled" must not contain underscores.
(#81) Line indented incorrectly; expected 4 spaces, found 8
(#82) Variable "manual_enrol_instance" must not contain underscores.
(#85) Line indented incorrectly; expected 4 spaces, found 8
(#86) Line indented incorrectly; expected 0 spaces, found 4
(#87) Inline comments must end in full-stops, exclamation marks, or question marks
(#88) Line indented incorrectly; expected 0 spaces, found 4
(#88) Variable "manual_enrol_instance" must not contain underscores.
(#89) Variable "course_url" must not contain underscores.
(#90) Line indented incorrectly; expected 0 spaces, found 4
(#93) Inline comments must end in full-stops, exclamation marks, or question marks
(#94) Variable "enrols_enabled" must not contain underscores.
(#95) Line indented incorrectly; expected 0 spaces, found 4
(#95) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#95) Variable "enrols_enabled" must not contain underscores.
(#96) Line indented incorrectly; expected 4 spaces, found 8
(#100) Line indented incorrectly; expected 4 spaces, found 8
(#101) Line indented incorrectly; expected 0 spaces, found 4
(#103) Inline comments must end in full-stops, exclamation marks, or question marks
(#104) Variable "file_picker_options" must not contain underscores.
(#105) Spaces must be used to indent lines; tabs are not allowed
(#105) Tab found within whitespace
(#105) Commas (,) must be followed by white space.
(#109) Variable "file_picker_options" must not contain underscores.
(#115) Inline comments must end in full-stops, exclamation marks, or question marks
(#116) Variable "user_context" must not contain underscores.
(#116) Line exceeds 132 characters; contains 154 characters
(#117) Variable "course_url" must not contain underscores.
(#119) Usage of ELSEIF not allowed; use ELSE IF instead
(#122) Inline comments must end in full-stops, exclamation marks, or question marks
(#124) Line exceeds 132 characters; contains 168 characters
(#126) Inline comments must end in full-stops, exclamation marks, or question marks
(#136) Inline comments must end in full-stops, exclamation marks, or question marks
(#139) Inline comments must end in full-stops, exclamation marks, or question marks
(#140) Variable "user_id_field" must not contain underscores.
(#142) Variable "role_id" must not contain underscores.
(#145) Variable "group_assign" must not contain underscores.
(#147) Variable "group_id" must not contain underscores.
(#149) Variable "group_create" must not contain underscores.
(#153) Inline comments must end in full-stops, exclamation marks, or question marks
(#154) Variable "area_files" must not contain underscores.
(#154) Variable "user_context" must not contain underscores.
(#154) Line exceeds 132 characters; contains 158 characters
(#155) Variable "manual_enrol_instance" must not contain underscores.
(#156) Variable "user_id_field" must not contain underscores.
(#156) Variable "role_id" must not contain underscores.
(#156) Variable "group_assign" must not contain underscores.
(#157) Variable "group_id" must not contain underscores.
(#157) Variable "group_create" must not contain underscores.
(#157) Variable "area_files" must not contain underscores.
(#159) Inline comments must end in full-stops, exclamation marks, or question marks
(#160) Variable "user_context" must not contain underscores.
(#160) Line exceeds 132 characters; contains 134 characters
(#163) Line exceeds 132 characters; contains 168 characters
(#165) Inline comments must end in full-stops, exclamation marks, or question marks
(#167) Variable "group_assign" must not contain underscores.
(#167) Variable "groups_url" must not contain underscores.
(#167) Variable "enrol_url" must not contain underscores.
local/userenrols/import_form.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#4) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#4) Line 6 of the opening comment must start "// (at your option) any later version.".
(#5) Line 7 of the opening comment must start "//".
(#5) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#6) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#6) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#7) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#8) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#8) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#30) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#38) Line indented incorrectly; expected 0 spaces, found 4
(#44) Line indented incorrectly; expected 4 spaces, found 8
(#45) Opening brace should be on the same line as the declaration
(#54) Line indented incorrectly; expected 8 spaces, found 12
(#55) Line exceeds 132 characters; contains 137 characters
(#56) Line indented incorrectly; expected 8 spaces, found 12
(#57) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#59) Line exceeds 132 characters; contains 133 characters
(#61) Inline comments must end in full-stops, exclamation marks, or question marks
(#62) Line exceeds maximum limit of 180 characters; contains 216 characters
(#64) Line exceeds 132 characters; contains 146 characters
(#65) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#75) Line exceeds 132 characters; contains 161 characters
(#77) Line exceeds 132 characters; contains 134 characters
(#78) Line exceeds 132 characters; contains 133 characters
(#79) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#81) Inline comments must end in full-stops, exclamation marks, or question marks
(#82) Line indented incorrectly; expected 8 spaces, found 12
(#84) Inline comments must end in full-stops, exclamation marks, or question marks
(#85) Line exceeds 132 characters; contains 134 characters
(#87) Line exceeds 132 characters; contains 158 characters
(#89) Line exceeds 132 characters; contains 134 characters
(#91) Inline comments must end in full-stops, exclamation marks, or question marks
(#93) Line indented incorrectly; expected 12 spaces, found 16
(#93) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#93) Variable "group_record" must not contain underscores.
(#94) Variable "group_record" must not contain underscores.
(#95) Line indented incorrectly; expected 12 spaces, found 16
(#96) Line exceeds 132 characters; contains 168 characters
(#98) Line exceeds 132 characters; contains 140 characters
(#99) Line exceeds 132 characters; contains 133 characters
(#101) Inline comments must end in full-stops, exclamation marks, or question marks
(#102) Line exceeds 132 characters; contains 172 characters
(#104) Line exceeds 132 characters; contains 148 characters
(#105) Line exceeds 132 characters; contains 140 characters
(#106) Line exceeds 132 characters; contains 140 characters
(#108) Line indented incorrectly; expected 8 spaces, found 12
(#110) Inline comments must end in full-stops, exclamation marks, or question marks
(#113) Line exceeds 132 characters; contains 133 characters
(#114) Line exceeds 132 characters; contains 137 characters
(#119) Line indented incorrectly; expected 4 spaces, found 8
(#127) Line indented incorrectly; expected 4 spaces, found 8
(#128) Opening brace should be on the same line as the declaration
(#130) Functions must not contain multiple empty lines in a row; found 3 empty lines
(#136) Inline comments must end in full-stops, exclamation marks, or question marks
(#137) Line indented incorrectly; expected 8 spaces, found 12
(#138) Line exceeds 132 characters; contains 147 characters
(#139) Line exceeds 132 characters; contains 167 characters
(#140) Line indented incorrectly; expected 8 spaces, found 12
(#144) Variable "role_id" must not contain underscores.
(#146) Line indented incorrectly; expected 8 spaces, found 12
(#146) Variable "role_id" must not contain underscores.
(#146) Variable "role_id" must not contain underscores.
(#146) Line exceeds 132 characters; contains 136 characters
(#148) Line indented incorrectly; expected 8 spaces, found 12
(#150) Inline comments must end in full-stops, exclamation marks, or question marks
(#151) Variable "group_assign" must not contain underscores.
(#153) Line indented incorrectly; expected 8 spaces, found 12
(#153) Variable "group_assign" must not contain underscores.
(#153) Variable "group_assign" must not contain underscores.
(#154) Line exceeds 132 characters; contains 139 characters
(#155) Line indented incorrectly; expected 8 spaces, found 12
(#157) Line indented incorrectly; expected 8 spaces, found 12
(#157) Variable "group_assign" must not contain underscores.
(#158) Variable "group_id" must not contain underscores.
(#159) Variable "group_assign" must not contain underscores.
(#160) Line indented incorrectly; expected 8 spaces, found 12
(#161) Variable "group_id" must not contain underscores.
(#162) Line indented incorrectly; expected 8 spaces, found 12
(#163) Line indented incorrectly; expected 8 spaces, found 12
(#163) Variable "group_id" must not contain underscores.
(#163) Variable "group_id" must not contain underscores.
(#164) Variable "group_id" must not contain underscores.
(#165) Line exceeds 132 characters; contains 142 characters
(#166) Line indented incorrectly; expected 8 spaces, found 12
(#168) Inline comments must end in full-stops, exclamation marks, or question marks
(#169) Line indented incorrectly; expected 8 spaces, found 12
(#169) Variable "group_assign" must not contain underscores.
(#169) Variable "group_id" must not contain underscores.
(#170) Variable "group_create" must not contain underscores.
(#172) Line indented incorrectly; expected 8 spaces, found 12
(#173) Variable "group_create" must not contain underscores.
(#174) Line indented incorrectly; expected 8 spaces, found 12
(#175) Line indented incorrectly; expected 8 spaces, found 12
(#175) Variable "group_create" must not contain underscores.
(#175) Variable "group_create" must not contain underscores.
(#176) Line exceeds 132 characters; contains 142 characters
(#177) Line indented incorrectly; expected 8 spaces, found 12
(#181) Inline comments must end in full-stops, exclamation marks, or question marks
(#182) Variable "area_files" must not contain underscores.
(#182) Line exceeds 132 characters; contains 177 characters
(#183) Variable "import_file" must not contain underscores.
(#183) Variable "area_files" must not contain underscores.
(#184) Line indented incorrectly; expected 8 spaces, found 12
(#184) Variable "import_file" must not contain underscores.
(#186) Line indented incorrectly; expected 8 spaces, found 12
(#190) Line indented incorrectly; expected 4 spaces, found 8
(#193) Line indented incorrectly; expected 0 spaces, found 4
(#193) This comment is 50% valid code; is this commented out code?
local/userenrols/lang/en/local_userenrols.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#4) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#4) Line 6 of the opening comment must start "// (at your option) any later version.".
(#5) Line 7 of the opening comment must start "//".
(#5) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#6) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#6) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#7) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#8) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#8) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
local/userenrols/lib.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#4) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#4) Line 6 of the opening comment must start "// (at your option) any later version.".
(#5) Line 7 of the opening comment must start "//".
(#5) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#6) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#6) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#7) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#8) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#8) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#47) Line indented incorrectly; expected 0 spaces, found 4
(#48) Opening brace should be on the same line as the declaration
(#50) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#52) Inline comments must end in full-stops, exclamation marks, or question marks
(#53) Line indented incorrectly; expected 4 spaces, found 8
(#55) Line indented incorrectly; expected 4 spaces, found 8
(#58) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) Line indented incorrectly; expected 4 spaces, found 8
(#59) Variable "courseadmin_node" must not contain underscores.
(#60) Inline comments must end in full-stops, exclamation marks, or question marks
(#62) Line indented incorrectly; expected 4 spaces, found 8
(#63) Line indented incorrectly; expected 4 spaces, found 8
(#63) Variable "useradmin_node" must not contain underscores.
(#63) Variable "courseadmin_node" must not contain underscores.
(#65) Line indented incorrectly; expected 4 spaces, found 8
(#67) Inline comments must end in full-stops, exclamation marks, or question marks
(#68) Variable "useradmin_node" must not contain underscores.
(#75) Line indented incorrectly; expected 0 spaces, found 4
(#82) Line indented incorrectly; expected 0 spaces, found 4
(#153) Line indented incorrectly; expected 4 spaces, found 8
(#153) Member variable "user_id_field_options" must not contain underscores.
(#166) Line indented incorrectly; expected 4 spaces, found 8
(#167) Opening brace should be on the same line as the declaration
(#169) Line indented incorrectly; expected 8 spaces, found 12
(#169) Variable "user_id_field_options" must not contain underscores.
(#170) Variable "user_id_field_options" must not contain underscores.
(#175) Line indented incorrectly; expected 8 spaces, found 12
(#177) Variable "user_id_field_options" must not contain underscores.
(#179) Line indented incorrectly; expected 4 spaces, found 8
(#189) Line exceeds 132 characters; contains 139 characters
(#199) Line indented incorrectly; expected 4 spaces, found 8
(#199) Variable "enrol_instance" must not contain underscores.
(#199) Variable "ident_field" must not contain underscores.
(#199) Variable "role_id" must not contain underscores.
(#199) Variable "group_assign" must not contain underscores.
(#199) Variable "group_id" must not contain underscores.
(#199) Variable "group_create" must not contain underscores.
(#199) Variable "import_file" must not contain underscores.
(#199) Line exceeds 132 characters; contains 177 characters
(#200) Opening brace should be on the same line as the declaration
(#202) Functions must not contain multiple empty lines in a row; found 3 empty lines
(#205) Inline comments must end in full-stops, exclamation marks, or question marks
(#208) Inline comments must end in full-stops, exclamation marks, or question marks
(#209) Variable "course_context" must not contain underscores.
(#211) Inline comments must end in full-stops, exclamation marks, or question marks
(#212) Line indented incorrectly; expected 8 spaces, found 12
(#212) Variable "ident_field" must not contain underscores.
(#214) Line indented incorrectly; expected 12 spaces, found 16
(#215) Variable "regex_pattern" must not contain underscores.
(#215) Line exceeds 132 characters; contains 168 characters
(#217) Line indented incorrectly; expected 12 spaces, found 16
(#218) Variable "regex_pattern" must not contain underscores.
(#220) Line indented incorrectly; expected 12 spaces, found 16
(#221) Variable "regex_pattern" must not contain underscores.
(#223) Line indented incorrectly; expected 8 spaces, found 12
(#226) Inline comments must end in full-stops, exclamation marks, or question marks
(#227) Variable "selected_group" must not contain underscores.
(#228) Line indented incorrectly; expected 8 spaces, found 12
(#228) Variable "group_assign" must not contain underscores.
(#230) Line indented incorrectly; expected 12 spaces, found 16
(#230) Variable "existing_groups" must not contain underscores.
(#231) Variable "existing_groups" must not contain underscores.
(#232) Line indented incorrectly; expected 12 spaces, found 16
(#234) Line indented incorrectly; expected 12 spaces, found 16
(#234) Variable "group_id" must not contain underscores.
(#235) Line indented incorrectly; expected 16 spaces, found 20
(#235) Variable "group_id" must not contain underscores.
(#235) Variable "existing_groups" must not contain underscores.
(#236) Variable "selected_group" must not contain underscores.
(#236) Variable "existing_groups" must not contain underscores.
(#236) Variable "group_id" must not contain underscores.
(#237) Line indented incorrectly; expected 16 spaces, found 20
(#238) Inline comments must end in full-stops, exclamation marks, or question marks
(#239) Variable "group_id" must not contain underscores.
(#240) Line indented incorrectly; expected 16 spaces, found 20
(#241) Line indented incorrectly; expected 12 spaces, found 16
(#243) Line indented incorrectly; expected 8 spaces, found 12
(#246) Inline comments must end in full-stops, exclamation marks, or question marks
(#248) Variable "enrols_enabled" must not contain underscores.
(#249) Line indented incorrectly; expected 8 spaces, found 12
(#249) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#249) Variable "enrols_enabled" must not contain underscores.
(#250) Line indented incorrectly; expected 12 spaces, found 16
(#253) Line indented incorrectly; expected 12 spaces, found 16
(#254) Line indented incorrectly; expected 8 spaces, found 12
(#257) Inline comments must end in full-stops, exclamation marks, or question marks
(#258) Variable "manual_enrol_plugin" must not contain underscores.
(#260) Variable "user_rec" must not contain underscores.
(#261) Variable "new_group" must not contain underscores.
(#262) Variable "new_grouping" must not contain underscores.
(#264) Inline comments must end in full-stops, exclamation marks, or question marks
(#265) Variable "import_file" must not contain underscores.
(#266) Variable "line_num" must not contain underscores.
(#267) Line indented incorrectly; expected 8 spaces, found 12
(#268) Variable "line_num" must not contain underscores.
(#270) Inline comments must end in full-stops, exclamation marks, or question marks
(#271) Variable "user_rec" must not contain underscores.
(#271) Variable "new_group" must not contain underscores.
(#271) Variable "new_grouping" must not contain underscores.
(#273) Inline control structures are not allowed
(#277) Inline comments must end in full-stops, exclamation marks, or question marks
(#278) Line indented incorrectly; expected 12 spaces, found 16
(#278) Variable "regex_pattern" must not contain underscores.
(#279) Variable "line_num" must not contain underscores.
(#281) Line indented incorrectly; expected 12 spaces, found 16
(#283) Variable "ident_value" must not contain underscores.
(#284) Variable "group_name" must not contain underscores.
(#292) Inline comments must end in full-stops, exclamation marks, or question marks
(#293) Variable "user_rec_array" must not contain underscores.
(#293) Variable "ident_field" must not contain underscores.
(#293) Variable "ident_value" must not contain underscores.
(#295) Inline comments must end in full-stops, exclamation marks, or question marks
(#296) Variable "user_rec_count" must not contain underscores.
(#296) Variable "user_rec_array" must not contain underscores.
(#297) Line indented incorrectly; expected 12 spaces, found 16
(#297) Variable "user_rec_count" must not contain underscores.
(#298) Inline comments must end in full-stops, exclamation marks, or question marks
(#299) Variable "line_num" must not contain underscores.
(#299) Variable "ident_value" must not contain underscores.
(#301) Line indented incorrectly; expected 12 spaces, found 16
(#301) Usage of ELSEIF not allowed; use ELSE IF instead
(#301) Variable "user_rec_count" must not contain underscores.
(#302) Inline comments must end in full-stops, exclamation marks, or question marks
(#303) Variable "line_num" must not contain underscores.
(#303) Variable "ident_value" must not contain underscores.
(#305) Line indented incorrectly; expected 12 spaces, found 16
(#307) Variable "user_rec" must not contain underscores.
(#307) Variable "user_rec_array" must not contain underscores.
(#309) Inline comments must end in full-stops, exclamation marks, or question marks
(#310) Variable "course_context" must not contain underscores.
(#310) Variable "user_rec" must not contain underscores.
(#314) Line indented incorrectly; expected 12 spaces, found 16
(#314) Variable "role_id" must not contain underscores.
(#315) Line indented incorrectly; expected 16 spaces, found 20
(#316) Variable "line_num" must not contain underscores.
(#316) Variable "ident_value" must not contain underscores.
(#317) Line indented incorrectly; expected 16 spaces, found 20
(#318) Line indented incorrectly; expected 20 spaces, found 24
(#318) Expected "try {\n...} catch (...) {\n"; found "try {\n...}\n catch (...) {\n"
(#319) Variable "manual_enrol_plugin" must not contain underscores.
(#319) Variable "enrol_instance" must not contain underscores.
(#319) Variable "user_rec" must not contain underscores.
(#319) Variable "role_id" must not contain underscores.
(#320) Line indented incorrectly; expected 20 spaces, found 24
(#321) Line indented incorrectly; expected 20 spaces, found 24
(#322) Variable "line_num" must not contain underscores.
(#322) Variable "ident_value" must not contain underscores.
(#325) Line indented incorrectly; expected 20 spaces, found 24
(#326) Line indented incorrectly; expected 16 spaces, found 20
(#327) Line indented incorrectly; expected 12 spaces, found 16
(#330) Inline comments must end in full-stops, exclamation marks, or question marks
(#331) Inline control structures are not allowed
(#331) Variable "group_assign" must not contain underscores.
(#331) Variable "group_id" must not contain underscores.
(#331) Variable "group_name" must not contain underscores.
(#334) Inline comments must end in full-stops, exclamation marks, or question marks
(#335) Variable "assign_group_id" must not contain underscores.
(#336) Variable "assign_group_name" must not contain underscores.
(#337) Line indented incorrectly; expected 12 spaces, found 16
(#337) Variable "selected_group" must not contain underscores.
(#339) Variable "assign_group_id" must not contain underscores.
(#339) Variable "selected_group" must not contain underscores.
(#340) Variable "assign_group_name" must not contain underscores.
(#340) Variable "selected_group" must not contain underscores.
(#342) Line indented incorrectly; expected 12 spaces, found 16
(#344) Line indented incorrectly; expected 16 spaces, found 20
(#344) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#344) Variable "existing_groups" must not contain underscores.
(#344) Variable "existing_group" must not contain underscores.
(#345) Inline control structures are not allowed
(#345) Variable "existing_group" must not contain underscores.
(#345) Variable "group_name" must not contain underscores.
(#347) Variable "assign_group_id" must not contain underscores.
(#347) Variable "existing_group" must not contain underscores.
(#348) Variable "assign_group_name" must not contain underscores.
(#348) Variable "existing_group" must not contain underscores.
(#350) Line indented incorrectly; expected 16 spaces, found 20
(#352) Inline comments must end in full-stops, exclamation marks, or question marks
(#353) Line indented incorrectly; expected 16 spaces, found 20
(#353) Variable "assign_group_id" must not contain underscores.
(#355) Inline comments must end in full-stops, exclamation marks, or question marks
(#356) Inline control structures are not allowed
(#356) Variable "group_create" must not contain underscores.
(#358) Inline comments must end in full-stops, exclamation marks, or question marks
(#359) Variable "new_group" must not contain underscores.
(#360) Variable "new_group" must not contain underscores.
(#360) Variable "group_name" must not contain underscores.
(#361) Variable "new_group" must not contain underscores.
(#362) Line indented incorrectly; expected 20 spaces, found 24
(#362) Variable "assign_group_id" must not contain underscores.
(#362) Variable "new_group" must not contain underscores.
(#363) Variable "line_num" must not contain underscores.
(#363) Variable "group_name" must not contain underscores.
(#365) Line indented incorrectly; expected 20 spaces, found 24
(#371) Variable "new_group" must not contain underscores.
(#372) Variable "assign_group_name" must not contain underscores.
(#372) Variable "new_group" must not contain underscores.
(#373) Variable "new_group" must not contain underscores.
(#373) Variable "assign_group_id" must not contain underscores.
(#374) Variable "existing_groups" must not contain underscores.
(#374) Variable "new_group" must not contain underscores.
(#375) Line indented incorrectly; expected 20 spaces, found 24
(#377) Line indented incorrectly; expected 16 spaces, found 20
(#377) This comment is 50% valid code; is this commented out code?
(#379) Line indented incorrectly; expected 12 spaces, found 16
(#381) Inline comments must end in full-stops, exclamation marks, or question marks
(#382) Line indented incorrectly; expected 12 spaces, found 16
(#382) Variable "assign_group_id" must not contain underscores.
(#382) Variable "user_rec" must not contain underscores.
(#383) Variable "assign_group_id" must not contain underscores.
(#383) Variable "user_rec" must not contain underscores.
(#384) Variable "line_num" must not contain underscores.
(#384) Variable "ident_value" must not contain underscores.
(#384) Variable "assign_group_name" must not contain underscores.
(#384) Line exceeds 132 characters; contains 135 characters
(#386) Line indented incorrectly; expected 12 spaces, found 16
(#390) Line indented incorrectly; expected 8 spaces, found 12
(#396) Line indented incorrectly; expected 4 spaces, found 8
(#398) Line indented incorrectly; expected 0 spaces, found 4
(#398) This comment is 50% valid code; is this commented out code?
local/userenrols/version.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#4) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#4) Line 6 of the opening comment must start "// (at your option) any later version.".
(#5) Line 7 of the opening comment must start "//".
(#5) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#6) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#6) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#7) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#8) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#8) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".

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

(17 errors, 5 warnings)

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

local/userenrols/classes/privacy/provider.php
(#28) No one-line description found in phpdocs for class provider
local/userenrols/import.php
(#2) Empty line found after PHP open tag
local/userenrols/import_form.php
(#2) Empty line found after PHP open tag
(#123) Phpdocs for function local_userenrols_index_form::validation has incomplete parameters list
(#34) Class local_userenrols_index_form does not have @copyright tag
(#34) Class local_userenrols_index_form does not have @license tag
local/userenrols/lang/en/local_userenrols.php
(#2) Empty line found after PHP open tag
local/userenrols/lib.php
(#2) Empty line found after PHP open tag
(#79) Class local_userenrols_plugin does not have @copyright tag
(#79) Class local_userenrols_plugin does not have @license tag
(#90) Invalid phpdocs tag @const used
(#95) Invalid phpdocs tag @const used
(#100) Invalid phpdocs tag @const used
(#105) Invalid phpdocs tag @const used
(#110) Invalid phpdocs tag @const used
(#115) Invalid phpdocs tag @const used
(#120) Invalid phpdocs tag @const used
(#125) Invalid phpdocs tag @const used
(#130) Invalid phpdocs tag @const used
(#135) Invalid phpdocs tag @const used
(#140) Invalid phpdocs tag @const used
local/userenrols/version.php
(#2) Empty line found after PHP open tag

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]