Prechecker results: error


Overview

(0 errors, 0 warnings)

This section shows the general problems detected when processing the code [More info]


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

(383 errors, 112 warnings)

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

mod/bacs/classes/contest.php
(#449) Whitespace found at end of line
(#451) Whitespace found at end of line
(#478) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#988) The closing brace for the class must go on the next line after the body
mod/bacs/classes/cron_lib.php
(#27) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#520) Expected "if (...) {\n"; found "if(...) {\n"
(#520) Expected 1 space after IF keyword; 0 found
(#573) Incorrect spacing between argument "$verbose" and equals sign; expected 1 but found 0
(#573) Incorrect spacing between default value and equals sign for argument "$verbose"; expected 1 but found 0
(#576) Inline comments must end in full-stops, exclamation marks, or question marks
(#576) 3 slashes comments are not allowed; use "// Comment." instead
(#584) Whitespace found at end of line within string
(#602) Inline comments must end in full-stops, exclamation marks, or question marks
(#604) Inline control structures are not allowed
(#605) Whitespace found at end of line
(#626) Inline comments must start with a capital letter, digit or 3-dots sequence
(#627) Inline comments must end in full-stops, exclamation marks, or question marks
(#638) Inline comments must end in full-stops, exclamation marks, or question marks
(#665) Inline comments must end in full-stops, exclamation marks, or question marks
(#670) Inline comments must end in full-stops, exclamation marks, or question marks
(#674) Inline control structures are not allowed
(#685) Whitespace found at end of line
(#686) Inline comments must end in full-stops, exclamation marks, or question marks
(#688) Line exceeds 132 characters; contains 145 characters
(#689) Whitespace found at end of line
(#690) Inline comments must end in full-stops, exclamation marks, or question marks
(#699) Inline control structures are not allowed
(#709) Inline comments must start with a capital letter, digit or 3-dots sequence
(#709) Inline comments must end in full-stops, exclamation marks, or question marks
(#709) This comment is 70% valid code; is this commented out code?
(#709) No space found before comment text; expected "// if ($verbose) print "<p>KS DEBUG l=$l r=$r submitvalue=$submitvalue timedelta=$timedelta ks=$ks </p>";" but found "//if ($verbose) print "<p>KS DEBUG l=$l r=$r submitvalue=$submitvalue timedelta=$timedelta ks=$ks </p>";"
(#712) Inline comments must end in full-stops, exclamation marks, or question marks
(#713) Inline control structures are not allowed
(#714) Whitespace found at end of line
(#718) Inline comments must end in full-stops, exclamation marks, or question marks
(#720) Inline control structures are not allowed
(#727) Inline control structures are not allowed
(#732) Expected 1 space after comma in argument list; 2 found
(#732) Expected 1 space between the comma and "$inparams". Found: 2 spaces
(#733) Expected 1 space after comma in argument list; 2 found
(#733) Expected 1 space between the comma and "$inparams". Found: 2 spaces
(#736) Inline comments must end in full-stops, exclamation marks, or question marks
(#739) Whitespace found at end of line
(#763) Inline comments must end in full-stops, exclamation marks, or question marks
(#768) Inline comments must end in full-stops, exclamation marks, or question marks
(#774) Whitespace found at end of line within string
(#796) Inline comments must end in full-stops, exclamation marks, or question marks
(#797) Expected 1 space after FUNCTION keyword; 0 found
(#797) Opening brace must be the last content on the line
(#797) Closing brace must be on a line by itself
(#797) Each PHP statement must be on a line by itself
(#798) Whitespace found at end of line
(#799) Inline control structures are not allowed
(#801) Inline comments must end in full-stops, exclamation marks, or question marks
(#803) Inline control structures are not allowed
(#816) Inline comments must end in full-stops, exclamation marks, or question marks
(#818) Inline comments must end in full-stops, exclamation marks, or question marks
(#823) There should be a comma after the last array item in a multi-line array.
(#825) Whitespace found at end of line
(#829) There should be a comma after the last array item in a multi-line array.
(#832) Inline control structures are not allowed
(#832) Line exceeds 132 characters; contains 153 characters
(#835) Inline comments must end in full-stops, exclamation marks, or question marks
(#840) Whitespace found at end of line
(#841) Inline comments must start with a capital letter, digit or 3-dots sequence
(#841) Inline comments must end in full-stops, exclamation marks, or question marks
(#850) There should be a comma after the last array item in a multi-line array.
(#857) Line exceeds 132 characters; contains 139 characters
(#863) Inline comments must end in full-stops, exclamation marks, or question marks
(#865) Inline control structures are not allowed
(#871) Inline control structures are not allowed
(#897) Whitespace found at end of line
(#902) The closing brace for the class must go on the next line after the body
mod/bacs/classes/output/contest_nav_menu.php
(#571) Line exceeds 132 characters; contains 147 characters
(#572) Line exceeds maximum limit of 180 characters; contains 382 characters
(#575) Whitespace found at end of line
mod/bacs/classes/output/results_submit.php
(#212) Inline comments must start with a capital letter, digit or 3-dots sequence
(#212) Inline comments must end in full-stops, exclamation marks, or question marks
mod/bacs/contest_actions.php
(#54) Variable "localized_name" must not contain underscores.
(#55) Variable "localized_name" must not contain underscores.
mod/bacs/dashboard.php
(#41) Inline comments must end in full-stops, exclamation marks, or question marks
(#42) Missing docblock for class filter_form
(#43) Missing member variable doc comment
(#43) Member variable "default_from" must not contain underscores.
(#43) There must not be more than one property declared per statement
(#43) Missing member variable doc comment
(#43) Member variable "default_to" must not contain underscores.
(#44) Missing member variable doc comment
(#44) Member variable "default_course_id" must not contain underscores.
(#45) Missing member variable doc comment
(#45) Member variable "default_task_id" must not contain underscores.
(#47) Missing docblock for function __construct
(#47) Visibility must be declared on method "__construct"
(#48) Opening brace should be on the same line as the declaration
(#49) 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
(#53) Inline comments must end in full-stops, exclamation marks, or question marks
(#54) Variable "ceil_seconds" must not contain underscores.
(#55) Variable "ceil_seconds" must not contain underscores.
(#55) 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) Missing docblock for function get_data
(#61) Visibility must be declared on method "get_data"
(#62) Variable "form_data" must not contain underscores.
(#63) Expected 1 space after IF keyword; 0 found
(#63) Inline control structures are not allowed
(#63) Variable "form_data" must not contain underscores.
(#63) Variable "form_data" must not contain underscores.
(#69) Variable "form_data" must not contain underscores.
(#72) Missing docblock for function definition
(#73) Opening brace should be on the same line as the declaration
(#76) 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
(#91) Inline comments must end in full-stops, exclamation marks, or question marks
(#94) Variable "localized_name" must not contain underscores.
(#95) Variable "localized_name" must not contain underscores.
(#100) Inline comments must end in full-stops, exclamation marks, or question marks
(#105) Inline comments must end in full-stops, exclamation marks, or question marks
(#106) Missing docblock for function is_course_available
(#106) Variable "course_id" must not contain underscores.
(#107) Opening brace should be on the same line as the declaration
(#108) Variable "course_id" must not contain underscores.
(#112) Inline comments must end in full-stops, exclamation marks, or question marks
(#113) Missing docblock for function get_available_courses
(#114) Opening brace should be on the same line as the declaration
(#115) Variable "available_courses" must not contain underscores.
(#118) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#118) Expected 1 space after FOREACH keyword; 0 found
(#119) Inline control structures are not allowed
(#120) Variable "available_courses" must not contain underscores.
(#123) Variable "available_courses" must not contain underscores.
(#126) Missing docblock for function get_all_tasks
(#131) Missing docblock for function get_filtered_submits
(#131) Variable "form_data" must not contain underscores.
(#132) Opening brace should be on the same line as the declaration
(#135) Inline comments must end in full-stops, exclamation marks, or question marks
(#136) Variable "sql_where" must not contain underscores.
(#136) Variable "form_data" must not contain underscores.
(#136) Variable "form_data" must not contain underscores.
(#137) Inline control structures are not allowed
(#137) Variable "form_data" must not contain underscores.
(#137) Variable "sql_where" must not contain underscores.
(#137) Variable "form_data" must not contain underscores.
(#138) Inline control structures are not allowed
(#138) Variable "form_data" must not contain underscores.
(#138) Variable "sql_where" must not contain underscores.
(#138) Variable "form_data" must not contain underscores.
(#143) Whitespace found at end of line within string
(#146) Variable "sql_where" must not contain underscores.
(#148) Inline comments must end in full-stops, exclamation marks, or question marks
(#151) Inline control structures are not allowed
(#159) Missing docblock for function generate_day_hour_distrib_chart
(#159) Variable "form_data" must not contain underscores.
(#160) Opening brace should be on the same line as the declaration
(#161) Inline comments must end in full-stops, exclamation marks, or question marks
(#162) Variable "submits_per_hour" must not contain underscores.
(#162) Inline comments must end in full-stops, exclamation marks, or question marks
(#164) Inline comments must end in full-stops, exclamation marks, or question marks
(#165) Variable "day_period" must not contain underscores.
(#170) Variable "day_period" must not contain underscores.
(#171) Inline comments must end in full-stops, exclamation marks, or question marks
(#172) Variable "submits_per_hour" must not contain underscores.
(#172) Blank comments are not allowed
(#175) Inline comments must end in full-stops, exclamation marks, or question marks
(#176) Variable "form_data" must not contain underscores.
(#178) Expected "foreach (...) {\n"; found "foreach (...){\n"
(#178) Expected 1 space after closing parenthesis; found 0
(#179) Variable "submits_per_hour" must not contain underscores.
(#183) Variable "submits_per_hour" must not contain underscores.
(#190) Missing docblock for class verdict_chart_database_manipulator
(#190) Each class must be in a file by itself
(#191) Missing docblock for function get_visible_courses
(#191) Expected 1 space before opening brace; found 0
(#192) Variable "all_courses" must not contain underscores.
(#193) Expected "foreach (...) {\n"; found "foreach (...){\n"
(#193) Variable "all_courses" must not contain underscores.
(#193) Expected 1 space after closing parenthesis; found 0
(#195) Expected "if (...) {\n"; found "if (...){\n"
(#195) Expected 1 space after closing parenthesis; found 0
(#196) Variable "visible_courses" must not contain underscores.
(#199) Variable "visible_courses" must not contain underscores.
(#201) Missing docblock for function get_contests_from_the_course
(#201) Variable "course_id" must not contain underscores.
(#201) Expected 1 space before opening brace; found 0
(#203) Variable "course_id" must not contain underscores.
(#205) Missing docblock for function get_tasks_from_the_contest
(#205) Variable "contest_id" must not contain underscores.
(#205) Expected 1 space before opening brace; found 0
(#207) Variable "contest_id" must not contain underscores.
(#207) Line exceeds maximum limit of 180 characters; contains 189 characters
(#209) Missing docblock for function get_contests_from_any_courses
(#209) Expected 1 space before opening brace; found 0
(#210) Variable "result_contests" must not contain underscores.
(#210) Short array syntax must be used to define arrays
(#211) Expected "foreach (...) {\n"; found "foreach (...){\n"
(#211) Expected 1 space after closing parenthesis; found 0
(#213) Expected "if (...) {\n"; found "if (...){\n"
(#213) Expected at least 1 space before ">"; 0 found
(#213) Expected at least 1 space after ">"; 0 found
(#213) Expected 1 space before ">"; 0 found
(#213) Expected 1 space after ">"; 0 found
(#213) Expected 1 space after closing parenthesis; found 0
(#214) Expected "foreach (...) {\n"; found "foreach (...){\n"
(#214) Expected 1 space after closing parenthesis; found 0
(#215) Variable "result_contests" must not contain underscores.
(#219) Variable "result_contests" must not contain underscores.
(#221) Missing docblock for function get_all_visible_tasks
(#221) Expected 1 space before opening brace; found 0
(#222) Variable "result_contests" must not contain underscores.
(#223) Expected "if (...) {\n"; found "if (...){\n"
(#223) Variable "result_contests" must not contain underscores.
(#223) Expected at least 1 space before ">"; 0 found
(#223) Expected at least 1 space after ">"; 0 found
(#223) Expected 1 space before ">"; 0 found
(#223) Expected 1 space after ">"; 0 found
(#223) Expected 1 space after closing parenthesis; found 0
(#224) Expected "foreach (...) {\n"; found "foreach (...){\n"
(#224) Variable "result_contests" must not contain underscores.
(#224) Expected 1 space after closing parenthesis; found 0
(#226) Expected "foreach (...) {\n"; found "foreach (...){\n"
(#226) Expected 1 space after closing parenthesis; found 0
(#227) Variable "all_visible_tasks" must not contain underscores.
(#231) Variable "all_visible_tasks" must not contain underscores.
(#233) Missing docblock for function get_all_tasks
(#235) Variable "all_tasks" must not contain underscores.
(#237) Variable "all_visible_tasks" must not contain underscores.
(#240) Variable "all_tasks" must not contain underscores.
(#242) Missing docblock for function get_task_by_task_id
(#242) Variable "task_id" must not contain underscores.
(#244) Variable "task_id" must not contain underscores.
(#247) Missing docblock for class verdict_chart_controller
(#247) Each class must be in a file by itself
(#248) Missing docblock for function make_pie
(#248) Variable "test_form" must not contain underscores.
(#248) Expected 1 space before opening brace; found 0
(#249) Variable "view_bag" must not contain underscores.
(#250) Variable "test_form" must not contain underscores.
(#251) Variable "all_courses" must not contain underscores.
(#252) Variable "view_bag" must not contain underscores.
(#255) Variable "view_bag" must not contain underscores.
(#257) Variable "db_task" must not contain underscores.
(#258) Variable "view_bag" must not contain underscores.
(#258) Variable "db_task" must not contain underscores.
(#261) Expected "if (...) {\n"; found "if (...){\n"
(#261) Expected at least 1 space before "=="; 0 found
(#261) Expected at least 1 space after "=="; 0 found
(#261) Expected 1 space before "=="; 0 found
(#261) Expected 1 space after "=="; 0 found
(#261) Expected 1 space after closing parenthesis; found 0
(#262) Variable "all_courses" must not contain underscores.
(#267) Expected "for (...) {\n"; found "for (...){\n"
(#267) Expected at least 1 space before "<"; 0 found
(#267) Expected at least 1 space after "<"; 0 found
(#267) Expected 1 space before "<"; 0 found
(#267) Expected 1 space after "<"; 0 found
(#267) Expected 1 space after closing parenthesis; found 0
(#270) Variable "sql_where" must not contain underscores.
(#271) Inline control structures are not allowed
(#271) Variable "sql_where" must not contain underscores.
(#273) Variable "sql_where" must not contain underscores.
(#276) Variable "view_bag" must not contain underscores.
(#277) Variable "view_bag" must not contain underscores.
(#281) Variable "view_bag" must not contain underscores.
(#284) Missing docblock for class verdict_chart_view
(#284) Each class must be in a file by itself
(#285) Missing docblock for function render_data
(#285) Variable "test_form" must not contain underscores.
(#285) Variable "view_bag" must not contain underscores.
(#286) Opening brace should be on the same line as the declaration
(#290) Whitespace found at end of line
(#291) Expected 0 spaces after opening bracket; 1 found
(#291) Variable "view_bag" must not contain underscores.
(#291) Variable "view_bag" must not contain underscores.
(#296) Variable "view_bag" must not contain underscores.
(#297) Variable "view_bag" must not contain underscores.
(#299) Variable "view_bag" must not contain underscores.
(#307) Missing docblock for function as_widget_caption
(#311) Inline comments must end in full-stops, exclamation marks, or question marks
(#313) Inline comments must end in full-stops, exclamation marks, or question marks
(#314) Variable "filter_form" must not contain underscores.
(#316) Inline comments must end in full-stops, exclamation marks, or question marks
(#317) Variable "widget_day_hour_distrib_chart" must not contain underscores.
(#318) Variable "widget_day_hour_distrib_chart" must not contain underscores.
(#318) Variable "filter_form" must not contain underscores.
(#320) Variable "widget_verdict_chart" must not contain underscores.
(#321) Variable "view_bag" must not contain underscores.
(#321) Variable "filter_form" must not contain underscores.
(#322) Variable "widget_verdict_chart" must not contain underscores.
(#322) Variable "filter_form" must not contain underscores.
(#322) Variable "view_bag" must not contain underscores.
(#325) Variable "widget_day_hour_distrib_chart" must not contain underscores.
(#326) There should be a comma after the last array item in a multi-line array.
(#326) Variable "widget_verdict_chart" must not contain underscores.
(#331) Inline comments must end in full-stops, exclamation marks, or question marks
(#332) Variable "filter_form" must not contain underscores.
mod/bacs/db/upgrade.php
(#45) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#716) Blank line found at start of control structure
(#742) Blank line found at start of control structure
(#767) Blank line found at start of control structure
(#794) Blank line found at start of control structure
(#809) Blank line found at start of control structure
(#824) Blank line found at start of control structure
(#842) Line exceeds 132 characters; contains 134 characters
mod/bacs/diagnostics.php
(#58) Line exceeds maximum limit of 180 characters; contains 185 characters
mod/bacs/incidents.php
(#53) Inline comments must end in full-stops, exclamation marks, or question marks
(#76) Inline comments must end in full-stops, exclamation marks, or question marks
(#78) Inline control structures are not allowed
(#85) Inline comments must end in full-stops, exclamation marks, or question marks
(#98) Inline control structures are not allowed
(#117) Inline comments must end in full-stops, exclamation marks, or question marks
(#120) Inline comments must end in full-stops, exclamation marks, or question marks
(#127) Inline comments must end in full-stops, exclamation marks, or question marks
(#129) Whitespace found at end of line
(#130) Whitespace found at end of line
(#157) Inline comments must end in full-stops, exclamation marks, or question marks
(#161) Inline comments must end in full-stops, exclamation marks, or question marks
(#167) Whitespace found at end of line
(#173) Whitespace found at end of line
(#180) Inline comments must end in full-stops, exclamation marks, or question marks
(#181) Line exceeds 132 characters; contains 139 characters
mod/bacs/lang/en/bacs.php
(#74) The string key "configsybonapikey" is not in the correct order, it should be before "preferedlanguage"
(#152) The string key "memory" is not in the correct order, it should be before "method"
mod/bacs/lang/es/bacs.php
(#74) The string key "configsybonapikey" is not in the correct order, it should be before "preferedlanguage"
(#152) The string key "memory" is not in the correct order, it should be before "method"
(#341) Unexpected string end, it should be a line feed after a semicolon
(#341) Expected 1 newline at end of file; 0 found
mod/bacs/lang/ru/bacs.php
(#73) The string key "configsybonapikey" is not in the correct order, it should be before "preferedlanguage"
(#152) The string key "memory" is not in the correct order, it should be before "method"
mod/bacs/lib.php
(#470) Whitespace found at end of line
(#471) Whitespace found at end of line
(#476) Inline comments must end in full-stops, exclamation marks, or question marks
(#479) Inline comments must end in full-stops, exclamation marks, or question marks
(#480) Inline comments must end in full-stops, exclamation marks, or question marks
(#480) Whitespace found at end of line
(#481) Inline comments must end in full-stops, exclamation marks, or question marks
(#481) Whitespace found at end of line
(#482) Inline comments must end in full-stops, exclamation marks, or question marks
(#484) Inline comments must end in full-stops, exclamation marks, or question marks
(#497) Inline comments must end in full-stops, exclamation marks, or question marks
(#497) 3 slashes comments are not allowed; use "// Comment." instead
(#511) Expected 0 spaces after opening bracket; 1 found
(#521) Whitespace found at end of line
(#528) Whitespace found at end of line
(#530) Inline comments must end in full-stops, exclamation marks, or question marks
(#532) Inline comments must start with a capital letter, digit or 3-dots sequence
(#535) Inline comments must end in full-stops, exclamation marks, or question marks
(#540) Inline comments must end in full-stops, exclamation marks, or question marks
(#543) Inline comments must end in full-stops, exclamation marks, or question marks
(#544) Expected at least 1 space before "-"; 0 found
(#544) Expected at least 1 space after "-"; 0 found
(#544) Expected 1 space before "-"; 0 found
(#544) Expected 1 space after "-"; 0 found
(#561) Expected at least 1 space before "-"; 0 found
(#561) Expected at least 1 space after "-"; 0 found
(#561) Expected 1 space before "-"; 0 found
(#561) Expected 1 space after "-"; 0 found
(#561) Expected at least 1 space before "+"; 0 found
(#561) Expected at least 1 space after "+"; 0 found
(#561) Expected 1 space before "+"; 0 found
(#561) Expected 1 space after "+"; 0 found
(#562) Expected at least 1 space before "+"; 0 found
(#562) Expected at least 1 space after "+"; 0 found
(#562) Expected 1 space before "+"; 0 found
(#562) Expected 1 space after "+"; 0 found
(#566) Inline comments must end in full-stops, exclamation marks, or question marks
(#567) Inline control structures are not allowed
(#568) Inline control structures are not allowed
(#571) Inline control structures are not allowed
(#572) Inline control structures are not allowed
(#574) Inline comments must end in full-stops, exclamation marks, or question marks
(#585) Inline control structures are not allowed
(#586) Inline control structures are not allowed
(#598) Inline comments must end in full-stops, exclamation marks, or question marks
(#604) Whitespace found at end of line
(#614) Whitespace found at end of line
(#628) Whitespace found at end of line
mod/bacs/locale_utils.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#29) Whitespace found at end of line
(#35) Variable "valueKey" must be all lower-case
(#39) Whitespace found at end of line
(#40) Variable "filtered_data" must not contain underscores.
(#41) Whitespace found at end of line
(#42) Variable "filtered_data" must not contain underscores.
(#43) Expected 1 space after FUNCTION keyword; 0 found
(#43) Variable "valueKey" must be all lower-case
(#44) Variable "valueKey" must be all lower-case
(#45) Variable "filtered_data" must not contain underscores.
(#45) Variable "filtered_data" must not contain underscores.
(#47) Expected 1 space after FUNCTION keyword; 0 found
(#47) Variable "valueKey" must be all lower-case
(#48) Variable "valueKey" must be all lower-case
(#55) Whitespace found at end of line
(#61) Variable "valueKey" must be all lower-case
(#64) Variable "valueKey" must be all lower-case
(#72) Whitespace found at end of line
(#78) Whitespace found at end of line
(#79) Variable "localized_name" must not contain underscores.
(#80) Whitespace found at end of line
(#83) Whitespace found at end of line
(#85) Variable "found_name" must not contain underscores.
(#86) Whitespace found at end of line
(#89) Variable "found_name" must not contain underscores.
(#94) Variable "found_name" must not contain underscores.
(#95) Variable "found_name" must not contain underscores.
(#97) Whitespace found at end of line
(#98) Variable "found_name" must not contain underscores.
(#99) Variable "found_name" must not contain underscores.
(#101) Whitespace found at end of line
(#102) Variable "found_name" must not contain underscores.
(#103) Variable "found_name" must not contain underscores.
(#105) Whitespace found at end of line
(#106) Variable "found_name" must not contain underscores.
(#107) Variable "localized_name" must not contain underscores.
(#107) Variable "found_name" must not contain underscores.
(#111) Whitespace found at end of line
(#112) Variable "localized_name" must not contain underscores.
(#113) Expected 1 newline at end of file; 0 found
(#113) Whitespace found at end of line
mod/bacs/mod_form.php
(#202) Line exceeds 132 characters; contains 140 characters
(#376) The use of backticks in strings is not recommended
(#376) The use of backticks in strings is not recommended
(#377) Whitespace found at end of line within string
(#383) The use of backticks in strings is not recommended
(#383) The use of backticks in strings is not recommended
mod/bacs/recalculate_incidents.php
(#53) Inline comments must end in full-stops, exclamation marks, or question marks
(#58) Inline control structures are not allowed
(#59) Whitespace found at end of line
(#62) Whitespace found at end of line
(#64) Expected 1 space after comma in argument list; 2 found
(#64) Expected 1 space between the comma and "$inparams". Found: 2 spaces
(#65) Whitespace found at end of line
(#68) Inline comments must end in full-stops, exclamation marks, or question marks
(#76) Whitespace found at end of line
(#77) Inline comments must end in full-stops, exclamation marks, or question marks
mod/bacs/settings.php
(#27) Blank line found at start of control structure
(#44) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#44) Closing parenthesis of a multi-line function call must be on a line by itself
(#78) There should be a comma after the last array item in a multi-line array.
mod/bacs/tasks.php
(#37) Whitespace found at end of line
(#43) Variable "valueKey" must be all lower-case
(#47) Whitespace found at end of line
(#48) Inline comments must start with a capital letter, digit or 3-dots sequence
(#48) Inline comments must end in full-stops, exclamation marks, or question marks
(#49) Variable "filtered_data" must not contain underscores.
(#50) Whitespace found at end of line
(#51) Variable "filtered_data" must not contain underscores.
(#52) Inline comments must start with a capital letter, digit or 3-dots sequence
(#52) Inline comments must end in full-stops, exclamation marks, or question marks
(#53) Expected 1 space after FUNCTION keyword; 0 found
(#53) Variable "valueKey" must be all lower-case
(#54) Variable "valueKey" must be all lower-case
(#55) Variable "filtered_data" must not contain underscores.
(#55) Variable "filtered_data" must not contain underscores.
(#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
(#58) Expected 1 space after FUNCTION keyword; 0 found
(#58) Variable "valueKey" must be all lower-case
(#59) Variable "valueKey" must be all lower-case
(#66) Whitespace found at end of line
(#72) Variable "valueKey" must be all lower-case
(#75) Variable "valueKey" must be all lower-case
(#107) Inline comments must start with a capital letter, digit or 3-dots sequence
(#107) Inline comments must end in full-stops, exclamation marks, or question marks
(#109) Inline comments must start with a capital letter, digit or 3-dots sequence
(#110) Inline comments must end in full-stops, exclamation marks, or question marks
(#112) Whitespace found at end of line
(#115) Expected "if (...) {\n"; found "if(...) {\n"
(#115) Expected 1 space after IF keyword; 0 found
(#119) Expected "if (...) {\n"; found "if(...) {\n"
(#119) Expected 1 space after IF keyword; 0 found
(#121) Line exceeds 132 characters; contains 133 characters
(#122) Whitespace found at end of line
(#123) Expected "if (...) {\n"; found "if(...) {\n"
(#123) Expected 1 space after IF keyword; 0 found
(#126) Expected "if (...) {\n"; found "if(...) {\n"
(#126) Expected 1 space after IF keyword; 0 found
(#127) Inline comments must start with a capital letter, digit or 3-dots sequence
(#127) Inline comments must end in full-stops, exclamation marks, or question marks
(#128) Variable "preferred_url" must not contain underscores.
(#129) Whitespace found at end of line
(#130) Variable "preferred_url" must not contain underscores.
(#131) Variable "preferred_url" must not contain underscores.
(#133) Whitespace found at end of line
(#134) Variable "preferred_url" must not contain underscores.
(#135) Variable "preferred_url" must not contain underscores.
(#137) Whitespace found at end of line
(#138) Inline comments must start with a capital letter, digit or 3-dots sequence
(#138) Inline comments must end in full-stops, exclamation marks, or question marks
(#139) Variable "preferred_url" must not contain underscores.
(#140) Variable "preferred_url" must not contain underscores.
(#143) Variable "preferred_url" must not contain underscores.
(#148) Expected "if (...) {\n"; found "if(...) {\n"
(#148) Expected 1 space after IF keyword; 0 found
(#151) Expected "if (...) {\n"; found "if(...) {\n"
(#151) Expected 1 space after IF keyword; 0 found

Javascript coding style problems

(1 errors, 0 warnings)

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

mod/bacs/standings.js
(#87) Parsing error: Unexpected token =

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(3 errors, 0 warnings)

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

mod/bacs/classes/cron_lib.php
(#576) Found comment starting with three or more slashes
(#567) Phpdocs for function cron_lib::cron_incidents has incomplete parameters list
mod/bacs/lib.php
(#497) Found comment starting with three or more slashes

Update savepoints problems

(1 errors, 0 warnings)

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

mod/bacs/db/upgrade.php
version 2025060900 has wrong savepoint call with version 2025061500

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, 8 warnings)

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

mod/bacs/templates/contest_header.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation info, line 4: Empty heading. (ter"> <h1 class="mb-0"></h1>)
mod/bacs/templates/contest_nav_menu.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation info, line 13: The “type” attribute is unnecessary for JavaScript resources. (</ul><script type='text/javascript'> func)
(#1) HTML Validation info, line 74: The “type” attribute is unnecessary for JavaScript resources. (v> <script type='text/javascript'> )
mod/bacs/templates/results.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 22: Element “style” not allowed as child of element “table” in this context. (Suppressing further errors from this subtree.) (ccordion"> <style> )
(#1) HTML Validation error, line 41: Row 1 of a row group established by a “thead” element has no cells beginning on it. (> <tr> </tr></the)
mod/bacs/templates/standings.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation info, line 3: The “type” attribute is unnecessary for JavaScript resources. (d><body><script type='text/javascript'> f)
(#1) HTML Validation error, line 91: Attribute “value” not allowed on element “select” at this point. ( <select id='standings_mode_select' value=2 onchange='change_standings_mode();'> )
(#1) HTML Validation info, line 103: The “type” attribute is unnecessary for JavaScript resources. (</table><script type='text/javascript' src='standings.js'></scri)
(#1) HTML Validation info, line 105: The “type” attribute is unnecessary for JavaScript resources. (/script><script type='text/javascript'> v)
mod/bacs/templates/tasklist.mustache
(#1) Example context missing (@template section not found.)

Gherkin .feature problems

(0 errors, 0 warnings)

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