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

(413 errors, 108 warnings)

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

mod/srg/backup/moodle2/backup_srg_activity_task.class.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#31) Inline comments must end in full-stops, exclamation marks, or question marks
(#32) Inline comments must end in full-stops, exclamation marks, or question marks
(#38) Opening brace should be on the same line as the declaration for class backup_srg_activity_task
(#43) Opening brace should be on the same line as the declaration
(#44) Inline comments must end in full-stops, exclamation marks, or question marks
(#51) Opening brace should be on the same line as the declaration
(#59) The static declaration must come after the visibility declaration
(#60) Opening brace should be on the same line as the declaration
mod/srg/backup/moodle2/backup_srg_settingslib.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/>.".
(#27) Inline comments must end in full-stops, exclamation marks, or question marks
mod/srg/backup/moodle2/backup_srg_stepslib.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#35) Opening brace should be on the same line as the declaration for class backup_srg_activity_structure_step
(#43) Opening brace should be on the same line as the declaration
(#45) Inline comments must end in full-stops, exclamation marks, or question marks
(#48) Inline comments must end in full-stops, exclamation marks, or question marks
(#49) Line exceeds 132 characters; contains 159 characters
(#51) Inline comments must end in full-stops, exclamation marks, or question marks
(#53) Inline comments must end in full-stops, exclamation marks, or question marks
(#56) Inline comments must end in full-stops, exclamation marks, or question marks
(#58) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) 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
(#62) Inline comments must end in full-stops, exclamation marks, or question marks
mod/srg/backup/moodle2/restore_srg_activity_task.class.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#37) Opening brace should be on the same line as the declaration for class restore_srg_activity_task
(#43) Opening brace should be on the same line as the declaration
(#44) Inline comments must end in full-stops, exclamation marks, or question marks
(#51) Opening brace should be on the same line as the declaration
(#61) Opening brace should be on the same line as the declaration
(#75) Opening brace should be on the same line as the declaration
(#78) Inline comments must start with a capital letter, digit or 3-dots sequence
(#78) Inline comments must end in full-stops, exclamation marks, or question marks
(#80) Inline comments must end in full-stops, exclamation marks, or question marks
(#94) Opening brace should be on the same line as the declaration
(#97) Inline comments must start with a capital letter, digit or 3-dots sequence
(#97) This comment is 65% valid code; is this commented out code?
(#114) The static declaration must come after the visibility declaration
(#115) Opening brace should be on the same line as the declaration
(#117) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#119) Inline comments must start with a capital letter, digit or 3-dots sequence
(#119) This comment is 66% valid code; is this commented out code?
(#126) Opening brace should be on the same line as the declaration
(#127) Inline comments must end in full-stops, exclamation marks, or question marks
mod/srg/backup/moodle2/restore_srg_stepslib.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#35) Opening brace should be on the same line as the declaration for class restore_srg_activity_structure_step
(#43) Opening brace should be on the same line as the declaration
(#49) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) Opening brace should be on the same line as the declaration
(#69) Inline comments must start with a capital letter, digit or 3-dots sequence
(#69) Inline comments must end in full-stops, exclamation marks, or question marks
(#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
(#79) Opening brace should be on the same line as the declaration
(#80) Inline comments must end in full-stops, exclamation marks, or question marks
mod/srg/db/access.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
mod/srg/db/log.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
mod/srg/db/upgrade.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#28) Opening brace should be on the same line as the declaration
mod/srg/db_conn.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".
(#3) Line 2 of the opening comment must start "//".
(#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/>.".
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
(#43) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#46) Opening brace should be on the same line as the declaration for class srg_db_conn
(#47) Class constants must be uppercase; expected DEBUG but found debug
(#49) Public method name "srg_db_conn::build_simple_DB_table" must be in lower-case letters only
(#50) Opening brace should be on the same line as the declaration
(#54) Public method name "srg_db_conn::build_DB_table" must be in lower-case letters only
(#54) Variable "main_query" must not contain underscores.
(#55) Opening brace should be on the same line as the declaration
(#59) Inline comments must end in full-stops, exclamation marks, or question marks
(#61) Variable "main_query" must not contain underscores.
(#62) Variable "main_query" must not contain underscores.
(#63) Variable "main_query" must not contain underscores.
(#64) Variable "main_query" must not contain underscores.
(#65) Variable "main_query" must not contain underscores.
(#68) Inline control structures are not allowed
(#75) Variable "main_query" must not contain underscores.
(#79) Inline control structures are not allowed
(#81) Inline comments must end in full-stops, exclamation marks, or question marks
(#82) Variable "main_query" must not contain underscores.
(#84) Inline control structures are not allowed
(#87) Variable "main_query" must not contain underscores.
(#110) Inline comments must end in full-stops, exclamation marks, or question marks
(#111) Inline control structures are not allowed
(#116) Variable "main_query" must not contain underscores.
(#119) Variable "main_query" must not contain underscores.
(#120) Variable "main_query" must not contain underscores.
(#121) Variable "main_query" must not contain underscores.
(#122) Variable "main_query" must not contain underscores.
(#126) Inline comments must end in full-stops, exclamation marks, or question marks
(#129) Inline comments must end in full-stops, exclamation marks, or question marks
(#130) Inline control structures are not allowed
(#130) Variable "main_query" must not contain underscores.
(#132) Inline comments must end in full-stops, exclamation marks, or question marks
(#133) Inline control structures are not allowed
(#133) Variable "main_query" must not contain underscores.
(#134) Variable "main_query" must not contain underscores.
(#135) Inline control structures are not allowed
(#135) Variable "main_query" must not contain underscores.
(#136) Variable "main_query" must not contain underscores.
(#137) Inline comments must end in full-stops, exclamation marks, or question marks
(#138) Inline control structures are not allowed
(#138) Variable "main_query" must not contain underscores.
(#139) Inline control structures are not allowed
(#140) Inline comments must end in full-stops, exclamation marks, or question marks
(#145) Inline comments must end in full-stops, exclamation marks, or question marks
(#152) Opening brace should be on the same line as the declaration
(#155) Inline control structures are not allowed
(#158) Inline comments must end in full-stops, exclamation marks, or question marks
(#159) Inline control structures are not allowed
(#179) Inline control structures are not allowed
(#183) Inline comments must end in full-stops, exclamation marks, or question marks
(#186) Inline comments must end in full-stops, exclamation marks, or question marks
(#193) Inline control structures are not allowed
(#197) Inline comments must end in full-stops, exclamation marks, or question marks
(#200) Inline comments must end in full-stops, exclamation marks, or question marks
(#203) Inline control structures are not allowed
(#205) Variable "_nq" must not contain underscores.
(#206) Variable "_nq" must not contain underscores.
(#207) Inline control structures are not allowed
(#214) Opening brace should be on the same line as the declaration
(#215) Inline comments must end in full-stops, exclamation marks, or question marks
(#218) Inline comments must end in full-stops, exclamation marks, or question marks
(#220) Inline control structures are not allowed
(#224) Inline comments must end in full-stops, exclamation marks, or question marks
(#234) Opening brace should be on the same line as the declaration
(#237) Inline comments must end in full-stops, exclamation marks, or question marks
(#242) Inline comments must end in full-stops, exclamation marks, or question marks
(#245) Inline control structures are not allowed
(#247) Inline control structures are not allowed
(#250) Inline control structures are not allowed
(#259) Inline comments must end in full-stops, exclamation marks, or question marks
(#261) Inline control structures are not allowed
(#263) Inline control structures are not allowed
(#266) Inline control structures are not allowed
(#272) Variable "dedication_header" must not contain underscores.
(#272) Variable "dedication_min_time" must not contain underscores.
(#272) Variable "dedication_max_time" must not contain underscores.
(#272) Variable "dedication_target" must not contain underscores.
(#272) Line exceeds 132 characters; contains 161 characters
(#273) Opening brace should be on the same line as the declaration
(#274) Variable "new_logs" must not contain underscores.
(#275) Inline control structures are not allowed
(#275) Variable "new_logs" must not contain underscores.
(#277) Inline comments must end in full-stops, exclamation marks, or question marks
(#283) Variable "dedication_header" must not contain underscores.
(#283) Variable "dedication_header" must not contain underscores.
(#283) Variable "dedication_max_time" must not contain underscores.
(#284) Variable "dedication_target" must not contain underscores.
(#284) Variable "dedication_target" must not contain underscores.
(#284) Variable "dedication_target" must not contain underscores.
(#286) Variable "dedication_header" must not contain underscores.
(#286) Variable "dedication_header" must not contain underscores.
(#288) Inline comments must end in full-stops, exclamation marks, or question marks
(#289) Variable "dedication_min_time" must not contain underscores.
(#290) Inline comments must end in full-stops, exclamation marks, or question marks
(#291) Variable "dedication_header" must not contain underscores.
(#292) Variable "new_logs" must not contain underscores.
(#295) Inline comments must end in full-stops, exclamation marks, or question marks
(#298) Inline comments must end in full-stops, exclamation marks, or question marks
(#302) Variable "dedication_header" must not contain underscores.
(#302) Variable "dedication_header" must not contain underscores.
(#305) Variable "dedication_min_time" must not contain underscores.
(#306) Inline comments must end in full-stops, exclamation marks, or question marks
(#307) Variable "dedication_header" must not contain underscores.
(#308) Variable "new_logs" must not contain underscores.
(#311) Variable "new_logs" must not contain underscores.
(#315) Opening brace should be on the same line as the declaration
(#316) Variable "s_table" must not contain underscores.
(#319) Variable "s_row0" must not contain underscores.
(#320) Variable "s_row1" must not contain underscores.
(#324) Variable "s_row0" must not contain underscores.
(#325) Variable "s_row1" must not contain underscores.
(#327) Variable "s_table" must not contain underscores.
(#327) Variable "s_row0" must not contain underscores.
(#328) Variable "s_table" must not contain underscores.
(#328) Variable "s_row1" must not contain underscores.
(#331) Variable "s_row" must not contain underscores.
(#333) Variable "s_row" must not contain underscores.
(#335) Variable "s_table" must not contain underscores.
(#335) Variable "s_row" must not contain underscores.
(#339) Variable "s_table" must not contain underscores.
(#349) Opening brace should be on the same line as the declaration
(#405) Opening brace should be on the same line as the declaration for class srg_db_column
(#406) Member variable "target_name" must not contain underscores.
(#407) Member variable "source_name" must not contain underscores.
(#408) Member variable "source_type" must not contain underscores.
(#412) Variable "target_name" must not contain underscores.
(#413) Variable "source_name" must not contain underscores.
(#414) Variable "source_type" must not contain underscores.
(#417) Variable "target_name" must not contain underscores.
(#418) Variable "source_name" must not contain underscores.
(#419) Variable "source_type" must not contain underscores.
(#430) Opening brace should be on the same line as the declaration for class srg_db_query
(#432) Member variable "table_type" must not contain underscores.
(#439) Member variable "nested_queries_columns" must not contain underscores.
(#440) Member variable "nested_queries" must not contain underscores.
(#444) Variable "table_type" must not contain underscores.
(#450) Variable "nested_queries_columns" must not contain underscores.
(#451) Variable "nested_queries" must not contain underscores.
(#454) Variable "table_type" must not contain underscores.
(#461) Variable "nested_queries_columns" must not contain underscores.
(#462) Variable "nested_queries" must not contain underscores.
(#464) Inline comments must end in full-stops, exclamation marks, or question marks
(#465) Expected 1 space before "?"; 11 found
(#465) Expected 1 space before ":"; 14 found
(#465) Line exceeds 132 characters; contains 145 characters
(#466) Expected 1 space before "?"; 11 found
(#466) Expected 1 space before ":"; 14 found
(#466) Line exceeds 132 characters; contains 145 characters
(#467) Expected 1 space before "?"; 2 found
(#467) Expected 1 space before ":"; 5 found
(#467) Line exceeds 132 characters; contains 145 characters
(#468) Expected 1 space before "?"; 2 found
(#468) Expected 1 space before ":"; 5 found
(#468) Line exceeds 132 characters; contains 150 characters
(#469) Expected 1 space before "?"; 4 found
(#469) Expected 1 space before ":"; 7 found
(#469) Line exceeds 132 characters; contains 145 characters
(#471) Inline comments must end in full-stops, exclamation marks, or question marks
(#472) Expected 1 space before "?"; 9 found
(#472) Expected 1 space before ":"; 12 found
(#472) Line exceeds 132 characters; contains 145 characters
(#473) Expected 1 space before "?"; 12 found
(#473) Expected 1 space before ":"; 15 found
(#473) Line exceeds 132 characters; contains 145 characters
mod/srg/index.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
(#32) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#37) Inline comments must end in full-stops, exclamation marks, or question marks
(#38) Variable "modulename_plural" must not contain underscores.
(#45) Variable "modulename_plural" must not contain underscores.
(#51) Inline comments must end in full-stops, exclamation marks, or question marks
(#89) Inline comments must start with a capital letter, digit or 3-dots sequence
(#89) Inline comments must end in full-stops, exclamation marks, or question marks
mod/srg/info.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#37) Variable "course_id" must not contain underscores.
(#37) Inline comments must end in full-stops, exclamation marks, or question marks
(#40) Variable "course_id" must not contain underscores.
(#41) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#46) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#49) Variable "course_id" must not contain underscores.
(#54) Inline comments must end in full-stops, exclamation marks, or question marks
(#58) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) Perl-style comments are not allowed; use "// Comment." instead
(#61) Variable "course_id" must not contain underscores.
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
(#83) Inline comments must end in full-stops, exclamation marks, or question marks
(#84) Expected "} else {\n"; found "}\n // Use Moodle 3.10 functionality\n else {\n"
(#93) Inline control structures are not allowed
(#97) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#107) No space found before comment text; expected "// Important!" but found "//Important!"
(#109) Perl-style comments are not allowed; use "// Comment." instead
(#111) Perl-style comments are not allowed; use "// Comment." instead
(#112) Expected "} else if (...) {\n"; found "}\n#endregion\n\nelse if (...) {\n"
(#115) Whitespace found at end of line within string
(#116) 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
(#122) 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
(#127) Whitespace found at end of line within string
(#128) Whitespace found at end of line within string
(#129) Whitespace found at end of line within string
(#130) Whitespace found at end of line within string
(#131) Whitespace found at end of line within string
(#132) Whitespace found at end of line within string
(#133) Whitespace found at end of line within string
(#134) 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
(#140) Whitespace found at end of line within string
(#141) Whitespace found at end of line within string
(#142) Whitespace found at end of line within string
(#143) Whitespace found at end of line within string
(#144) Whitespace found at end of line within string
(#145) Whitespace found at end of line within string
(#146) Whitespace found at end of line within string
(#147) Whitespace found at end of line within string
(#148) Whitespace found at end of line within string
(#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
(#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
(#200) Perl-style comments are not allowed; use "// Comment." instead
mod/srg/lang/de/srg.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#28) Inline doc block comments are not allowed; use "// Comment." instead
(#40) Inline doc block comments are not allowed; use "// Comment." instead
(#49) Inline doc block comments are not allowed; use "// Comment." instead
(#55) Whitespace found at end of line within string
(#56) Whitespace found at end of line within string
(#57) Whitespace found at end of line within string
(#60) Inline doc block comments are not allowed; use "// Comment." instead
(#65) Inline doc block comments are not allowed; use "// Comment." instead
mod/srg/lang/en/srg.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#28) Inline doc block comments are not allowed; use "// Comment." instead
(#40) Inline doc block comments are not allowed; use "// Comment." instead
(#49) Inline doc block comments are not allowed; use "// Comment." instead
(#55) Whitespace found at end of line within string
(#56) Whitespace found at end of line within string
(#57) Whitespace found at end of line within string
(#60) Inline doc block comments are not allowed; use "// Comment." instead
(#65) Inline doc block comments are not allowed; use "// Comment." instead
mod/srg/lib.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#30) Perl-style comments are not allowed; use "// Comment." instead
(#39) Opening brace should be on the same line as the declaration
(#77) Opening brace should be on the same line as the declaration
(#85) Inline comments must end in full-stops, exclamation marks, or question marks
(#105) Opening brace should be on the same line as the declaration
(#129) Opening brace should be on the same line as the declaration
(#145) Perl-style comments are not allowed; use "// Comment." instead
mod/srg/locallib.php
(#35) Variable "user_id" must not contain underscores.
(#35) Variable "course_id" must not contain underscores.
(#36) Opening brace should be on the same line as the declaration
(#39) Variable "user_id" must not contain underscores.
(#39) Variable "course_id" must not contain underscores.
(#43) Variable "enrolled_courses" must not contain underscores.
(#45) Inline control structures are not allowed
(#45) Variable "enrolled_courses" must not contain underscores.
(#49) Inline comments must end in full-stops, exclamation marks, or question marks
(#51) Opening brace should be on the same line as the declaration
(#54) Inline comments must start with a capital letter, digit or 3-dots sequence
(#54) This comment is 56% valid code; is this commented out code?
(#55) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#56) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#57) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#111) Opening brace should be on the same line as the declaration for class srg_CSV
(#112) Inline comments must end in full-stops, exclamation marks, or question marks
(#113) Public method name "srg_CSV::simple_table_to_CSV" must be in lower-case letters only
(#114) Opening brace should be on the same line as the declaration
(#117) Inline control structures are not allowed
(#118) Variable "first_row" must not contain underscores.
(#119) Inline control structures are not allowed
(#119) Variable "first_row" must not contain underscores.
(#120) Variable "first_cell" must not contain underscores.
(#120) Variable "first_row" must not contain underscores.
(#122) Variable "first_cell" must not contain underscores.
(#124) Variable "first_row" must not contain underscores.
(#132) Inline control structures are not allowed
(#133) Variable "first_cell" must not contain underscores.
(#135) Variable "first_cell" must not contain underscores.
mod/srg/mod_form.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#37) Opening brace should be on the same line as the declaration for class mod_srg_mod_form
(#43) Opening brace should be on the same line as the declaration
(#50) Inline comments must end in full-stops, exclamation marks, or question marks
(#50) No space found before comment text; expected "// Header" but found "//Header"
(#53) Inline comments must end in full-stops, exclamation marks, or question marks
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
(#66) Inline comments must end in full-stops, exclamation marks, or question marks
mod/srg/sql.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#32) Opening brace should be on the same line as the declaration for class srg_log
(#33) Public method name "srg_log::GetCourseLog" must be in lower-case letters only
(#34) Opening brace should be on the same line as the declaration
(#37) Variable "table_type" must not contain underscores.
(#62) Variable "nested_queries_columns" must not contain underscores.
(#63) Variable "nested_queries" must not contain underscores.
(#67) Public method name "srg_log::GetCourseDedication" must be in lower-case letters only
(#68) Opening brace should be on the same line as the declaration
(#71) Variable "table_type" must not contain underscores.
(#86) Variable "nested_queries_columns" must not contain underscores.
(#87) Variable "nested_queries" must not contain underscores.
(#91) Public method name "srg_log::GetCourseModuleLog" must be in lower-case letters only
(#92) Opening brace should be on the same line as the declaration
(#95) Variable "table_type" must not contain underscores.
(#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
(#127) Variable "nested_queries_columns" must not contain underscores.
(#128) Variable "object_name" must not contain underscores.
(#130) Variable "nested_queries" must not contain underscores.
(#133) Variable "table_type" must not contain underscores.
(#137) Variable "object_name" must not contain underscores.
(#144) Variable "nested_queries_columns" must not contain underscores.
(#145) Variable "nested_queries" must not contain underscores.
(#149) Variable "table_type" must not contain underscores.
(#153) Variable "object_name" must not contain underscores.
(#160) Variable "nested_queries_columns" must not contain underscores.
(#161) Variable "nested_queries" must not contain underscores.
(#168) Public method name "srg_log::GetCourseModuleDedication" must be in lower-case letters only
(#169) Opening brace should be on the same line as the declaration
(#172) Variable "table_type" must not contain underscores.
(#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
(#206) Variable "nested_queries_columns" must not contain underscores.
(#207) Variable "object_name" must not contain underscores.
(#209) Variable "nested_queries" must not contain underscores.
(#212) Variable "table_type" must not contain underscores.
(#216) Variable "object_name" must not contain underscores.
(#223) Variable "nested_queries_columns" must not contain underscores.
(#224) Variable "nested_queries" must not contain underscores.
(#228) Variable "table_type" must not contain underscores.
(#232) Variable "object_name" must not contain underscores.
(#239) Variable "nested_queries_columns" must not contain underscores.
(#240) Variable "nested_queries" must not contain underscores.
(#247) Public method name "srg_log::GetGradingInterest" must be in lower-case letters only
(#248) Opening brace should be on the same line as the declaration
(#251) Variable "table_type" must not contain underscores.
(#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) 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) Whitespace found at end of line within string
(#260) Whitespace found at end of line within string
(#276) Variable "nested_queries_columns" must not contain underscores.
(#277) Variable "nested_queries" must not contain underscores.
(#281) Public method name "srg_log::GetForumActivity" must be in lower-case letters only
(#282) Opening brace should be on the same line as the declaration
(#285) Variable "table_type" must not contain underscores.
(#286) Whitespace found at end of line within string
(#305) Variable "nested_queries_columns" must not contain underscores.
(#309) Variable "nested_queries" must not contain underscores.
(#312) Variable "table_type" must not contain underscores.
(#323) Variable "nested_queries_columns" must not contain underscores.
(#324) Variable "nested_queries" must not contain underscores.
(#329) Variable "table_type" must not contain underscores.
(#340) Variable "nested_queries_columns" must not contain underscores.
(#341) Variable "nested_queries" must not contain underscores.
(#344) Variable "table_type" must not contain underscores.
(#354) Variable "nested_queries_columns" must not contain underscores.
(#355) Variable "nested_queries" must not contain underscores.
(#365) Public method name "srg_log::GETHVP" must be in lower-case letters only
(#366) Opening brace should be on the same line as the declaration
(#369) Variable "table_type" must not contain underscores.
(#382) Variable "nested_queries_columns" must not contain underscores.
(#385) Variable "nested_queries" must not contain underscores.
(#387) Variable "table_type" must not contain underscores.
(#399) Variable "nested_queries_columns" must not contain underscores.
(#400) Variable "nested_queries" must not contain underscores.
(#406) Public method name "srg_log::GETBadges" must be in lower-case letters only
(#407) Opening brace should be on the same line as the declaration
(#410) Variable "table_type" must not contain underscores.
(#420) Variable "nested_queries_columns" must not contain underscores.
(#423) Variable "nested_queries" must not contain underscores.
(#426) Variable "table_type" must not contain underscores.
(#438) Variable "nested_queries_columns" must not contain underscores.
(#439) Variable "nested_queries" must not contain underscores.
mod/srg/version.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#27) Inline comments must start with a capital letter, digit or 3-dots sequence
(#27) Inline comments must end in full-stops, exclamation marks, or question marks
mod/srg/view.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#29) Inline comments must end in full-stops, exclamation marks, or question marks
(#33) Inline control structures are not allowed
(#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) Line exceeds 132 characters; contains 143 characters
(#33) Inline comments must end in full-stops, exclamation marks, or question marks
(#34) Inline control structures are not allowed
(#34) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#34) Line exceeds 132 characters; contains 143 characters
(#34) Inline comments must end in full-stops, exclamation marks, or question marks
(#35) Inline control structures are not allowed
(#35) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#35) Line exceeds 132 characters; contains 139 characters
(#35) Inline comments must end in full-stops, exclamation marks, or question marks
(#39) Variable "module_context" must not contain underscores.
(#40) Variable "system_context" must not contain underscores.
(#45) Variable "module_context" must not contain underscores.
(#49) Line exceeds 132 characters; contains 137 characters
(#51) Inline comments must end in full-stops, exclamation marks, or question marks
(#58) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(44 errors, 3 warnings)

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

mod/srg/backup/moodle2/backup_srg_activity_task.class.php
(#55) Phpdocs for function backup_srg_activity_task::encode_content_links has incomplete parameters list
mod/srg/backup/moodle2/backup_srg_settingslib.php
(#2) Empty line found after PHP open tag
(#18) No one-line description found in phpdocs for file
mod/srg/backup/moodle2/restore_srg_activity_task.class.php
(#125) Function restore_srg_activity_task::after_restore is not documented
(#106) Inline phpdocs tag {@link restore_logs_processor} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#108) Inline phpdocs tag {@link restore_log_rule} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
mod/srg/db/upgrade.php
(#27) Function xmldb_srg_upgrade is not documented
mod/srg/db_conn.php
(#2) Empty line found after PHP open tag
(#45) Class srg_db_conn is not documented
(#404) Class srg_db_column is not documented
(#429) Class srg_db_query is not documented
(#49) Function srg_db_conn::build_simple_DB_table is not documented
(#54) Function srg_db_conn::build_DB_table is not documented
(#151) Function srg_db_conn::update_row_using_nested_query is not documented
(#213) Function srg_db_conn::get_fields is not documented
(#233) Function srg_db_conn::handle_columns is not documented
(#272) Function srg_db_conn::get_dedication is not documented
(#314) Function srg_db_conn::simple_table is not documented
(#411) Function srg_db_column::__construct is not documented
(#442) Function srg_db_query::__construct is not documented
(#406) Variable srg_db_column::$target_name is not documented
(#407) Variable srg_db_column::$source_name is not documented
(#408) Variable srg_db_column::$source_type is not documented
(#409) Variable srg_db_column::$requirement is not documented
(#431) Variable srg_db_query::$table is not documented
(#432) Variable srg_db_query::$table_type is not documented
(#433) Variable srg_db_query::$select is not documented
(#434) Variable srg_db_query::$params is not documented
(#435) Variable srg_db_query::$columns is not documented
(#436) Variable srg_db_query::$sort is not documented
(#438) Variable srg_db_query::$options is not documented
(#439) Variable srg_db_query::$nested_queries_columns is not documented
(#440) Variable srg_db_query::$nested_queries is not documented
(#47) Constant srg_db_conn::debug is not documented
(#19) No one-line description found in phpdocs for file
mod/srg/lib.php
(#100) Phpdocs for function srg_update_instance has incomplete parameters list
mod/srg/locallib.php
(#50) Function srg_get_file_list is not documented
(#113) Function srg_CSV::simple_table_to_CSV is not documented
mod/srg/sql.php
(#31) Class srg_log is not documented
(#33) Function srg_log::GetCourseLog is not documented
(#67) Function srg_log::GetCourseDedication is not documented
(#91) Function srg_log::GetCourseModuleLog is not documented
(#168) Function srg_log::GetCourseModuleDedication is not documented
(#247) Function srg_log::GetGradingInterest is not documented
(#281) Function srg_log::GetForumActivity is not documented
(#365) Function srg_log::GETHVP is not documented
(#406) Function srg_log::GETBadges is not documented

Update savepoints problems

(0 errors, 0 warnings)

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


Third party library modification problems

(0 errors, 0 warnings)

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


grunt changes

(0 errors, 0 warnings)

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


shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 0 warnings)

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


Gherkin .feature problems

(0 errors, 0 warnings)

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