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

(398 errors, 98 warnings)

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

blocks/course_status_tracker/block_course_status_tracker.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/>.".
(#23) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#60) Inline comments must end in full-stops, exclamation marks, or question marks
(#60) This comment is 60% valid code; is this commented out code?
(#61) Variable "count_course" must not contain underscores.
(#65) Variable "count_course" must not contain underscores.
(#65) Expected 1 space before "+="; 0 found
(#65) Expected 1 space after "+="; 0 found
(#68) Variable "enrolled_courses" must not contain underscores.
(#68) Variable "count_course" must not contain underscores.
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) This comment is 60% valid code; is this commented out code?
(#72) Variable "total_courses" must not contain underscores.
(#72) Line exceeds maximum limit of 180 characters; contains 213 characters
(#73) Variable "total_courses" must not contain underscores.
(#73) Variable "total_courses" must not contain underscores.
(#74) Variable "count_complete_courses" must not contain underscores.
(#74) Variable "total_courses" must not contain underscores.
(#77) Inline comments must end in full-stops, exclamation marks, or question marks
(#77) This comment is 60% valid code; is this commented out code?
(#81) Variable "course_criteria_ns" must not contain underscores.
(#86) Variable "course_criteria_ns" must not contain underscores.
(#90) Variable "course_criteria_not_set" must not contain underscores.
(#92) Inline comments must end in full-stops, exclamation marks, or question marks
(#93) Variable "count_inprogress_courses" must not contain underscores.
(#93) Variable "enrolled_courses" must not contain underscores.
(#93) Variable "count_complete_courses" must not contain underscores.
(#93) Variable "course_criteria_not_set" must not contain underscores.
(#94) Variable "enrolled_courses" must not contain underscores.
(#95) Variable "link_enrolled_courses" must not contain underscores.
(#96) Variable "enrolled_courses" must not contain underscores.
(#98) Variable "link_enrolled_courses" must not contain underscores.
(#98) Variable "enrolled_courses" must not contain underscores.
(#100) Variable "count_complete_courses" must not contain underscores.
(#101) Variable "link_count_complete_courses" must not contain underscores.
(#101) Line exceeds 132 characters; contains 135 characters
(#102) Variable "count_complete_courses" must not contain underscores.
(#104) Variable "link_count_complete_courses" must not contain underscores.
(#104) Variable "count_complete_courses" must not contain underscores.
(#106) Variable "link_course_criteria_not_set" must not contain underscores.
(#107) Variable "course_criteria_not_set" must not contain underscores.
(#108) Variable "link_count_inprogress_courses" must not contain underscores.
(#109) Variable "count_inprogress_courses" must not contain underscores.
(#110) Variable "link_enrolled_courses" must not contain underscores.
(#110) Line exceeds 132 characters; contains 147 characters
(#111) Variable "link_count_complete_courses" must not contain underscores.
(#111) Line exceeds 132 characters; contains 154 characters
(#112) Variable "count_inprogress_courses" must not contain underscores.
(#112) Line exceeds 132 characters; contains 152 characters
(#113) Variable "course_criteria_not_set" must not contain underscores.
(#113) Line exceeds 132 characters; contains 157 characters
blocks/course_status_tracker/course_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/>.".
(#24) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#72) Line exceeds 132 characters; contains 169 characters
(#77) Line exceeds maximum limit of 180 characters; contains 253 characters
blocks/course_status_tracker/course_status_tracker/block_course_status_tracker.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/>.".
(#23) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#28) Duplicate class name "block_course_status_tracker" found; first defined in /var/lib/jenkins/git_repositories/prechecker/blocks/course_status_tracker/block_course_status_tracker.php on line 28
(#60) Inline comments must end in full-stops, exclamation marks, or question marks
(#60) This comment is 60% valid code; is this commented out code?
(#61) Variable "count_course" must not contain underscores.
(#65) Variable "count_course" must not contain underscores.
(#65) Expected 1 space before "+="; 0 found
(#65) Expected 1 space after "+="; 0 found
(#68) Variable "enrolled_courses" must not contain underscores.
(#68) Variable "count_course" must not contain underscores.
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) This comment is 60% valid code; is this commented out code?
(#72) Variable "total_courses" must not contain underscores.
(#72) Line exceeds maximum limit of 180 characters; contains 213 characters
(#73) Variable "total_courses" must not contain underscores.
(#73) Variable "total_courses" must not contain underscores.
(#74) Variable "count_complete_courses" must not contain underscores.
(#74) Variable "total_courses" must not contain underscores.
(#77) Inline comments must end in full-stops, exclamation marks, or question marks
(#77) This comment is 60% valid code; is this commented out code?
(#81) Variable "course_criteria_ns" must not contain underscores.
(#86) Variable "course_criteria_ns" must not contain underscores.
(#90) Variable "course_criteria_not_set" must not contain underscores.
(#92) Inline comments must end in full-stops, exclamation marks, or question marks
(#93) Variable "count_inprogress_courses" must not contain underscores.
(#93) Variable "enrolled_courses" must not contain underscores.
(#93) Variable "count_complete_courses" must not contain underscores.
(#93) Variable "course_criteria_not_set" must not contain underscores.
(#94) Variable "enrolled_courses" must not contain underscores.
(#95) Variable "link_enrolled_courses" must not contain underscores.
(#96) Variable "enrolled_courses" must not contain underscores.
(#98) Variable "link_enrolled_courses" must not contain underscores.
(#98) Variable "enrolled_courses" must not contain underscores.
(#100) Variable "count_complete_courses" must not contain underscores.
(#101) Variable "link_count_complete_courses" must not contain underscores.
(#101) Line exceeds 132 characters; contains 135 characters
(#102) Variable "count_complete_courses" must not contain underscores.
(#104) Variable "link_count_complete_courses" must not contain underscores.
(#104) Variable "count_complete_courses" must not contain underscores.
(#106) Variable "link_course_criteria_not_set" must not contain underscores.
(#107) Variable "course_criteria_not_set" must not contain underscores.
(#108) Variable "link_count_inprogress_courses" must not contain underscores.
(#109) Variable "count_inprogress_courses" must not contain underscores.
(#110) Variable "link_enrolled_courses" must not contain underscores.
(#110) Line exceeds 132 characters; contains 147 characters
(#111) Variable "link_count_complete_courses" must not contain underscores.
(#111) Line exceeds 132 characters; contains 154 characters
(#112) Variable "count_inprogress_courses" must not contain underscores.
(#112) Line exceeds 132 characters; contains 152 characters
(#113) Variable "course_criteria_not_set" must not contain underscores.
(#113) Line exceeds 132 characters; contains 157 characters
blocks/course_status_tracker/course_status_tracker/course_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/>.".
(#24) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#30) Duplicate class name "course_status_form" found; first defined in /var/lib/jenkins/git_repositories/prechecker/blocks/course_status_tracker/course_form.php on line 30
(#72) Line exceeds 132 characters; contains 169 characters
(#77) Line exceeds maximum limit of 180 characters; contains 253 characters
blocks/course_status_tracker/course_status_tracker/db/access.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#34) Whitespace found at end of line
(#36) Whitespace found at end of line
(#39) Whitespace found at end of line
(#42) Whitespace found at end of line
(#51) Whitespace found at end of line
(#59) Whitespace found at end of line
(#61) Whitespace found at end of line
(#63) Whitespace found at end of line
blocks/course_status_tracker/course_status_tracker/db/lib.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/>.".
(#31) Expected MOODLE_INTERNAL check or config.php inclusion
(#33) Variable "total_courses" must not contain underscores.
(#33) Line exceeds 132 characters; contains 150 characters
(#34) Variable "total_courses" must not contain underscores.
(#34) Variable "total_courses" must not contain underscores.
(#35) Variable "total_courses" must not contain underscores.
(#42) Whitespace found at end of line
(#47) Variable "count_course" must not contain underscores.
(#51) Variable "count_course" must not contain underscores.
(#51) Expected 1 space before "+="; 0 found
(#51) Expected 1 space after "+="; 0 found
(#54) Variable "count_course" must not contain underscores.
(#69) Variable "course_criteria_ns" must not contain underscores.
(#74) Variable "course_criteria_ns" must not contain underscores.
(#118) Inline comments must start with a capital letter, digit or 3-dots sequence
(#118) Inline comments must end in full-stops, exclamation marks, or question marks
(#118) This comment is 46% valid code; is this commented out code?
(#120) Inline comments must start with a capital letter, digit or 3-dots sequence
(#120) This comment is 45% valid code; is this commented out code?
(#120) No space found before comment text; expected "// $user->id = $id; // User Id." but found "//$user->id = $id; // User Id."
(#124) Line exceeds 132 characters; contains 153 characters
(#125) Whitespace found at end of line within string
(#128) Variable "check_designatino_field" must not contain underscores.
(#129) Variable "check_designatino_field" must not contain underscores.
(#130) Expected 1 space after ".="; 0 found
(#130) Variable "check_designatino_field" must not contain underscores.
(#130) Line exceeds 132 characters; contains 156 characters
(#132) Expected 1 space after ".="; 0 found
(#132) Line exceeds 132 characters; contains 146 characters
(#132) Whitespace found at end of line within string
(#133) Line exceeds maximum limit of 180 characters; contains 183 characters
(#133) Whitespace found at end of line within string
(#147) Line exceeds 132 characters; contains 135 characters
(#147) Whitespace found at end of line within string
(#147) The use of the AS keyword to alias tables is bad for cross-db
(#168) Variable "count_course" must not contain underscores.
(#172) Line exceeds maximum limit of 180 characters; contains 191 characters
blocks/course_status_tracker/course_status_tracker/lang/en/block_course_status_tracker.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/>.".
blocks/course_status_tracker/course_status_tracker/lib.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/>.".
(#31) Expected MOODLE_INTERNAL check or config.php inclusion
(#33) Variable "total_courses" must not contain underscores.
(#33) Line exceeds 132 characters; contains 150 characters
(#34) Variable "total_courses" must not contain underscores.
(#34) Variable "total_courses" must not contain underscores.
(#35) Variable "total_courses" must not contain underscores.
(#42) Whitespace found at end of line
(#47) Variable "count_course" must not contain underscores.
(#51) Variable "count_course" must not contain underscores.
(#51) Expected 1 space before "+="; 0 found
(#51) Expected 1 space after "+="; 0 found
(#54) Variable "count_course" must not contain underscores.
(#69) Variable "course_criteria_ns" must not contain underscores.
(#74) Variable "course_criteria_ns" must not contain underscores.
(#118) Inline comments must start with a capital letter, digit or 3-dots sequence
(#118) Inline comments must end in full-stops, exclamation marks, or question marks
(#118) This comment is 46% valid code; is this commented out code?
(#120) Inline comments must start with a capital letter, digit or 3-dots sequence
(#120) This comment is 45% valid code; is this commented out code?
(#120) No space found before comment text; expected "// $user->id = $id; // User Id." but found "//$user->id = $id; // User Id."
(#124) Line exceeds 132 characters; contains 153 characters
(#125) Whitespace found at end of line within string
(#128) Variable "check_designatino_field" must not contain underscores.
(#129) Variable "check_designatino_field" must not contain underscores.
(#130) Expected 1 space after ".="; 0 found
(#130) Variable "check_designatino_field" must not contain underscores.
(#130) Line exceeds 132 characters; contains 156 characters
(#132) Expected 1 space after ".="; 0 found
(#132) Line exceeds 132 characters; contains 146 characters
(#132) Whitespace found at end of line within string
(#133) Line exceeds maximum limit of 180 characters; contains 183 characters
(#133) Whitespace found at end of line within string
(#147) Line exceeds 132 characters; contains 135 characters
(#147) Whitespace found at end of line within string
(#147) The use of the AS keyword to alias tables is bad for cross-db
(#168) Variable "count_course" must not contain underscores.
(#172) Line exceeds maximum limit of 180 characters; contains 191 characters
blocks/course_status_tracker/course_status_tracker/version.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/>.".
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#27) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/course_status_tracker/course_status_tracker/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/>.".
(#44) Inline comments must start with a capital letter, digit or 3-dots sequence
(#44) Inline comments must end in full-stops, exclamation marks, or question marks
(#44) This comment is 43% valid code; is this commented out code?
(#44) Line exceeds maximum limit of 180 characters; contains 225 characters
(#46) Expected 1 space before ".="; 0 found
(#46) Expected 1 space after ".="; 0 found
(#54) Inline comments must start with a capital letter, digit or 3-dots sequence
(#54) Inline comments must end in full-stops, exclamation marks, or question marks
(#54) This comment is 43% valid code; is this commented out code?
(#54) Line exceeds maximum limit of 180 characters; contains 221 characters
(#56) Expected 1 space before ".="; 0 found
(#56) Expected 1 space after ".="; 0 found
(#63) Inline comments must start with a capital letter, digit or 3-dots sequence
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
(#63) This comment is 43% valid code; is this commented out code?
(#63) Line exceeds maximum limit of 180 characters; contains 218 characters
(#65) Expected 1 space before ".="; 0 found
(#65) Expected 1 space after ".="; 0 found
(#71) Inline comments must start with a capital letter, digit or 3-dots sequence
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) This comment is 43% valid code; is this commented out code?
(#71) Line exceeds maximum limit of 180 characters; contains 219 characters
(#73) Expected 1 space before ".="; 0 found
(#73) Expected 1 space after ".="; 0 found
(#77) Inline control structures are not allowed
blocks/course_status_tracker/db/access.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#34) Whitespace found at end of line
(#36) Whitespace found at end of line
(#39) Whitespace found at end of line
(#42) Whitespace found at end of line
(#51) Whitespace found at end of line
(#59) Whitespace found at end of line
(#61) Whitespace found at end of line
(#63) Whitespace found at end of line
blocks/course_status_tracker/db/lib.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/>.".
(#31) Expected MOODLE_INTERNAL check or config.php inclusion
(#33) Variable "total_courses" must not contain underscores.
(#33) Line exceeds 132 characters; contains 150 characters
(#34) Variable "total_courses" must not contain underscores.
(#34) Variable "total_courses" must not contain underscores.
(#35) Variable "total_courses" must not contain underscores.
(#42) Whitespace found at end of line
(#47) Variable "count_course" must not contain underscores.
(#51) Variable "count_course" must not contain underscores.
(#51) Expected 1 space before "+="; 0 found
(#51) Expected 1 space after "+="; 0 found
(#54) Variable "count_course" must not contain underscores.
(#69) Variable "course_criteria_ns" must not contain underscores.
(#74) Variable "course_criteria_ns" must not contain underscores.
(#118) Inline comments must start with a capital letter, digit or 3-dots sequence
(#118) Inline comments must end in full-stops, exclamation marks, or question marks
(#118) This comment is 46% valid code; is this commented out code?
(#120) Inline comments must start with a capital letter, digit or 3-dots sequence
(#120) This comment is 45% valid code; is this commented out code?
(#120) No space found before comment text; expected "// $user->id = $id; // User Id." but found "//$user->id = $id; // User Id."
(#124) Line exceeds 132 characters; contains 153 characters
(#125) Whitespace found at end of line within string
(#128) Variable "check_designatino_field" must not contain underscores.
(#129) Variable "check_designatino_field" must not contain underscores.
(#130) Expected 1 space after ".="; 0 found
(#130) Variable "check_designatino_field" must not contain underscores.
(#130) Line exceeds 132 characters; contains 156 characters
(#132) Expected 1 space after ".="; 0 found
(#132) Line exceeds 132 characters; contains 146 characters
(#132) Whitespace found at end of line within string
(#133) Line exceeds maximum limit of 180 characters; contains 183 characters
(#133) Whitespace found at end of line within string
(#147) Line exceeds 132 characters; contains 135 characters
(#147) Whitespace found at end of line within string
(#147) The use of the AS keyword to alias tables is bad for cross-db
(#168) Variable "count_course" must not contain underscores.
(#172) Line exceeds maximum limit of 180 characters; contains 191 characters
blocks/course_status_tracker/lang/en/block_course_status_tracker.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/>.".
blocks/course_status_tracker/lib.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/>.".
(#31) Expected MOODLE_INTERNAL check or config.php inclusion
(#33) Variable "total_courses" must not contain underscores.
(#33) Line exceeds 132 characters; contains 150 characters
(#34) Variable "total_courses" must not contain underscores.
(#34) Variable "total_courses" must not contain underscores.
(#35) Variable "total_courses" must not contain underscores.
(#42) Whitespace found at end of line
(#47) Variable "count_course" must not contain underscores.
(#51) Variable "count_course" must not contain underscores.
(#51) Expected 1 space before "+="; 0 found
(#51) Expected 1 space after "+="; 0 found
(#54) Variable "count_course" must not contain underscores.
(#69) Variable "course_criteria_ns" must not contain underscores.
(#74) Variable "course_criteria_ns" must not contain underscores.
(#118) Inline comments must start with a capital letter, digit or 3-dots sequence
(#118) Inline comments must end in full-stops, exclamation marks, or question marks
(#118) This comment is 46% valid code; is this commented out code?
(#120) Inline comments must start with a capital letter, digit or 3-dots sequence
(#120) This comment is 45% valid code; is this commented out code?
(#120) No space found before comment text; expected "// $user->id = $id; // User Id." but found "//$user->id = $id; // User Id."
(#124) Line exceeds 132 characters; contains 153 characters
(#125) Whitespace found at end of line within string
(#128) Variable "check_designatino_field" must not contain underscores.
(#129) Variable "check_designatino_field" must not contain underscores.
(#130) Expected 1 space after ".="; 0 found
(#130) Variable "check_designatino_field" must not contain underscores.
(#130) Line exceeds 132 characters; contains 156 characters
(#132) Expected 1 space after ".="; 0 found
(#132) Line exceeds 132 characters; contains 146 characters
(#132) Whitespace found at end of line within string
(#133) Line exceeds maximum limit of 180 characters; contains 183 characters
(#133) Whitespace found at end of line within string
(#147) Line exceeds 132 characters; contains 135 characters
(#147) Whitespace found at end of line within string
(#147) The use of the AS keyword to alias tables is bad for cross-db
(#168) Variable "count_course" must not contain underscores.
(#172) Line exceeds maximum limit of 180 characters; contains 191 characters
blocks/course_status_tracker/version.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/>.".
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#27) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/course_status_tracker/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/>.".
(#44) Inline comments must start with a capital letter, digit or 3-dots sequence
(#44) Inline comments must end in full-stops, exclamation marks, or question marks
(#44) This comment is 43% valid code; is this commented out code?
(#44) Line exceeds maximum limit of 180 characters; contains 225 characters
(#46) Expected 1 space before ".="; 0 found
(#46) Expected 1 space after ".="; 0 found
(#54) Inline comments must start with a capital letter, digit or 3-dots sequence
(#54) Inline comments must end in full-stops, exclamation marks, or question marks
(#54) This comment is 43% valid code; is this commented out code?
(#54) Line exceeds maximum limit of 180 characters; contains 221 characters
(#56) Expected 1 space before ".="; 0 found
(#56) Expected 1 space after ".="; 0 found
(#63) Inline comments must start with a capital letter, digit or 3-dots sequence
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
(#63) This comment is 43% valid code; is this commented out code?
(#63) Line exceeds maximum limit of 180 characters; contains 218 characters
(#65) Expected 1 space before ".="; 0 found
(#65) Expected 1 space after ".="; 0 found
(#71) Inline comments must start with a capital letter, digit or 3-dots sequence
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) This comment is 43% valid code; is this commented out code?
(#71) Line exceeds maximum limit of 180 characters; contains 219 characters
(#73) Expected 1 space before ".="; 0 found
(#73) Expected 1 space after ".="; 0 found
(#77) Inline control structures are not allowed

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(112 errors, 14 warnings)

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

blocks/course_status_tracker/block_course_status_tracker.php
(#2) Empty line found after PHP open tag
(#23) File-level phpdocs block is not found
(#30) Function block_course_status_tracker::init is not documented
(#52) Function block_course_status_tracker::get_content is not documented
(#43) Phpdocs for function block_course_status_tracker::isguestuser has incomplete parameters list
(#25) Class block_course_status_tracker does not have @copyright tag
(#25) Class block_course_status_tracker does not have @license tag
(#21) Invalid phpdocs tag @author: used
(#25) Package is not specified for class block_course_status_tracker. It is also not specified in file-level phpdocs
(#20) Package blocks is not valid
blocks/course_status_tracker/course_form.php
(#2) Empty line found after PHP open tag
(#24) File-level phpdocs block is not found
(#32) Function course_status_form::definition is not documented
(#36) Function course_status_form::display_report is not documented
(#27) Class course_status_form does not have @copyright tag
(#27) Class course_status_form does not have @license tag
(#22) Invalid phpdocs tag @author: used
(#27) Package is not specified for class course_status_form. It is also not specified in file-level phpdocs
(#21) Package blocks is not valid
blocks/course_status_tracker/course_status_tracker/block_course_status_tracker.php
(#2) Empty line found after PHP open tag
(#23) File-level phpdocs block is not found
(#30) Function block_course_status_tracker::init is not documented
(#52) Function block_course_status_tracker::get_content is not documented
(#43) Phpdocs for function block_course_status_tracker::isguestuser has incomplete parameters list
(#25) Class block_course_status_tracker does not have @copyright tag
(#25) Class block_course_status_tracker does not have @license tag
(#21) Invalid phpdocs tag @author: used
(#25) Package is not specified for class block_course_status_tracker. It is also not specified in file-level phpdocs
(#20) Package blocks is not valid
blocks/course_status_tracker/course_status_tracker/course_form.php
(#2) Empty line found after PHP open tag
(#24) File-level phpdocs block is not found
(#32) Function course_status_form::definition is not documented
(#36) Function course_status_form::display_report is not documented
(#27) Class course_status_form does not have @copyright tag
(#27) Class course_status_form does not have @license tag
(#22) Invalid phpdocs tag @author: used
(#27) Package is not specified for class course_status_form. It is also not specified in file-level phpdocs
(#21) Package blocks is not valid
blocks/course_status_tracker/course_status_tracker/db/access.php
(#24) File-level phpdocs block is not found
(#21) Invalid phpdocs tag @author: used
(#20) Package blocks is not valid
blocks/course_status_tracker/course_status_tracker/db/lib.php
(#2) Empty line found after PHP open tag
(#25) File-level phpdocs block is not found
(#97) Phpdocs for function course_name has incomplete parameters list
(#22) Invalid phpdocs tag @author: used
(#162) Invalid phpdocs tag @enrol_get_users_courses used
(#25) Package is not specified for function count_complete_course. It is also not specified in file-level phpdocs
(#38) Package is not specified for function user_enrolled_courses. It is also not specified in file-level phpdocs
(#57) Package is not specified for function count_course_criteria. It is also not specified in file-level phpdocs
(#81) Package is not specified for function module_name. It is also not specified in file-level phpdocs
(#94) Package is not specified for function course_name. It is also not specified in file-level phpdocs
(#109) Package is not specified for function user_details. It is also not specified in file-level phpdocs
(#138) Package is not specified for function report_get_custome_field. It is also not specified in file-level phpdocs
(#158) Package is not specified for function user_enrolled_courses_report. It is also not specified in file-level phpdocs
(#21) Package blocks is not valid
blocks/course_status_tracker/course_status_tracker/lang/en/block_course_status_tracker.php
(#2) Empty line found after PHP open tag
(#23) File-level phpdocs block is not found
(#21) Invalid phpdocs tag @author: used
(#20) Package blocks is not valid
blocks/course_status_tracker/course_status_tracker/lib.php
(#2) Empty line found after PHP open tag
(#25) File-level phpdocs block is not found
(#97) Phpdocs for function course_name has incomplete parameters list
(#22) Invalid phpdocs tag @author: used
(#162) Invalid phpdocs tag @enrol_get_users_courses used
(#25) Package is not specified for function count_complete_course. It is also not specified in file-level phpdocs
(#38) Package is not specified for function user_enrolled_courses. It is also not specified in file-level phpdocs
(#57) Package is not specified for function count_course_criteria. It is also not specified in file-level phpdocs
(#81) Package is not specified for function module_name. It is also not specified in file-level phpdocs
(#94) Package is not specified for function course_name. It is also not specified in file-level phpdocs
(#109) Package is not specified for function user_details. It is also not specified in file-level phpdocs
(#138) Package is not specified for function report_get_custome_field. It is also not specified in file-level phpdocs
(#158) Package is not specified for function user_enrolled_courses_report. It is also not specified in file-level phpdocs
(#21) Package blocks is not valid
blocks/course_status_tracker/course_status_tracker/version.php
(#2) Empty line found after PHP open tag
(#26) File-level phpdocs block is not found
(#22) Invalid phpdocs tag @author: used
(#23) Invalid phpdocs tag @date: used
(#21) Package blocks is not valid
blocks/course_status_tracker/course_status_tracker/view.php
(#2) Empty line found after PHP open tag
(#23) File-level phpdocs block is not found
(#21) Invalid phpdocs tag @author: used
(#20) Package blocks is not valid
blocks/course_status_tracker/db/access.php
(#24) File-level phpdocs block is not found
(#21) Invalid phpdocs tag @author: used
(#20) Package blocks is not valid
blocks/course_status_tracker/db/lib.php
(#2) Empty line found after PHP open tag
(#25) File-level phpdocs block is not found
(#97) Phpdocs for function course_name has incomplete parameters list
(#22) Invalid phpdocs tag @author: used
(#162) Invalid phpdocs tag @enrol_get_users_courses used
(#25) Package is not specified for function count_complete_course. It is also not specified in file-level phpdocs
(#38) Package is not specified for function user_enrolled_courses. It is also not specified in file-level phpdocs
(#57) Package is not specified for function count_course_criteria. It is also not specified in file-level phpdocs
(#81) Package is not specified for function module_name. It is also not specified in file-level phpdocs
(#94) Package is not specified for function course_name. It is also not specified in file-level phpdocs
(#109) Package is not specified for function user_details. It is also not specified in file-level phpdocs
(#138) Package is not specified for function report_get_custome_field. It is also not specified in file-level phpdocs
(#158) Package is not specified for function user_enrolled_courses_report. It is also not specified in file-level phpdocs
(#21) Package blocks is not valid
blocks/course_status_tracker/lang/en/block_course_status_tracker.php
(#2) Empty line found after PHP open tag
(#23) File-level phpdocs block is not found
(#21) Invalid phpdocs tag @author: used
(#20) Package blocks is not valid
blocks/course_status_tracker/lib.php
(#2) Empty line found after PHP open tag
(#25) File-level phpdocs block is not found
(#97) Phpdocs for function course_name has incomplete parameters list
(#22) Invalid phpdocs tag @author: used
(#162) Invalid phpdocs tag @enrol_get_users_courses used
(#25) Package is not specified for function count_complete_course. It is also not specified in file-level phpdocs
(#38) Package is not specified for function user_enrolled_courses. It is also not specified in file-level phpdocs
(#57) Package is not specified for function count_course_criteria. It is also not specified in file-level phpdocs
(#81) Package is not specified for function module_name. It is also not specified in file-level phpdocs
(#94) Package is not specified for function course_name. It is also not specified in file-level phpdocs
(#109) Package is not specified for function user_details. It is also not specified in file-level phpdocs
(#138) Package is not specified for function report_get_custome_field. It is also not specified in file-level phpdocs
(#158) Package is not specified for function user_enrolled_courses_report. It is also not specified in file-level phpdocs
(#21) Package blocks is not valid
blocks/course_status_tracker/version.php
(#2) Empty line found after PHP open tag
(#26) File-level phpdocs block is not found
(#22) Invalid phpdocs tag @author: used
(#23) Invalid phpdocs tag @date: used
(#21) Package blocks is not valid
blocks/course_status_tracker/view.php
(#2) Empty line found after PHP open tag
(#23) File-level phpdocs block is not found
(#21) Invalid phpdocs tag @author: used
(#20) Package blocks is not valid

Update savepoints problems

(0 errors, 0 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]


Third party library modification problems

(0 errors, 0 warnings)

This section shows problems detected with the modification of third party libraries [More info]


grunt changes

(0 errors, 0 warnings)

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


shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 0 warnings)

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