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

(1127 errors, 112 warnings)

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

mod/coursebadges/backup/moodle2/backup_coursebadges_activity_task.class.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#22) Whitespace found at end of line
(#35) Whitespace found at end of line
(#58) The static declaration must come after the visibility declaration
(#61) Commas (,) must be followed by white space.
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
(#64) Expected 1 space before "="; 0 found
(#64) Expected 1 space after "="; 0 found
(#65) Expected 1 space before "="; 0 found
mod/coursebadges/backup/moodle2/backup_coursebadges_stepslib.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#22) Whitespace found at end of line
(#32) Whitespace found at end of line
(#40) Commas (,) must be followed by white space.
(#45) Variable "selection_badges" must not contain underscores.
(#46) Variable "selection_badge" must not contain underscores.
(#50) Inline comments must end in full-stops, exclamation marks, or question marks
(#52) Variable "selection_badges" must not contain underscores.
(#53) Variable "selection_badges" must not contain underscores.
(#53) Variable "selection_badge" must not contain underscores.
(#56) Inline comments must end in full-stops, exclamation marks, or question marks
(#60) Inline comments must end in full-stops, exclamation marks, or question marks
(#61) Variable "selection_badge" must not contain underscores.
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
(#64) Variable "selection_badge" must not contain underscores.
(#67) Inline comments must end in full-stops, exclamation marks, or question marks
(#68) Inline comments must end in full-stops, exclamation marks, or question marks
(#70) Inline comments must end in full-stops, exclamation marks, or question marks
(#73) File must end with a newline character
mod/coursebadges/backup/moodle2/restore_coursebadges_activity_task.class.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#22) Whitespace found at end of line
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
(#36) Whitespace found at end of line
(#44) Inline comments must end in full-stops, exclamation marks, or question marks
(#51) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) The static declaration must come after the visibility declaration
(#71) The static declaration must come after the visibility declaration
(#80) File must end with a newline character
mod/coursebadges/backup/moodle2/restore_coursebadges_stepslib.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#22) Whitespace found at end of line
(#32) Whitespace found at end of line
(#46) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) Inline comments must start with a capital letter, digit or 3-dots sequence
(#57) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) Inline comments must start with a capital letter, digit or 3-dots sequence
(#59) Inline comments must end in full-stops, exclamation marks, or question marks
(#70) Inline comments must start with a capital letter, digit or 3-dots sequence
(#70) Inline comments must end in full-stops, exclamation marks, or question marks
(#83) Inline comments must start with a capital letter, digit or 3-dots sequence
(#85) Inline comments must end in full-stops, exclamation marks, or question marks
(#89) Line exceeds 132 characters; contains 146 characters
(#92) Expected 1 space before "*"; 0 found
(#92) Expected 1 space after "*"; 0 found
(#101) Inline comments must end in full-stops, exclamation marks, or question marks
(#104) File must end with a newline character
mod/coursebadges/classes/course_badges.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#22) Whitespace found at end of line
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#36) Whitespace found at end of line
(#52) Member variable "context_module" must not contain underscores.
(#55) Visibility must be declared on method "__construct"
(#86) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#118) Must use "self::" for local static member reference
(#124) Variable "course_badge" must not contain underscores.
(#126) Variable "pre_select_badgeids" must not contain underscores.
(#128) Variable "list_pre_select" must not contain underscores.
(#129) Variable "pre_select_badgeids" must not contain underscores.
(#129) Variable "pre_select_badgeid" must not contain underscores.
(#130) Variable "selection_badges" must not contain underscores.
(#131) Variable "selection_badges" must not contain underscores.
(#131) Variable "course_badge" must not contain underscores.
(#132) Variable "selection_badges" must not contain underscores.
(#132) Variable "pre_select_badgeid" must not contain underscores.
(#133) Variable "selection_badges" must not contain underscores.
(#134) Variable "list_pre_select" must not contain underscores.
(#134) Variable "selection_badges" must not contain underscores.
(#136) Variable "list_pre_select" must not contain underscores.
(#138) Variable "course_badge" must not contain underscores.
(#159) Expected "if (...) {\n"; found "if (...){\n"
(#161) Must use "self::" for local static member reference
(#167) Variable "all_user_choices" must not contain underscores.
(#169) Variable "all_user_choices" must not contain underscores.
(#175) Variable "pre_select_badgeids" must not contain underscores.
(#177) Variable "list_pre_select" must not contain underscores.
(#178) Variable "pre_select_badgeids" must not contain underscores.
(#178) Variable "pre_select_badgeid" must not contain underscores.
(#179) Variable "selection_badges" must not contain underscores.
(#180) Variable "selection_badges" must not contain underscores.
(#181) Variable "selection_badges" must not contain underscores.
(#181) Variable "pre_select_badgeid" must not contain underscores.
(#182) Variable "selection_badges" must not contain underscores.
(#183) Variable "list_pre_select" must not contain underscores.
(#183) Variable "selection_badges" must not contain underscores.
(#185) Variable "list_pre_select" must not contain underscores.
(#188) Variable "course_badge" must not contain underscores.
(#189) Variable "course_badge" must not contain underscores.
(#206) Must use "self::" for local static member reference
(#214) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#214) Inline comments must end in full-stops, exclamation marks, or question marks
(#237) Whitespace found at end of line within string
(#238) Whitespace found at end of line within string
(#239) Whitespace found at end of line within string
(#240) Whitespace found at end of line within string
(#259) Whitespace found at end of line within string
(#260) Whitespace found at end of line within string
(#261) Whitespace found at end of line within string
(#262) Whitespace found at end of line within string
(#263) Whitespace found at end of line within string
(#264) Whitespace found at end of line within string
(#265) Whitespace found at end of line within string
(#266) Whitespace found at end of line within string
(#287) Whitespace found at end of line within string
(#288) Whitespace found at end of line within string
(#289) Whitespace found at end of line within string
(#290) Whitespace found at end of line within string
(#291) Whitespace found at end of line within string
(#306) Whitespace found at end of line within string
(#307) Whitespace found at end of line within string
(#308) Whitespace found at end of line within string
(#309) Whitespace found at end of line within string
(#339) Whitespace found at end of line within string
(#340) Whitespace found at end of line within string
(#341) Whitespace found at end of line within string
(#342) Whitespace found at end of line within string
(#343) Whitespace found at end of line within string
(#344) Whitespace found at end of line within string
(#345) Whitespace found at end of line within string
(#346) Whitespace found at end of line within string
(#347) Whitespace found at end of line within string
(#348) Whitespace found at end of line within string
(#349) Whitespace found at end of line within string
(#354) Variable "selected_ids_data" must not contain underscores.
(#356) Variable "rightlistidsArray" must be all lower-case
(#357) Variable "rightlistidsArray" must be all lower-case
(#358) Variable "rightlistidsArray" must be all lower-case
(#361) Whitespace found at end of line
(#363) Variable "selected_ids_data" must not contain underscores.
(#366) Variable "list_selected" must not contain underscores.
(#367) Variable "selected_ids_data" must not contain underscores.
(#367) Variable "selection_badge" must not contain underscores.
(#368) Variable "user_choice" must not contain underscores.
(#369) Variable "user_choice" must not contain underscores.
(#369) Variable "selection_badge" must not contain underscores.
(#370) Variable "user_choice" must not contain underscores.
(#371) Variable "user_choice" must not contain underscores.
(#372) Variable "list_selected" must not contain underscores.
(#372) Variable "user_choice" must not contain underscores.
(#375) Variable "list_selected" must not contain underscores.
(#376) Variable "list_selected" must not contain underscores.
(#379) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#379) Line exceeds 132 characters; contains 135 characters
(#379) Inline comments must end in full-stops, exclamation marks, or question marks
(#381) Inline comments must end in full-stops, exclamation marks, or question marks
(#418) Expected 1 space before "=>"; 0 found
(#419) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#419) Inline comments must end in full-stops, exclamation marks, or question marks
(#424) Whitespace found at end of line within string
(#425) Whitespace found at end of line within string
(#426) Whitespace found at end of line within string
(#427) Whitespace found at end of line within string
(#428) Whitespace found at end of line within string
(#429) Whitespace found at end of line within string
(#431) Line exceeds 132 characters; contains 168 characters
(#446) Variable "course_badge_id" must not contain underscores.
(#450) Variable "course_badge_id" must not contain underscores.
(#451) Whitespace found at end of line within string
(#452) Whitespace found at end of line within string
(#453) Whitespace found at end of line within string
(#455) Variable "course_badge_id" must not contain underscores.
(#489) Whitespace found at end of line within string
(#490) Whitespace found at end of line within string
(#491) Whitespace found at end of line within string
(#492) Whitespace found at end of line within string
(#493) Whitespace found at end of line within string
(#497) Variable "cb_blocks" must not contain underscores.
(#499) Expected "if (...) {\n"; found "if(...){\n"
(#499) Variable "cb_blocks" must not contain underscores.
(#519) Whitespace found at end of line within string
(#520) Whitespace found at end of line within string
(#521) Whitespace found at end of line within string
(#524) Expected "if (...) {\n"; found "if(...){\n"
(#575) Inline comments must end in full-stops, exclamation marks, or question marks
(#582) File must end with a newline character
mod/coursebadges/classes/course_badges_notification.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#22) Whitespace found at end of line
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#37) Whitespace found at end of line
(#72) Must use "self::" for local static member reference
(#76) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#98) Whitespace found at end of line within string
(#99) Whitespace found at end of line within string
(#100) Whitespace found at end of line within string
(#101) Whitespace found at end of line within string
(#102) Whitespace found at end of line within string
(#114) Variable "new_notif_badge" must not contain underscores.
(#115) Variable "new_notif_badge" must not contain underscores.
(#116) Variable "new_notif_badge" must not contain underscores.
(#117) Variable "new_notif_badge" must not contain underscores.
(#118) Variable "new_notif_badge" must not contain underscores.
(#119) Variable "new_notif_badge" must not contain underscores.
(#120) Variable "new_notif_badge" must not contain underscores.
(#122) Variable "new_notif_badge" must not contain underscores.
(#151) Variable "url_badge" must not contain underscores.
(#151) Expected 1 space before "=>"; 0 found
(#151) Expected 1 space after "=>"; 0 found
(#152) Variable "url_badge" must not contain underscores.
(#157) Variable "cm_coursebadges" must not contain underscores.
(#158) Variable "cm_coursebadges" must not contain underscores.
(#159) Variable "text_outro" must not contain underscores.
(#160) Variable "text_outro" must not contain underscores.
(#175) Variable "context_course" must not contain underscores.
(#192) Variable "context_course" must not contain underscores.
(#198) Commas (,) must be followed by white space.
(#198) Commas (,) must be followed by white space.
(#198) Commas (,) must be followed by white space.
(#198) Commas (,) must be followed by white space.
(#198) Line exceeds 132 characters; contains 163 characters
(#208) Expected 1 space before "=>"; 0 found
(#208) Line exceeds 132 characters; contains 139 characters
(#211) Commas (,) must be followed by white space.
(#212) Commas (,) must be followed by white space.
(#218) Variable "cm_coursebadges" must not contain underscores.
(#219) Variable "cm_coursebadges" must not contain underscores.
(#227) Variable "img_footer" must not contain underscores.
(#227) Whitespace found at end of line within string
(#228) Line exceeds maximum limit of 180 characters; contains 10562 characters
(#228) Whitespace found at end of line within string
(#229) Line exceeds maximum limit of 180 characters; contains 32583 characters
(#229) Whitespace found at end of line within string
(#231) Variable "img_footer" must not contain underscores.
(#236) Visibility must be declared on method "get_users_with_role_on_context"
(#236) Variable "course_id" must not contain underscores.
(#239) Variable "course_id" must not contain underscores.
(#241) Whitespace found at end of line within string
(#242) Whitespace found at end of line within string
(#243) Whitespace found at end of line within string
(#244) Whitespace found at end of line within string
(#245) Whitespace found at end of line within string
(#250) File must end with a newline character
mod/coursebadges/classes/dual_list.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#22) Whitespace found at end of line
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#36) Whitespace found at end of line
(#50) Visibility must be declared on method "__construct"
(#56) Expected "if (...) {\n"; found "if(...){\n"
(#56) Must use "self::" for local static member reference
(#66) Variable "badges_renderer" must not contain underscores.
(#71) Must use "self::" for local static member reference
(#77) Commas (,) must be followed by white space.
(#82) Commas (,) must be followed by white space.
(#86) Must use "self::" for local static member reference
(#87) Inline comments must start with a capital letter, digit or 3-dots sequence
(#87) Inline comments must end in full-stops, exclamation marks, or question marks
(#88) Commas (,) must be followed by white space.
(#103) Variable "image_url" must not contain underscores.
(#113) Variable "image_url" must not contain underscores.
(#113) Commas (,) must be followed by white space.
(#114) Commas (,) must be followed by white space.
(#117) Commas (,) must be followed by white space.
(#122) Commas (,) must be followed by white space.
(#123) Commas (,) must be followed by white space.
(#124) Commas (,) must be followed by white space.
(#125) Commas (,) must be followed by white space.
(#125) Variable "badges_renderer" must not contain underscores.
(#149) Variable "image_url" must not contain underscores.
(#156) Variable "image_url" must not contain underscores.
(#157) Commas (,) must be followed by white space.
(#160) Commas (,) must be followed by white space.
(#165) Commas (,) must be followed by white space.
(#167) Commas (,) must be followed by white space.
(#168) Variable "badges_renderer" must not contain underscores.
(#179) Commas (,) must be followed by white space.
(#179) Commas (,) must be followed by white space.
(#179) Expected 1 space before "=>"; 0 found
(#183) File must end with a newline character
mod/coursebadges/classes/event/course_module_instance_list_viewed.php
(#21) Whitespace found at end of line
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#33) Whitespace found at end of line
mod/coursebadges/classes/form/choicebadges_form.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#22) Whitespace found at end of line
(#30) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#39) Whitespace found at end of line
(#43) Line exceeds 132 characters; contains 167 characters
(#66) Variable "course_badges" must not contain underscores.
(#67) Variable "cb_data" must not contain underscores.
(#67) Variable "course_badges" must not contain underscores.
(#68) Variable "all_selected_badges" must not contain underscores.
(#68) Variable "course_badges" must not contain underscores.
(#70) Variable "cb_data" must not contain underscores.
(#70) Variable "all_selected_badges" must not contain underscores.
(#73) Variable "dual_list" must not contain underscores.
(#75) Variable "pre_select_badges" must not contain underscores.
(#76) Variable "pre_select_badges" must not contain underscores.
(#77) Variable "pre_select_badges" must not contain underscores.
(#78) Variable "pre_select_badges" must not contain underscores.
(#79) Variable "pre_select_badges" must not contain underscores.
(#80) Variable "pre_select_badges" must not contain underscores.
(#80) Variable "course_badges" must not contain underscores.
(#81) Variable "dual_list" must not contain underscores.
(#81) Variable "pre_select_badges" must not contain underscores.
(#83) Variable "cb_data" must not contain underscores.
(#83) Variable "all_selected_badges" must not contain underscores.
(#84) Variable "cb_data" must not contain underscores.
(#85) Variable "dual_list" must not contain underscores.
(#85) Commas (,) must be followed by white space.
(#87) Variable "dual_list" must not contain underscores.
(#90) Variable "selected_badges" must not contain underscores.
(#91) Variable "selected_badges" must not contain underscores.
(#92) Variable "selected_badges" must not contain underscores.
(#93) Variable "selected_badges" must not contain underscores.
(#94) Variable "selected_badges" must not contain underscores.
(#95) Variable "selected_badges" must not contain underscores.
(#95) Variable "all_selected_badges" must not contain underscores.
(#96) Variable "dual_list" must not contain underscores.
(#96) Variable "selected_badges" must not contain underscores.
(#98) Variable "dual_list" must not contain underscores.
(#100) Variable "obtained_badges" must not contain underscores.
(#101) Variable "obtained_badges" must not contain underscores.
(#102) Variable "obtained_badges" must not contain underscores.
(#103) Variable "obtained_badges" must not contain underscores.
(#104) Variable "obtained_badges" must not contain underscores.
(#105) Variable "obtained_badges" must not contain underscores.
(#105) Variable "course_badges" must not contain underscores.
(#106) Variable "dual_list" must not contain underscores.
(#106) Variable "obtained_badges" must not contain underscores.
(#108) Variable "dual_list" must not contain underscores.
(#110) Variable "cb_data" must not contain underscores.
(#110) Variable "all_selected_badges" must not contain underscores.
(#111) Variable "cb_data" must not contain underscores.
(#116) Visibility must be declared on method "definition_after_data"
(#120) Expected "if (...) {\n"; found "if (...){\n"
(#121) Variable "show_notif" must not contain underscores.
(#126) Variable "course_badge" must not contain underscores.
(#127) Variable "cb_data" must not contain underscores.
(#127) Variable "course_badge" must not contain underscores.
(#128) Variable "all_selected_badges" must not contain underscores.
(#128) Variable "course_badge" must not contain underscores.
(#130) Variable "cb_data" must not contain underscores.
(#130) Variable "all_selected_badges" must not contain underscores.
(#131) Variable "cb_data" must not contain underscores.
(#135) Variable "cb_data" must not contain underscores.
(#135) Variable "all_selected_badges" must not contain underscores.
(#136) Variable "show_notif" must not contain underscores.
(#139) Variable "cb_data" must not contain underscores.
(#140) Variable "show_notif" must not contain underscores.
(#141) Variable "cb_data" must not contain underscores.
(#143) Variable "cb_data" must not contain underscores.
(#144) Variable "show_notif" must not contain underscores.
(#145) Variable "cb_data" must not contain underscores.
(#148) Variable "show_notif" must not contain underscores.
(#153) Variable "course_badge" must not contain underscores.
(#157) Variable "all_selected_badges" must not contain underscores.
(#162) File must end with a newline character
mod/coursebadges/classes/overview/badges_overview_data.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#22) Whitespace found at end of line
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#37) Whitespace found at end of line
(#50) Member variable "coursebadges_id" must not contain underscores.
(#74) Expected "if (...) {\n"; found "if(...){\n"
(#79) Variable "sqlFrom" must be all lower-case
(#79) Whitespace found at end of line within string
(#80) Whitespace found at end of line within string
(#81) Whitespace found at end of line within string
(#83) Variable "sqlWhere" must be all lower-case
(#83) Line exceeds 132 characters; contains 135 characters
(#85) Variable "sqlCount" must be all lower-case
(#85) Variable "sqlFrom" must be all lower-case
(#85) Variable "sqlWhere" must be all lower-case
(#86) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#88) Whitespace found at end of line within string
(#89) Whitespace found at end of line within string
(#90) Whitespace found at end of line within string
(#91) Whitespace found at end of line within string
(#92) Whitespace found at end of line within string
(#93) Whitespace found at end of line within string
(#94) Whitespace found at end of line within string
(#95) Whitespace found at end of line within string
(#96) Whitespace found at end of line within string
(#97) Whitespace found at end of line within string
(#98) Whitespace found at end of line within string
(#99) Whitespace found at end of line within string
(#100) Whitespace found at end of line within string
(#101) Whitespace found at end of line within string
(#102) Whitespace found at end of line within string
(#103) Whitespace found at end of line within string
(#104) Whitespace found at end of line within string
(#105) Whitespace found at end of line within string
(#106) Whitespace found at end of line within string
(#107) Whitespace found at end of line within string
(#108) Whitespace found at end of line within string
(#109) Whitespace found at end of line within string
(#110) Whitespace found at end of line within string
(#111) Whitespace found at end of line within string
(#112) Whitespace found at end of line within string
(#113) Whitespace found at end of line within string
(#114) Variable "sqlFrom" must be all lower-case
(#114) Variable "sqlWhere" must be all lower-case
(#115) Line indented incorrectly; expected at least 8 spaces, found 0
(#124) Variable "sqlCount" must be all lower-case
(#135) Variable "processedResults" must be all lower-case
(#138) Variable "processedResults" must be all lower-case
(#139) Variable "processedResults" must be all lower-case
(#140) Variable "processedResults" must be all lower-case
(#150) Variable "processedResults" must be all lower-case
(#151) Variable "processedResults" must be all lower-case
(#152) Variable "processedResults" must be all lower-case
(#153) Variable "processedResults" must be all lower-case
(#153) Line exceeds 132 characters; contains 134 characters
(#154) Variable "processedResults" must be all lower-case
(#155) Variable "processedResults" must be all lower-case
(#156) Variable "processedResults" must be all lower-case
(#157) Whitespace found at end of line
(#159) Variable "processedResults" must be all lower-case
(#164) Variable "processedResults" must be all lower-case
(#208) File must end with a newline character
mod/coursebadges/classes/overview/form/badges_overview_form.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#22) Whitespace found at end of line
(#30) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#36) Whitespace found at end of line
(#49) Whitespace found at end of line
mod/coursebadges/classes/overview/form/users_overview_form.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#22) Whitespace found at end of line
(#31) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#37) Whitespace found at end of line
mod/coursebadges/classes/overview/mod_filters.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#22) Whitespace found at end of line
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#33) Whitespace found at end of line
(#40) Whitespace found at end of line within string
(#41) Whitespace found at end of line within string
(#42) Whitespace found at end of line within string
(#43) Whitespace found at end of line within string
(#44) Whitespace found at end of line within string
(#45) Whitespace found at end of line within string
(#46) Whitespace found at end of line within string
(#47) Commas (,) must be followed by white space.
(#59) Whitespace found at end of line
(#61) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#73) Whitespace found at end of line
(#74) File must end with a newline character
mod/coursebadges/classes/overview/users_overview_data.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#22) Whitespace found at end of line
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#37) Whitespace found at end of line
(#52) Member variable "coursebadges_id" must not contain underscores.
(#89) Expected "if (...) {\n"; found "if(...){\n"
(#96) Expected "if (...) {\n"; found "if(...){\n"
(#99) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#109) Expected "if (...) {\n"; found "if(...){\n"
(#112) Expected "} else if (...) {\n"; found "} else if(...){\n"
(#112) Expected "if (...) {\n"; found "if(...){\n"
(#114) Expected "if (...) {\n"; found "if(...){\n"
(#116) Expected "if (...) {\n"; found "if(...){\n"
(#118) Expected "foreach (...) {\n"; found "foreach (...){\n"
(#121) Passing the $glue and $pieces parameters in reverse order to implode has been deprecated since PHP 7.4 and is removed since PHP 8.0; $glue should be the first parameter and $pieces the second
(#130) Expected "if (...) {\n"; found "if(...){\n"
(#131) Inline comments must start with a capital letter, digit or 3-dots sequence
(#131) Inline comments must end in full-stops, exclamation marks, or question marks
(#135) Expected "if (...) {\n"; found "if(...){\n"
(#136) Inline comments must start with a capital letter, digit or 3-dots sequence
(#136) Inline comments must end in full-stops, exclamation marks, or question marks
(#141) Expected "if (...) {\n"; found "if(...){\n"
(#149) Variable "sqlFrom" must be all lower-case
(#149) Whitespace found at end of line within string
(#150) Whitespace found at end of line within string
(#151) Whitespace found at end of line within string
(#152) Whitespace found at end of line within string
(#153) Whitespace found at end of line within string
(#154) Whitespace found at end of line within string
(#155) Whitespace found at end of line within string
(#156) Whitespace found at end of line within string
(#157) Whitespace found at end of line within string
(#158) Whitespace found at end of line within string
(#159) Whitespace found at end of line within string
(#160) Whitespace found at end of line within string
(#161) Whitespace found at end of line within string
(#162) Whitespace found at end of line within string
(#163) Whitespace found at end of line within string
(#164) Whitespace found at end of line within string
(#165) Whitespace found at end of line within string
(#166) Whitespace found at end of line within string
(#167) Whitespace found at end of line within string
(#168) Whitespace found at end of line within string
(#169) Whitespace found at end of line within string
(#170) Whitespace found at end of line within string
(#171) Whitespace found at end of line within string
(#172) Whitespace found at end of line within string
(#173) Whitespace found at end of line within string
(#174) Whitespace found at end of line within string
(#175) Whitespace found at end of line within string
(#176) Whitespace found at end of line within string
(#177) Whitespace found at end of line within string
(#178) Whitespace found at end of line within string
(#179) Whitespace found at end of line within string
(#180) Whitespace found at end of line within string
(#181) Whitespace found at end of line within string
(#182) Whitespace found at end of line within string
(#183) Whitespace found at end of line within string
(#184) Whitespace found at end of line within string
(#185) Whitespace found at end of line within string
(#186) Whitespace found at end of line within string
(#187) Whitespace found at end of line within string
(#188) Whitespace found at end of line within string
(#189) Whitespace found at end of line within string
(#190) Whitespace found at end of line within string
(#191) Whitespace found at end of line within string
(#192) Whitespace found at end of line within string
(#193) Whitespace found at end of line within string
(#194) Whitespace found at end of line within string
(#195) Whitespace found at end of line within string
(#196) Whitespace found at end of line within string
(#197) Whitespace found at end of line within string
(#198) Whitespace found at end of line within string
(#199) Whitespace found at end of line within string
(#200) Whitespace found at end of line within string
(#201) Whitespace found at end of line within string
(#202) Whitespace found at end of line within string
(#203) Whitespace found at end of line within string
(#204) Whitespace found at end of line within string
(#205) Whitespace found at end of line within string
(#206) Whitespace found at end of line within string
(#207) Whitespace found at end of line within string
(#208) Whitespace found at end of line within string
(#209) Whitespace found at end of line within string
(#210) Whitespace found at end of line within string
(#211) Whitespace found at end of line within string
(#212) Whitespace found at end of line within string
(#213) Whitespace found at end of line within string
(#214) Whitespace found at end of line within string
(#215) Whitespace found at end of line within string
(#216) Whitespace found at end of line within string
(#217) Whitespace found at end of line within string
(#218) Whitespace found at end of line within string
(#219) Whitespace found at end of line within string
(#220) Whitespace found at end of line within string
(#221) Whitespace found at end of line within string
(#222) Whitespace found at end of line within string
(#223) Whitespace found at end of line within string
(#224) Whitespace found at end of line within string
(#225) Whitespace found at end of line within string
(#226) Whitespace found at end of line within string
(#227) Whitespace found at end of line within string
(#228) Whitespace found at end of line within string
(#229) Whitespace found at end of line within string
(#230) Whitespace found at end of line within string
(#231) Whitespace found at end of line within string
(#232) Whitespace found at end of line within string
(#233) Whitespace found at end of line within string
(#234) Whitespace found at end of line within string
(#235) Whitespace found at end of line within string
(#236) Whitespace found at end of line within string
(#237) Whitespace found at end of line within string
(#240) Variable "sqlCount" must be all lower-case
(#240) Variable "sqlFrom" must be all lower-case
(#240) Whitespace found at end of line
(#241) Whitespace found at end of line within string
(#242) Whitespace found at end of line within string
(#243) Whitespace found at end of line within string
(#244) Whitespace found at end of line within string
(#245) Whitespace found at end of line within string
(#246) Whitespace found at end of line within string
(#247) Whitespace found at end of line within string
(#248) Commas (,) must be followed by white space.
(#248) Whitespace found at end of line within string
(#249) Whitespace found at end of line within string
(#250) Commas (,) must be followed by white space.
(#250) Line exceeds 132 characters; contains 171 characters
(#250) Whitespace found at end of line within string
(#251) Whitespace found at end of line within string
(#252) Whitespace found at end of line within string
(#253) Whitespace found at end of line within string
(#254) Whitespace found at end of line within string
(#255) Commas (,) must be followed by white space.
(#255) Line exceeds 132 characters; contains 169 characters
(#255) Whitespace found at end of line within string
(#256) Whitespace found at end of line within string
(#257) Whitespace found at end of line within string
(#258) Whitespace found at end of line within string
(#259) Line exceeds 132 characters; contains 147 characters
(#259) Whitespace found at end of line within string
(#260) Whitespace found at end of line within string
(#261) Whitespace found at end of line within string
(#262) Variable "sqlFrom" must be all lower-case
(#262) Whitespace found at end of line within string
(#263) Whitespace found at end of line within string
(#273) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#274) Whitespace found at end of line
(#275) Variable "sqlCount" must be all lower-case
(#286) Variable "coursebadges_id" must not contain underscores.
(#287) Variable "coursebadges_id" must not contain underscores.
(#295) Expected "if (...) {\n"; found "if(...){\n"
(#302) Expected 1 space before opening brace; found 0
(#315) Whitespace found at end of line
(#316) Variable "processedResults" must be all lower-case
(#318) Expected "foreach (...) {\n"; found "foreach(...)\n {\n"
(#329) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#330) Variable "earnedBadge" must be all lower-case
(#331) Variable "earnedBadge" must be all lower-case
(#333) Variable "earnedBadge" must be all lower-case
(#335) Variable "earnedBadge" must be all lower-case
(#336) Variable "earnedBadge" must be all lower-case
(#338) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#339) Whitespace found at end of line
(#340) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#341) Variable "selectedBadge" must be all lower-case
(#342) Variable "selectedBadge" must be all lower-case
(#344) Variable "selectedBadge" must be all lower-case
(#346) Variable "selectedBadge" must be all lower-case
(#352) Expected "if (...) {\n"; found "if(...){\n"
(#353) Expected 1 space before "/"; 0 found
(#353) Expected 1 space after "/"; 0 found
(#353) Expected 1 space before "*"; 0 found
(#353) Expected 1 space after "*"; 0 found
(#358) Expected "foreach (...) {\n"; found "foreach(...){\n"
(#364) Variable "processedResults" must be all lower-case
(#367) Variable "processedResults" must be all lower-case
(#434) Inline comments must start with a capital letter, digit or 3-dots sequence
(#434) Inline comments must end in full-stops, exclamation marks, or question marks
(#450) Whitespace found at end of line
(#453) Inline comments must start with a capital letter, digit or 3-dots sequence
(#453) Inline comments must end in full-stops, exclamation marks, or question marks
(#475) File must end with a newline character
mod/coursebadges/classes/overview/utils.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#22) Whitespace found at end of line
(#31) Whitespace found at end of line
(#42) Whitespace found at end of line
(#44) Expected 1 space after "="; 2 found
(#47) Whitespace found at end of line
(#49) Expected 1 space after "="; 2 found
(#49) Line exceeds 132 characters; contains 160 characters
(#52) Whitespace found at end of line
(#54) Expected 1 space after "="; 2 found
(#54) Line exceeds 132 characters; contains 162 characters
mod/coursebadges/classes/privacy/provider.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#22) Whitespace found at end of line
(#39) Whitespace found at end of line
(#76) The static declaration must come after the visibility declaration
(#77) Whitespace found at end of line within string
(#78) Whitespace found at end of line within string
(#79) Whitespace found at end of line within string
(#88) Whitespace found at end of line within string
(#89) Whitespace found at end of line within string
(#90) Whitespace found at end of line within string
(#110) Whitespace found at end of line within string
(#111) Whitespace found at end of line within string
(#112) Whitespace found at end of line within string
(#123) Whitespace found at end of line within string
(#124) Whitespace found at end of line within string
(#125) Whitespace found at end of line within string
(#126) Whitespace found at end of line within string
(#135) Whitespace found at end of line within string
(#136) Whitespace found at end of line within string
(#137) Whitespace found at end of line within string
(#138) Whitespace found at end of line within string
(#139) Whitespace found at end of line within string
(#160) Variable "coursebadges_usr_select_bdg" must not contain underscores.
(#160) Whitespace found at end of line within string
(#161) Whitespace found at end of line within string
(#162) Whitespace found at end of line within string
(#163) Whitespace found at end of line within string
(#164) Whitespace found at end of line within string
(#165) Whitespace found at end of line within string
(#166) Commas (,) must be followed by white space.
(#169) Expected "foreach (...) {\n"; found "foreach (...){\n"
(#169) Variable "coursebadges_usr_select_bdg" must not contain underscores.
(#174) Variable "coursebadges_usr_select_bdgdata" must not contain underscores.
(#176) Variable "coursebadges_usr_select_bdgdata" must not contain underscores.
(#182) Variable "coursebadges_usr_select_bdgdata" must not contain underscores.
(#182) Line exceeds 132 characters; contains 155 characters
(#185) Variable "coursebadges_notification" must not contain underscores.
(#185) Whitespace found at end of line within string
(#186) Whitespace found at end of line within string
(#187) Whitespace found at end of line within string
(#188) Whitespace found at end of line within string
(#189) Whitespace found at end of line within string
(#190) Expected 1 space before "=>"; 0 found
(#190) Expected 1 space after "=>"; 0 found
(#190) Commas (,) must be followed by white space.
(#193) Expected "foreach (...) {\n"; found "foreach (...){\n"
(#193) Variable "coursebadges_notification" must not contain underscores.
(#198) Variable "coursebadges_notificationdata" must not contain underscores.
(#200) Variable "coursebadges_notificationdata" must not contain underscores.
(#209) Variable "coursebadges_notificationdata" must not contain underscores.
(#209) Line exceeds 132 characters; contains 151 characters
(#239) Line indented incorrectly; expected at least 8 spaces, found 7
(#255) Expected "if (...) {\n"; found "if(...){\n"
(#257) Expected "if (...) {\n"; found "if(...){\n"
(#260) Line exceeds 132 characters; contains 148 characters
(#267) Commas (,) must be followed by white space.
(#283) Expected "if (...) {\n"; found "if(...){\n"
(#285) Expected "if (...) {\n"; found "if(...){\n"
(#290) Line exceeds 132 characters; contains 150 characters
(#296) Commas (,) must be followed by white space.
(#302) File must end with a newline character
mod/coursebadges/db/access.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#21) Whitespace found at end of line
mod/coursebadges/db/upgrade.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#40) Whitespace found at end of line
(#44) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#55) Line exceeds 132 characters; contains 141 characters
(#82) Whitespace found at end of line
(#86) Whitespace found at end of line
(#89) Whitespace found at end of line
(#101) Line exceeds 132 characters; contains 141 characters
mod/coursebadges/index.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#21) Whitespace found at end of line
mod/coursebadges/lang/en/coursebadges.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#22) Whitespace found at end of line
(#47) Space found before semicolon; expected "'See overview of badges';" but found "'See overview of badges' ;"
(#54) Whitespace found at end of line within string
(#56) Whitespace found at end of line within string
(#58) Whitespace found at end of line within string
(#59) Whitespace found at end of line within string
(#62) Whitespace found at end of line within string
(#63) Whitespace found at end of line within string
(#64) Whitespace found at end of line within string
(#80) Whitespace found at end of line within string
(#81) Whitespace found at end of line within string
(#82) Whitespace found at end of line within string
(#83) Whitespace found at end of line within string
(#95) Whitespace found at end of line within string
(#96) Whitespace found at end of line within string
(#97) Whitespace found at end of line within string
(#98) Whitespace found at end of line within string
(#117) Whitespace found at end of line within string
(#118) Whitespace found at end of line within string
(#119) Whitespace found at end of line within string
(#120) Whitespace found at end of line within string
(#121) Whitespace found at end of line within string
(#146) Whitespace found at end of line within string
(#148) Whitespace found at end of line within string
mod/coursebadges/lang/fr/coursebadges.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#22) Whitespace found at end of line
(#47) Space found before semicolon; expected "'Consulter l\'aperçu des badges';" but found "'Consulter l\'aperçu des badges' ;"
(#49) Space found before semicolon; expected "'Système de notification pour l\'activité Choix de badges';" but found "'Système de notification pour l\'activité Choix de badges' ;"
(#54) Whitespace found at end of line within string
(#56) Whitespace found at end of line within string
(#58) Whitespace found at end of line within string
(#59) Whitespace found at end of line within string
(#62) Whitespace found at end of line within string
(#63) Whitespace found at end of line within string
(#64) Whitespace found at end of line within string
(#80) Whitespace found at end of line within string
(#81) Whitespace found at end of line within string
(#82) Whitespace found at end of line within string
(#83) Whitespace found at end of line within string
(#95) Whitespace found at end of line within string
(#96) Whitespace found at end of line within string
(#97) Whitespace found at end of line within string
(#98) Whitespace found at end of line within string
(#118) Whitespace found at end of line within string
(#119) Whitespace found at end of line within string
(#120) Whitespace found at end of line within string
(#121) Whitespace found at end of line within string
(#122) Whitespace found at end of line within string
(#147) Whitespace found at end of line within string
(#149) Whitespace found at end of line within string
mod/coursebadges/lib.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#21) Whitespace found at end of line
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#36) Closing brace must be on a line by itself
(#37) Closing brace must be on a line by itself
(#38) Closing brace must be on a line by itself
(#39) Closing brace must be on a line by itself
(#40) Closing brace must be on a line by itself
(#41) Closing brace must be on a line by itself
(#42) Closing brace must be on a line by itself
(#43) Closing brace must be on a line by itself
(#45) Closing brace must be on a line by itself
(#67) File must end with a newline character
mod/coursebadges/mod_form.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#22) Whitespace found at end of line
(#26) Old MOODLE_INTERNAL check detected. Replace it by "defined('MOODLE_INTERNAL') || die();"
(#27) Inline comments must end in full-stops, exclamation marks, or question marks
(#27) 3 slashes comments are not allowed; use "// Comment." instead
(#27) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#42) Whitespace found at end of line
(#47) Visibility must be declared on method "definition"
(#55) Expected 1 space before "=>"; 0 found
(#55) Expected 1 space after "=>"; 0 found
(#59) Inline comments must end in full-stops, exclamation marks, or question marks
(#74) Inline comments must start with a capital letter, digit or 3-dots sequence
(#74) Inline comments must end in full-stops, exclamation marks, or question marks
(#83) Variable "course_badges" must not contain underscores.
(#84) Variable "all_user_choices" must not contain underscores.
(#84) Variable "course_badges" must not contain underscores.
(#87) Expected "if (...) {\n"; found "if(...){\n"
(#87) Variable "all_user_choices" must not contain underscores.
(#91) Expected "if (...) {\n"; found "if(...){\n"
(#91) Variable "all_user_choices" must not contain underscores.
(#93) Line exceeds 132 characters; contains 152 characters
(#95) Line exceeds 132 characters; contains 153 characters
(#99) Whitespace found at end of line within string
(#100) Whitespace found at end of line within string
(#101) Whitespace found at end of line within string
(#102) Line exceeds 132 characters; contains 152 characters
(#102) Whitespace found at end of line within string
(#103) Whitespace found at end of line within string
(#104) Whitespace found at end of line within string
(#111) Variable "available_badges" must not contain underscores.
(#112) Variable "available_badges" must not contain underscores.
(#113) Variable "available_badges" must not contain underscores.
(#114) Variable "available_badges" must not contain underscores.
(#115) Variable "available_badges" must not contain underscores.
(#116) Variable "available_badges" must not contain underscores.
(#116) Variable "course_badges" must not contain underscores.
(#117) Variable "available_badges" must not contain underscores.
(#119) Expected "if (...) {\n"; found "if(...){\n"
(#119) Variable "all_user_choices" must not contain underscores.
(#125) Variable "pre_select_badges" must not contain underscores.
(#126) Variable "pre_select_badges" must not contain underscores.
(#127) Variable "pre_select_badges" must not contain underscores.
(#128) Variable "pre_select_badges" must not contain underscores.
(#129) Variable "pre_select_badges" must not contain underscores.
(#130) Variable "pre_select_badges" must not contain underscores.
(#130) Variable "course_badges" must not contain underscores.
(#131) Variable "pre_select_badges" must not contain underscores.
(#169) Line exceeds 132 characters; contains 137 characters
(#172) Variable "badge_management_html" must not contain underscores.
(#172) Expected 1 space after "="; 2 found
(#173) Variable "badge_management_html" must not contain underscores.
(#174) Variable "badge_management_html" must not contain underscores.
(#174) Line exceeds 132 characters; contains 180 characters
(#175) Variable "badge_management_html" must not contain underscores.
(#176) Variable "badge_management_html" must not contain underscores.
(#177) Variable "badge_management_html" must not contain underscores.
(#178) Variable "badge_management_link" must not contain underscores.
(#179) Variable "badge_management_html" must not contain underscores.
(#179) Variable "badge_management_link" must not contain underscores.
(#180) Variable "badge_management_html" must not contain underscores.
(#181) Variable "badge_management_html" must not contain underscores.
(#183) Variable "badge_management_html" must not contain underscores.
(#185) Inline comments must start with a capital letter, digit or 3-dots sequence
(#185) No space found before comment text; expected "// -------------------------------------------------------------------------------" but found "//-------------------------------------------------------------------------------"
(#187) Inline comments must start with a capital letter, digit or 3-dots sequence
(#187) No space found before comment text; expected "// -------------------------------------------------------------------------------" but found "//-------------------------------------------------------------------------------"
(#191) Visibility must be declared on method "data_preprocessing"
(#191) Variable "default_values" must not contain underscores.
(#197) Expected "if (...) {\n"; found "if (...){\n"
(#198) Expected "if (...) {\n"; found "if(...){\n"
(#200) Line exceeds 132 characters; contains 146 characters
(#202) Variable "course_badge" must not contain underscores.
(#203) Variable "course_badge" must not contain underscores.
(#204) Variable "default_values" must not contain underscores.
(#206) Variable "course_badge" must not contain underscores.
(#206) Line exceeds 132 characters; contains 140 characters
(#207) Variable "default_values" must not contain underscores.
(#209) Expected "if (...) {\n"; found "if(...){\n"
(#210) Variable "default_values" must not contain underscores.
(#214) Visibility must be declared on method "get_data"
(#250) File must end with a newline character
mod/coursebadges/overview/ajax.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#22) Whitespace found at end of line
(#26) Whitespace found at end of line
(#27) Whitespace found at end of line
(#49) Expected "if (...) {\n"; found "if(...) {\n"
(#61) Variable "users_overview_data" must not contain underscores.
(#63) Variable "users_overview_data" must not contain underscores.
(#65) Variable "jtable_result" must not contain underscores.
(#66) Variable "jtable_result" must not contain underscores.
(#67) Variable "jtable_result" must not contain underscores.
(#67) Variable "users_overview_data" must not contain underscores.
(#68) Variable "jtable_result" must not contain underscores.
(#70) Variable "jtable_result" must not contain underscores.
(#76) Expected "if (...) {\n"; found "if(...) {\n"
(#88) Commas (,) must be followed by white space.
(#89) Commas (,) must be followed by white space.
(#90) Commas (,) must be followed by white space.
(#91) Commas (,) must be followed by white space.
(#93) Variable "users_overview_data" must not contain underscores.
(#96) Variable "users_overview_data" must not contain underscores.
(#100) Variable "users_overview_data" must not contain underscores.
(#104) Variable "users_overview_data" must not contain underscores.
(#108) Variable "users_overview_data" must not contain underscores.
(#112) Variable "users_overview_data" must not contain underscores.
(#115) Variable "users_overview_data" must not contain underscores.
(#117) Variable "jtable_result" must not contain underscores.
(#118) Variable "jtable_result" must not contain underscores.
(#119) Variable "jtable_result" must not contain underscores.
(#119) Variable "users_overview_data" must not contain underscores.
(#120) Variable "jtable_result" must not contain underscores.
(#122) Variable "jtable_result" must not contain underscores.
(#124) File must end with a newline character
mod/coursebadges/overview/badges.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#22) Whitespace found at end of line
(#30) Inline comments must start with a capital letter, digit or 3-dots sequence
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
(#33) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#33) Inline comments must end in full-stops, exclamation marks, or question marks
(#35) Expected 1 space before "=>"; 0 found
(#36) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#36) Inline comments must end in full-stops, exclamation marks, or question marks
(#41) Variable "course_badge" must not contain underscores.
(#41) Expected 1 space before "=>"; 0 found
(#42) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#42) Inline comments must end in full-stops, exclamation marks, or question marks
(#54) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#60) Variable "course_badge" must not contain underscores.
(#78) Variable "badges_overview_form" must not contain underscores.
(#82) Variable "badges_overview_form" must not contain underscores.
mod/coursebadges/overview/users.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#22) Whitespace found at end of line
(#31) Inline comments must start with a capital letter, digit or 3-dots sequence
(#31) Inline comments must end in full-stops, exclamation marks, or question marks
(#36) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#36) Inline comments must end in full-stops, exclamation marks, or question marks
(#38) Expected 1 space before "=>"; 0 found
(#39) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#39) Inline comments must end in full-stops, exclamation marks, or question marks
(#44) Variable "course_badge" must not contain underscores.
(#44) Expected 1 space before "=>"; 0 found
(#45) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#45) Inline comments must end in full-stops, exclamation marks, or question marks
(#61) Variable "course_badge" must not contain underscores.
(#63) Expected "} else if (...) {\n"; found "} else if(...) {\n"
(#63) Expected "if (...) {\n"; found "if(...) {\n"
(#63) Variable "course_badge" must not contain underscores.
(#64) Expected "if (...) {\n"; found "if(...) {\n"
(#64) Variable "course_badge" must not contain underscores.
(#75) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#79) Variable "course_badge" must not contain underscores.
(#101) Variable "users_overview_form" must not contain underscores.
(#102) Variable "users_overview_form" must not contain underscores.
(#106) Variable "users_overview_form" must not contain underscores.
mod/coursebadges/tests/coverage.php
(#20) Whitespace found at end of line
(#30) Whitespace found at end of line
mod/coursebadges/tests/generator/lib.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#18) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#24) Whitespace found at end of line
mod/coursebadges/tests/lib_test.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#22) Whitespace found at end of line
(#36) Whitespace found at end of line
(#39) PHPUnit testcase name "mod_coursebadges_lib_testcase" does not match file name "lib_test"
(#39) PHPUnit class "mod_coursebadges_lib_testcase" does not have any namespace. It is recommended to add it to the "mod_coursebadges" namespace, using more levels if needed, in order to match the code being tested
(#50) Expected 1 space before opening brace; found 0
(#100) Test method test_coursebadges_add_instance() is missing any coverage information, own or at class level
(#109) Test method test_coursebadges_update_instance() is missing any coverage information, own or at class level
(#120) Test method test_coursebadges_delete_instance() is missing any coverage information, own or at class level
(#126) File must end with a newline character
mod/coursebadges/version.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#22) Whitespace found at end of line
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
(#29) Inline comments must end in full-stops, exclamation marks, or question marks
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
mod/coursebadges/view.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#2) Line 1 of the opening comment must start "// This file is part of".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#22) Whitespace found at end of line
(#33) Inline comments must end in full-stops, exclamation marks, or question marks
(#36) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#36) Inline comments must end in full-stops, exclamation marks, or question marks
(#38) Expected 1 space before "=>"; 0 found
(#39) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#39) Inline comments must end in full-stops, exclamation marks, or question marks
(#41) Variable "course_badge" must not contain underscores.
(#41) Expected 1 space before "=>"; 0 found
(#42) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#42) Inline comments must end in full-stops, exclamation marks, or question marks
(#56) Variable "course_badge" must not contain underscores.
(#59) Variable "formData" must be all lower-case
(#61) Variable "course_badge" must not contain underscores.
(#65) Variable "formData" must be all lower-case
(#67) Variable "course_badge" must not contain underscores.
(#68) Variable "cb_data" must not contain underscores.
(#70) Variable "cb_data" must not contain underscores.
(#71) Variable "cb_data" must not contain underscores.
(#92) Variable "notif_badges" must not contain underscores.
(#92) Variable "course_badge" must not contain underscores.
(#93) Variable "notif_badges" must not contain underscores.
(#97) Line exceeds 132 characters; contains 134 characters
(#112) Commas (,) must be followed by white space.
(#114) Commas (,) must be followed by white space.
(#117) Whitespace found at end of line
(#118) Variable "course_badge" must not contain underscores.
(#119) Variable "course_badge" must not contain underscores.
(#135) Variable "course_badge" must not contain underscores.
(#137) Variable "course_badge" must not contain underscores.
(#138) Variable "course_badge" must not contain underscores.

Javascript coding style problems

(0 errors, 6 warnings)

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

mod/coursebadges/amd/src/course_badges.js
(#2) A space is required after ','. (comma-spacing)
(#10) Expected JSDoc block to be aligned. (jsdoc/check-alignment)
mod/coursebadges/amd/src/dual_list.js
(#92) Expected catch,fail() or return (promise/catch-or-return)
(#92) Each then() should return a value or throw (promise/always-return)
(#123) Expected JSDoc block to be aligned. (jsdoc/check-alignment)
(#155) Expected JSDoc block to be aligned. (jsdoc/check-alignment)

CSS problems

(10 errors, 22 warnings)

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

mod/coursebadges/styles.css
(#347) Can't parse value "alpha(opacity=50)" (csstree/validator)
(#421) Can't parse value "alpha(opacity=50)" (csstree/validator)
(#305) Unexpected empty block (block-no-empty)
(#1) Expected single space before "{" (block-opening-brace-space-before)
(#5) Expected single space before "{" (block-opening-brace-space-before)
(#39) Expected single space before "{" (block-opening-brace-space-before)
(#59) Expected single space before "{" (block-opening-brace-space-before)
(#151) Expected single space before "{" (block-opening-brace-space-before)
(#198) Expected single space before "{" (block-opening-brace-space-before)
(#216) Expected single space before "{" (block-opening-brace-space-before)
(#356) Expected "#C8C8C8" to be "#c8c8c8" (color-hex-case)
(#237) Unexpected unit (length-zero-no-unit)
(#238) Unexpected unit (length-zero-no-unit)
(#239) Unexpected unit (length-zero-no-unit)
(#278) Unexpected unit (length-zero-no-unit)
(#279) Unexpected unit (length-zero-no-unit)
(#308) Unexpected unit (length-zero-no-unit)
(#309) Unexpected unit (length-zero-no-unit)
(#310) Unexpected unit (length-zero-no-unit)
(#363) Unexpected unit (length-zero-no-unit)
(#364) Unexpected unit (length-zero-no-unit)
(#368) Unexpected unit (length-zero-no-unit)
(#369) Unexpected unit (length-zero-no-unit)
(#380) Unexpected unit (length-zero-no-unit)
(#380) Unexpected unit (length-zero-no-unit)
(#437) Unexpected unit (length-zero-no-unit)
(#438) Unexpected unit (length-zero-no-unit)
(#144) Expected line length to be no more than 132 characters (max-line-length)
(#145) Expected line length to be no more than 132 characters (max-line-length)
(#146) Expected line length to be no more than 132 characters (max-line-length)
(#252) Expected line length to be no more than 132 characters (max-line-length)
(#255) Expected line length to be no more than 132 characters (max-line-length)

PHPDocs style problems

(106 errors, 45 warnings)

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

mod/coursebadges/backup/moodle2/backup_coursebadges_activity_task.class.php
(#2) Empty line found after PHP open tag
mod/coursebadges/backup/moodle2/backup_coursebadges_stepslib.php
(#2) Empty line found after PHP open tag
(#36) Function backup_coursebadges_activity_structure_step::define_structure is not documented
mod/coursebadges/backup/moodle2/restore_coursebadges_activity_task.class.php
(#2) Empty line found after PHP open tag
mod/coursebadges/backup/moodle2/restore_coursebadges_stepslib.php
(#2) Empty line found after PHP open tag
(#36) Function restore_coursebadges_activity_structure_step::define_structure is not documented
(#50) Function restore_coursebadges_activity_structure_step::process_coursebadges is not documented
(#63) Function restore_coursebadges_activity_structure_step::process_selection_badge is not documented
(#80) Function restore_coursebadges_activity_structure_step::after_restore is not documented
(#100) Function restore_coursebadges_activity_structure_step::after_execute is not documented
mod/coursebadges/classes/course_badges.php
(#2) Empty line found after PHP open tag
(#55) Function course_badges::__construct is not documented
(#48) Variable course_badges::$id is not documented
(#49) Variable course_badges::$data is not documented
(#50) Variable course_badges::$userid is not documented
(#51) Variable course_badges::$context is not documented
(#52) Variable course_badges::$context_module is not documented
(#53) Variable course_badges::$instance is not documented
(#40) Constant course_badges::VALIDATED_CHOICE_NOTIF is not documented
(#41) Constant course_badges::UPDATED_CHOICE_NOTIF is not documented
(#42) Constant course_badges::NO_NOTIF is not documented
(#44) Constant course_badges::ALWAYS_SHOW_RESULTS is not documented
(#45) Constant course_badges::SHOW_RESULTS_AFTER_RESPONSE is not documented
(#46) Constant course_badges::NO_RESULT is not documented
(#410) Phpdocs for function course_badges::get_available_badges_in_course has incomplete parameters list
(#442) Phpdocs for function course_badges::delete_all_user_choices_by_course_badges_instance has incomplete parameters list
(#464) Phpdocs for function course_badges::get_imageurl_for_badge has incomplete parameters list
(#508) Phpdocs for function course_badges::has_selected_badges has incomplete parameters list
(#533) Phpdocs for function course_badges::badge_ids_array_to_string has incomplete parameters list
mod/coursebadges/classes/course_badges_notification.php
(#2) Empty line found after PHP open tag
(#47) Function course_badges_notification::__construct is not documented
(#56) Function course_badges_notification::send_notification is not documented
(#89) Function course_badges_notification::get_coursebadge_instance is not documented
(#95) Function course_badges_notification::has_already_notif_badge is not documented
(#112) Function course_badges_notification::create_notif_badge is not documented
(#236) Function course_badges_notification::get_users_with_role_on_context is not documented
(#41) Variable course_badges_notification::$id is not documented
(#42) Variable course_badges_notification::$userid is not documented
(#43) Variable course_badges_notification::$coursebadge is not documented
(#44) Variable course_badges_notification::$course is not documented
(#45) Variable course_badges_notification::$badges is not documented
(#131) Phpdocs for function course_badges_notification::notification_make_mail_text has incomplete parameters list
(#170) Phpdocs for function course_badges_notification::notification_make_mail_html has incomplete parameters list
(#128) Not recommended phpdocs tag @global used
(#128) Not recommended phpdocs tag @global used
(#169) Not recommended phpdocs tag @global used
mod/coursebadges/classes/dual_list.php
(#2) Empty line found after PHP open tag
(#50) Function dual_list::__construct is not documented
(#55) Function dual_list::add_column is not documented
(#63) Function dual_list::generate_html is not documented
(#47) Variable dual_list::$datacolumn is not documented
(#48) Variable dual_list::$readonlycolumn is not documented
(#41) Constant dual_list::LEFT_COLUMN is not documented
(#42) Constant dual_list::RIGHT_COLUMN is not documented
(#43) Constant dual_list::READ_ONLY_COLUMN is not documented
(#44) Constant dual_list::ACTION_BUTTONS is not documented
(#45) Constant dual_list::BLANK_COLUMN is not documented
mod/coursebadges/classes/form/choicebadges_form.php
(#2) Empty line found after PHP open tag
(#43) Function choicebadges_form::__construct is not documented
(#49) Function choicebadges_form::definition is not documented
(#116) Function choicebadges_form::definition_after_data is not documented
mod/coursebadges/classes/overview/badges_overview_data.php
(#2) Empty line found after PHP open tag
(#52) Function badges_overview_data::__construct is not documented
(#67) Function badges_overview_data::execute_sql is not documented
(#131) Function badges_overview_data::process_results is not documented
(#167) Function badges_overview_data::get_result_count is not documented
(#171) Function badges_overview_data::get_jtable_columns is not documented
(#42) Variable badges_overview_data::$cmid is not documented
(#43) Variable badges_overview_data::$courseid is not documented
(#44) Variable badges_overview_data::$startindex is not documented
(#45) Variable badges_overview_data::$endindex is not documented
(#46) Variable badges_overview_data::$sortorder is not documented
(#48) Variable badges_overview_data::$data is not documented
(#49) Variable badges_overview_data::$resultcount is not documented
(#50) Variable badges_overview_data::$coursebadges_id is not documented
mod/coursebadges/classes/overview/form/badges_overview_form.php
(#2) Empty line found after PHP open tag
(#43) Function badges_overview_form::definition is not documented
(#41) Constant badges_overview_form::MODNAME_SEARCH_FIELD is not documented
mod/coursebadges/classes/overview/form/users_overview_form.php
(#2) Empty line found after PHP open tag
(#48) Function users_overview_form::definition is not documented
(#86) Function users_overview_form::add_select is not documented
(#42) Constant users_overview_form::BADGEID_FIELD is not documented
(#43) Constant users_overview_form::MODID_FIELD is not documented
(#44) Constant users_overview_form::STATUS_FIELD is not documented
(#45) Constant users_overview_form::GROUPID_FIELD is not documented
(#46) Constant users_overview_form::USERNAME_FIELD is not documented
mod/coursebadges/classes/overview/mod_filters.php
(#2) Empty line found after PHP open tag
(#37) Function mod_filters::get_list_badges is not documented
(#51) Function mod_filters::get_list_mod_badges is not documented
(#57) Function mod_filters::get_groups_list is not documented
mod/coursebadges/classes/overview/users_overview_data.php
(#2) Empty line found after PHP open tag
(#62) Function users_overview_data::__construct is not documented
(#81) Function users_overview_data::execute_sql is not documented
(#282) Function users_overview_data::set_badgeid is not documented
(#286) Function users_overview_data::set_coursebadges_id is not documented
(#290) Function users_overview_data::set_groupid is not documented
(#294) Function users_overview_data::set_status is not documented
(#302) Function users_overview_data::set_username is not documented
(#308) Function users_overview_data::get_coursemodule_by_instanceid is not documented
(#312) Function users_overview_data::process_results is not documented
(#370) Function users_overview_data::get_result_count is not documented
(#374) Function users_overview_data::get_jtable_columns is not documented
(#435) Function users_overview_data::sql_group_concat is not documented
(#454) Function users_overview_data::sql_cast_to_char is not documented
(#466) Function users_overview_data::sql_cast_null_to_bigint is not documented
(#42) Variable users_overview_data::$cmid is not documented
(#43) Variable users_overview_data::$cm is not documented
(#44) Variable users_overview_data::$courseid is not documented
(#45) Variable users_overview_data::$startindex is not documented
(#46) Variable users_overview_data::$endindex is not documented
(#47) Variable users_overview_data::$sortorder is not documented
(#49) Variable users_overview_data::$data is not documented
(#50) Variable users_overview_data::$resultcount is not documented
(#51) Variable users_overview_data::$badgeid is not documented
(#52) Variable users_overview_data::$coursebadges_id is not documented
(#53) Variable users_overview_data::$groupid is not documented
(#54) Variable users_overview_data::$status is not documented
(#55) Variable users_overview_data::$username is not documented
(#57) Constant users_overview_data::ALL_BADGES is not documented
(#58) Constant users_overview_data::EARNED_BADGES is not documented
(#59) Constant users_overview_data::SELECTED_BADGES is not documented
mod/coursebadges/classes/overview/utils.php
(#2) Empty line found after PHP open tag
(#35) Function utils::get_img_url_badge is not documented
(#43) Function utils::get_url_badge is not documented
(#48) Function utils::get_url_earned_badge is not documented
(#53) Function utils::get_url_selected_badge is not documented
(#58) Function utils::html_input_data is not documented
mod/coursebadges/classes/privacy/provider.php
(#2) Empty line found after PHP open tag
mod/coursebadges/db/upgrade.php
(#2) Empty line found after PHP open tag
(#46) Function xmldb_coursebadges_upgrade is not documented
(#18) No one-line description found in phpdocs for file
mod/coursebadges/lang/en/coursebadges.php
(#2) Empty line found after PHP open tag
mod/coursebadges/lang/fr/coursebadges.php
(#2) Empty line found after PHP open tag
mod/coursebadges/lib.php
(#49) Function coursebadges_add_instance is not documented
(#54) Function coursebadges_update_instance is not documented
(#59) Function coursebadges_delete_instance is not documented
(#64) Function coursebadges_is_course_badges_block_available is not documented
mod/coursebadges/mod_form.php
(#2) Empty line found after PHP open tag
(#47) Function mod_coursebadges_mod_form::definition is not documented
(#191) Function mod_coursebadges_mod_form::data_preprocessing is not documented
(#214) Function mod_coursebadges_mod_form::get_data is not documented
(#27) Found comment starting with three or more slashes
(#37) No one-line description found in phpdocs for class mod_coursebadges_mod_form
mod/coursebadges/overview/ajax.php
(#2) Empty line found after PHP open tag
mod/coursebadges/overview/badges.php
(#2) Empty line found after PHP open tag
mod/coursebadges/overview/users.php
(#2) Empty line found after PHP open tag
mod/coursebadges/tests/generator/lib.php
(#2) Empty line found after PHP open tag
(#29) Function mod_coursebadges_generator::create_instance is not documented
mod/coursebadges/tests/lib_test.php
(#2) Empty line found after PHP open tag
mod/coursebadges/version.php
(#2) Empty line found after PHP open tag
mod/coursebadges/view.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

(1 errors, 1 warnings)

This section shows files built by grunt and not commited [More info]

Problems running grunt
Task "stylelint:css" failed. Use --force to continue.

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]