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

(365 errors, 95 warnings)

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

local/userenrols/classes/privacy/provider.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#46) Method name "_get_reason" should not be prefixed with an underscore to indicate visibility
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
(#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) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#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) Logical operator "or" is prohibited; use "||" instead
(#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) Variable "group_id" must not contain underscores.
(#158) Line indented incorrectly; expected 8 spaces, found 12
(#158) Variable "group_assign" must not contain underscores.
(#159) Variable "group_id" must not contain underscores.
(#160) Line indented incorrectly; expected 8 spaces, found 12
(#161) Line indented incorrectly; expected 8 spaces, found 12
(#161) Variable "group_id" must not contain underscores.
(#161) Variable "group_id" must not contain underscores.
(#162) Variable "group_id" must not contain underscores.
(#163) Line exceeds 132 characters; contains 142 characters
(#164) Line indented incorrectly; expected 8 spaces, found 12
(#166) Inline comments must end in full-stops, exclamation marks, or question marks
(#167) Line indented incorrectly; expected 8 spaces, found 12
(#167) Variable "group_assign" must not contain underscores.
(#167) Variable "group_id" must not contain underscores.
(#168) Variable "group_create" must not contain underscores.
(#170) Line indented incorrectly; expected 8 spaces, found 12
(#171) Variable "group_create" must not contain underscores.
(#172) Line indented incorrectly; expected 8 spaces, found 12
(#173) Line indented incorrectly; expected 8 spaces, found 12
(#173) Variable "group_create" must not contain underscores.
(#173) Logical operator "or" is prohibited; use "||" instead
(#173) Variable "group_create" must not contain underscores.
(#174) Line exceeds 132 characters; contains 142 characters
(#175) Line indented incorrectly; expected 8 spaces, found 12
(#179) Inline comments must end in full-stops, exclamation marks, or question marks
(#180) Variable "area_files" must not contain underscores.
(#180) Line exceeds 132 characters; contains 177 characters
(#181) Variable "import_file" must not contain underscores.
(#181) Variable "area_files" must not contain underscores.
(#182) Line indented incorrectly; expected 8 spaces, found 12
(#182) Variable "import_file" must not contain underscores.
(#184) Line indented incorrectly; expected 8 spaces, found 12
(#188) Line indented incorrectly; expected 4 spaces, found 8
(#191) Line indented incorrectly; expected 0 spaces, found 4
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
(#83) Opening brace should be on the same line as the declaration for class local_userenrols_plugin
(#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 180 characters
(#217) Line indented incorrectly; expected 12 spaces, found 16
(#218) Variable "regex_pattern" must not contain underscores.
(#218) Line exceeds 132 characters; contains 135 characters
(#220) Line indented incorrectly; expected 8 spaces, found 12
(#223) Inline comments must end in full-stops, exclamation marks, or question marks
(#224) Variable "selected_group" must not contain underscores.
(#225) Line indented incorrectly; expected 8 spaces, found 12
(#225) Variable "group_assign" must not contain underscores.
(#227) Line indented incorrectly; expected 12 spaces, found 16
(#227) Variable "existing_groups" must not contain underscores.
(#228) Variable "existing_groups" must not contain underscores.
(#229) Line indented incorrectly; expected 12 spaces, found 16
(#231) Line indented incorrectly; expected 12 spaces, found 16
(#231) Variable "group_id" must not contain underscores.
(#232) Line indented incorrectly; expected 16 spaces, found 20
(#232) Variable "group_id" must not contain underscores.
(#232) Variable "existing_groups" must not contain underscores.
(#233) Variable "selected_group" must not contain underscores.
(#233) Variable "existing_groups" must not contain underscores.
(#233) Variable "group_id" must not contain underscores.
(#234) Line indented incorrectly; expected 16 spaces, found 20
(#235) Inline comments must end in full-stops, exclamation marks, or question marks
(#236) Variable "group_id" must not contain underscores.
(#237) Line indented incorrectly; expected 16 spaces, found 20
(#238) Line indented incorrectly; expected 12 spaces, found 16
(#240) Line indented incorrectly; expected 8 spaces, found 12
(#243) Inline comments must end in full-stops, exclamation marks, or question marks
(#245) Variable "enrols_enabled" must not contain underscores.
(#246) Line indented incorrectly; expected 8 spaces, found 12
(#246) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#246) Variable "enrols_enabled" must not contain underscores.
(#247) Line indented incorrectly; expected 12 spaces, found 16
(#250) Line indented incorrectly; expected 12 spaces, found 16
(#251) Line indented incorrectly; expected 8 spaces, found 12
(#254) Inline comments must end in full-stops, exclamation marks, or question marks
(#255) Variable "manual_enrol_plugin" must not contain underscores.
(#257) Variable "user_rec" must not contain underscores.
(#258) Variable "new_group" must not contain underscores.
(#259) Variable "new_grouping" must not contain underscores.
(#261) Inline comments must end in full-stops, exclamation marks, or question marks
(#262) Variable "import_file" must not contain underscores.
(#263) Variable "line_num" must not contain underscores.
(#264) Line indented incorrectly; expected 8 spaces, found 12
(#265) Variable "line_num" must not contain underscores.
(#267) Inline comments must end in full-stops, exclamation marks, or question marks
(#268) Variable "user_rec" must not contain underscores.
(#268) Variable "new_group" must not contain underscores.
(#268) Variable "new_grouping" must not contain underscores.
(#271) Inline comments must end in full-stops, exclamation marks, or question marks
(#272) Inline control structures are not allowed
(#276) Inline comments must end in full-stops, exclamation marks, or question marks
(#277) Line indented incorrectly; expected 12 spaces, found 16
(#277) Variable "regex_pattern" must not contain underscores.
(#278) Variable "line_num" must not contain underscores.
(#280) Line indented incorrectly; expected 12 spaces, found 16
(#282) Variable "ident_value" must not contain underscores.
(#283) Variable "group_name" must not contain underscores.
(#291) Inline comments must end in full-stops, exclamation marks, or question marks
(#292) Variable "user_rec_array" must not contain underscores.
(#292) Variable "ident_field" must not contain underscores.
(#292) Variable "ident_value" must not contain underscores.
(#294) Inline comments must end in full-stops, exclamation marks, or question marks
(#295) Variable "user_rec_count" must not contain underscores.
(#295) Variable "user_rec_array" must not contain underscores.
(#296) Line indented incorrectly; expected 12 spaces, found 16
(#296) Variable "user_rec_count" must not contain underscores.
(#297) Inline comments must end in full-stops, exclamation marks, or question marks
(#298) Variable "line_num" must not contain underscores.
(#298) Variable "ident_value" must not contain underscores.
(#300) Line indented incorrectly; expected 12 spaces, found 16
(#300) Usage of ELSEIF not allowed; use ELSE IF instead
(#300) Variable "user_rec_count" must not contain underscores.
(#301) Inline comments must end in full-stops, exclamation marks, or question marks
(#302) Variable "line_num" must not contain underscores.
(#302) Variable "ident_value" must not contain underscores.
(#304) Line indented incorrectly; expected 12 spaces, found 16
(#306) Variable "user_rec" must not contain underscores.
(#306) Variable "user_rec_array" must not contain underscores.
(#308) Inline comments must end in full-stops, exclamation marks, or question marks
(#309) Variable "course_context" must not contain underscores.
(#309) Variable "user_rec" must not contain underscores.
(#313) Line indented incorrectly; expected 12 spaces, found 16
(#313) Variable "role_id" must not contain underscores.
(#314) Line indented incorrectly; expected 16 spaces, found 20
(#315) Variable "line_num" must not contain underscores.
(#315) Variable "ident_value" must not contain underscores.
(#316) Line indented incorrectly; expected 16 spaces, found 20
(#317) Line indented incorrectly; expected 20 spaces, found 24
(#317) Expected "try {\n...} catch (...) {\n"; found "try {\n...}\n catch (...) {\n"
(#318) Variable "manual_enrol_plugin" must not contain underscores.
(#318) Variable "enrol_instance" must not contain underscores.
(#318) Variable "user_rec" must not contain underscores.
(#318) Variable "role_id" must not contain underscores.
(#319) Line indented incorrectly; expected 20 spaces, found 24
(#320) Line indented incorrectly; expected 20 spaces, found 24
(#321) Variable "line_num" must not contain underscores.
(#321) Variable "ident_value" must not contain underscores.
(#324) Line indented incorrectly; expected 20 spaces, found 24
(#325) Line indented incorrectly; expected 16 spaces, found 20
(#326) Line indented incorrectly; expected 12 spaces, found 16
(#329) Inline comments must end in full-stops, exclamation marks, or question marks
(#330) Inline control structures are not allowed
(#330) Variable "group_assign" must not contain underscores.
(#330) Variable "group_id" must not contain underscores.
(#330) Variable "group_name" must not contain underscores.
(#333) Inline comments must end in full-stops, exclamation marks, or question marks
(#334) Variable "assign_group_id" must not contain underscores.
(#335) Variable "assign_group_name" must not contain underscores.
(#336) Line indented incorrectly; expected 12 spaces, found 16
(#336) Variable "selected_group" must not contain underscores.
(#338) Variable "assign_group_id" must not contain underscores.
(#338) Variable "selected_group" must not contain underscores.
(#339) Variable "assign_group_name" must not contain underscores.
(#339) Variable "selected_group" must not contain underscores.
(#341) Line indented incorrectly; expected 12 spaces, found 16
(#343) Line indented incorrectly; expected 16 spaces, found 20
(#343) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#343) Variable "existing_groups" must not contain underscores.
(#343) Variable "existing_group" must not contain underscores.
(#344) Inline control structures are not allowed
(#344) Variable "existing_group" must not contain underscores.
(#344) Variable "group_name" must not contain underscores.
(#346) Variable "assign_group_id" must not contain underscores.
(#346) Variable "existing_group" must not contain underscores.
(#347) Variable "assign_group_name" must not contain underscores.
(#347) Variable "existing_group" must not contain underscores.
(#349) Line indented incorrectly; expected 16 spaces, found 20
(#351) Inline comments must end in full-stops, exclamation marks, or question marks
(#352) Line indented incorrectly; expected 16 spaces, found 20
(#352) Variable "assign_group_id" must not contain underscores.
(#354) Inline comments must end in full-stops, exclamation marks, or question marks
(#355) Inline control structures are not allowed
(#355) Variable "group_create" must not contain underscores.
(#357) Inline comments must end in full-stops, exclamation marks, or question marks
(#358) Variable "new_group" must not contain underscores.
(#359) Variable "new_group" must not contain underscores.
(#359) Variable "group_name" must not contain underscores.
(#360) Variable "new_group" must not contain underscores.
(#361) Line indented incorrectly; expected 20 spaces, found 24
(#361) Variable "assign_group_id" must not contain underscores.
(#361) Variable "new_group" must not contain underscores.
(#362) Variable "line_num" must not contain underscores.
(#362) Variable "group_name" must not contain underscores.
(#364) Line indented incorrectly; expected 20 spaces, found 24
(#370) Variable "new_group" must not contain underscores.
(#371) Variable "assign_group_name" must not contain underscores.
(#371) Variable "new_group" must not contain underscores.
(#372) Variable "new_group" must not contain underscores.
(#372) Variable "assign_group_id" must not contain underscores.
(#373) Variable "existing_groups" must not contain underscores.
(#373) Variable "new_group" must not contain underscores.
(#374) Line indented incorrectly; expected 20 spaces, found 24
(#376) Line indented incorrectly; expected 16 spaces, found 20
(#376) This comment is 50% valid code; is this commented out code?
(#378) Line indented incorrectly; expected 12 spaces, found 16
(#380) Inline comments must end in full-stops, exclamation marks, or question marks
(#381) Line indented incorrectly; expected 12 spaces, found 16
(#381) Variable "assign_group_id" must not contain underscores.
(#381) Variable "user_rec" must not contain underscores.
(#382) Variable "assign_group_id" must not contain underscores.
(#382) Variable "user_rec" must not contain underscores.
(#383) Variable "line_num" must not contain underscores.
(#383) Variable "ident_value" must not contain underscores.
(#383) Variable "assign_group_name" must not contain underscores.
(#383) Line exceeds 132 characters; contains 135 characters
(#385) Line indented incorrectly; expected 12 spaces, found 16
(#389) Line indented incorrectly; expected 8 spaces, found 12
(#395) Line indented incorrectly; expected 4 spaces, found 8
(#397) Line indented incorrectly; expected 0 spaces, found 4
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

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


Gherkin .feature problems

(0 errors, 0 warnings)

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