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

(249 errors, 196 warnings)

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

blocks/use_stats/adminlib.php
(#47) Possible useless method overriding detected
(#99) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#110) Line exceeds 132 characters; contains 133 characters
(#115) Line exceeds 132 characters; contains 133 characters
blocks/use_stats/ajax/services.php
(#33) Inline comments must end in full-stops, exclamation marks, or question marks
(#39) Inline comments must start with a capital letter, digit or 3-dots sequence
(#39) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/use_stats/block_use_stats.php
(#32) "require_once" must be immediately followed by an open parenthesis
(#36) Visibility must be declared on method "init"
(#44) Visibility must be declared on method "has_config"
(#51) Visibility must be declared on method "instance_allow_config"
(#60) Visibility must be declared on method "applicable_formats"
(#67) Visibility must be declared on method "get_content"
(#98) Whitespace found at end of line
(#107) Inline comments must end in full-stops, exclamation marks, or question marks
(#134) Line exceeds 132 characters; contains 166 characters
(#143) Inline comments must end in full-stops, exclamation marks, or question marks
(#177) Space found before semicolon; expected "'usestats-shadow';" but found "'usestats-shadow' ;"
(#195) Line exceeds maximum limit of 180 characters; contains 203 characters
(#207) Line exceeds 132 characters; contains 142 characters
(#224) Visibility must be declared on method "cron_task"
(#240) Usage of ELSEIF not allowed; use ELSE IF instead
(#274) Usage of ELSEIF not allowed; use ELSE IF instead
(#275) Line exceeds 132 characters; contains 133 characters
(#295) Space found before first semicolon of FOR loop
(#295) Space found before semicolon; expected "1;" but found "1 ;"
(#317) Line exceeds 132 characters; contains 157 characters
(#318) Line exceeds 132 characters; contains 137 characters
(#319) Usage of ELSEIF not allowed; use ELSE IF instead
(#325) Line exceeds 132 characters; contains 166 characters
(#330) Expected 1 space after "%"; 0 found
(#337) Expected 1 space after "%"; 0 found
(#358) Visibility must be declared on method "cache_ttl_task"
(#380) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#390) Visibility must be declared on method "cleanup_task"
(#408) Usage of ELSEIF not allowed; use ELSE IF instead
(#422) Visibility must be declared on method "prepare_coursetable"
(#435) Inline comments must end in full-stops, exclamation marks, or question marks
(#438) Whitespace found at end of line
(#447) Whitespace found at end of line
(#453) Whitespace found at end of line
(#455) Inline comments must end in full-stops, exclamation marks, or question marks
(#465) Whitespace found at end of line
(#471) Whitespace found at end of line
(#494) Line exceeds 132 characters; contains 156 characters
blocks/use_stats/db/access.php
(#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/>.".
(#17) Expected 1 space before comment text but found 3; use block comment if you need indentation
(#22) Expected 1 space before comment text but found 4; use block comment if you need indentation
(#25) Expected 1 space before comment text but found 11; use block comment if you need indentation
(#26) Expected 1 space before comment text but found 11; use block comment if you need indentation
(#29) Expected 1 space before comment text but found 3; use block comment if you need indentation
(#35) Inline doc block comments are not allowed; use "// Comment." instead
blocks/use_stats/db/mnet.php
(#19) Inline doc block comments are not allowed; use "// Comment." instead
blocks/use_stats/db/tasks.php
(#48) Whitespace found at end of line
blocks/use_stats/db/upgrade.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Whitespace found at end of line
(#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/>.".
(#17) Inline comments must end in full-stops, exclamation marks, or question marks
(#41) Inline comments must end in full-stops, exclamation marks, or question marks
(#41) No space found before comment text; expected "// New version in version.php" but found "//New version in version.php"
(#45) Inline comments must end in full-stops, exclamation marks, or question marks
(#45) Line indented incorrectly; expected at least 8 spaces, found 4
(#60) Inline comments must end in full-stops, exclamation marks, or question marks
(#62) Whitespace found at end of line
(#64) Inline comments must end in full-stops, exclamation marks, or question marks
(#78) Inline comments must end in full-stops, exclamation marks, or question marks
(#82) Inline comments must end in full-stops, exclamation marks, or question marks
(#87) Inline comments must start with a capital letter, digit or 3-dots sequence
(#87) Inline comments must end in full-stops, exclamation marks, or question marks
(#103) Space found before first semicolon of FOR loop
(#103) Space found before semicolon; expected "1;" but found "1 ;"
(#109) Expected "if (...) {\n"; found "if (...){\n"
(#124) Line exceeds 132 characters; contains 162 characters
(#129) Expected 1 space after "%"; 0 found
(#132) Inline comments must start with a capital letter, digit or 3-dots sequence
(#132) Inline comments must end in full-stops, exclamation marks, or question marks
(#139) Inline comments must start with a capital letter, digit or 3-dots sequence
(#139) Inline comments must end in full-stops, exclamation marks, or question marks
(#145) Inline comments must start with a capital letter, digit or 3-dots sequence
(#145) Inline comments must end in full-stops, exclamation marks, or question marks
(#147) Line indented incorrectly; expected 4 spaces, found 5
(#147) Closing brace indented incorrectly; expected 4 spaces, found 5
(#149) Inline comments must end in full-stops, exclamation marks, or question marks
(#153) Inline comments must start with a capital letter, digit or 3-dots sequence
(#156) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#158) Inline comments must start with a capital letter, digit or 3-dots sequence
(#158) Inline comments must end in full-stops, exclamation marks, or question marks
(#160) Line indented incorrectly; expected 4 spaces, found 5
(#160) Closing brace indented incorrectly; expected 4 spaces, found 5
(#162) Inline comments must end in full-stops, exclamation marks, or question marks
(#176) Line indented incorrectly; expected 4 spaces, found 5
(#176) Closing brace indented incorrectly; expected 4 spaces, found 5
blocks/use_stats/detail.php
(#33) Inline comments must end in full-stops, exclamation marks, or question marks
(#55) Usage of ELSEIF not allowed; use ELSE IF instead
(#74) Inline comments must start with a capital letter, digit or 3-dots sequence
(#108) Expected 1 space before "=>"; 0 found
(#111) Line exceeds 132 characters; contains 136 characters
(#157) Variable "OUPTUT" must be all lower-case
blocks/use_stats/edit_form.php
(#42) Whitespace found at end of line
(#43) Whitespace found at end of line
blocks/use_stats/js/notif_keepalive.php
(#27) Inline comments must start with a capital letter, digit or 3-dots sequence
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
(#39) Inline comments must start with a capital letter, digit or 3-dots sequence
(#39) Inline comments must end in full-stops, exclamation marks, or question marks
(#43) Empty IF statement detected
(#45) Inline comments must end in full-stops, exclamation marks, or question marks
(#45) This comment is 67% valid code; is this commented out code?
blocks/use_stats/lang/de/block_use_stats.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/use_stats/lang/en/block_use_stats.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/use_stats/lang/fr/block_use_stats.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/use_stats/lib.php
(#63) Usage of ELSEIF not allowed; use ELSE IF instead
(#83) Whitespace found at end of line
(#85) Whitespace found at end of line
blocks/use_stats/locallib.php
(#60) Usage of ELSEIF not allowed; use ELSE IF instead
(#71) Space found before semicolon; expected "$for;" but found "$for ;"
(#86) Space found before semicolon; expected "" AND {$courseparm} = $course->id ";" but found "" AND {$courseparm} = $course->id " ;"
(#90) Usage of ELSEIF not allowed; use ELSE IF instead
(#92) Space found before semicolon; expected "" AND {$courseparm} = $course ";" but found "" AND {$courseparm} = $course " ;"
(#96) Usage of ELSEIF not allowed; use ELSE IF instead
(#142) Whitespace found at end of line within string
(#150) Usage of ELSEIF not allowed; use ELSE IF instead
(#173) Empty ELSE statement detected
(#174) Inline comments must end in full-stops, exclamation marks, or question marks
(#204) Inline comments must start with a capital letter, digit or 3-dots sequence
(#204) Inline comments must end in full-stops, exclamation marks, or question marks
(#236) Inline comments must start with a capital letter, digit or 3-dots sequence
(#238) Space found before first semicolon of FOR loop
(#238) Space found before second semicolon of FOR loop
(#238) Space found before semicolon; expected "0;" but found "0 ;"
(#238) Space found before semicolon; expected ");" but found ") ;"
(#243) Inline comments must end in full-stops, exclamation marks, or question marks
(#253) Inline comments must end in full-stops, exclamation marks, or question marks
(#269) Line exceeds 132 characters; contains 145 characters
(#272) Inline comments must start with a capital letter, digit or 3-dots sequence
(#272) Inline comments must end in full-stops, exclamation marks, or question marks
(#314) Inline comments must end in full-stops, exclamation marks, or question marks
(#314) Whitespace found at end of line
(#335) Inline comments must end in full-stops, exclamation marks, or question marks
(#348) Line exceeds 132 characters; contains 155 characters
(#352) Inline comments must end in full-stops, exclamation marks, or question marks
(#352) Whitespace found at end of line
(#359) Inline comments must start with a capital letter, digit or 3-dots sequence
(#359) Inline comments must end in full-stops, exclamation marks, or question marks
(#361) Inline comments must end in full-stops, exclamation marks, or question marks
(#364) Inline comments must end in full-stops, exclamation marks, or question marks
(#376) Line indented incorrectly; expected 20 spaces, found 19
(#376) Closing brace indented incorrectly; expected 20 spaces, found 19
(#377) Line indented incorrectly; expected 24 spaces, found 23
(#379) Line indented incorrectly; expected 24 spaces, found 23
(#381) Line indented incorrectly; expected 20 spaces, found 19
(#386) Inline comments must end in full-stops, exclamation marks, or question marks
(#399) Inline comments must start with a capital letter, digit or 3-dots sequence
(#405) Line exceeds 132 characters; contains 135 characters
(#406) Inline comments must start with a capital letter, digit or 3-dots sequence
(#406) Inline comments must end in full-stops, exclamation marks, or question marks
(#406) This comment is 50% valid code; is this commented out code?
(#418) This comment is 75% valid code; is this commented out code?
(#418) Inline comments must start with a capital letter, digit or 3-dots sequence
(#419) This comment is 67% valid code; is this commented out code?
(#420) Inline comments must end in full-stops, exclamation marks, or question marks
(#420) This comment is 69% valid code; is this commented out code?
(#441) Line exceeds 132 characters; contains 136 characters
(#452) Line exceeds 132 characters; contains 134 characters
(#509) Inline comments must end in full-stops, exclamation marks, or question marks
(#512) Line exceeds 132 characters; contains 139 characters
(#517) Line exceeds 132 characters; contains 137 characters
(#531) Inline comments must end in full-stops, exclamation marks, or question marks
(#533) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#534) Expected 1 space after "!="; newline found
(#534) Whitespace found at end of line
(#535) Expected 1 space after "+"; newline found
(#535) Whitespace found at end of line
(#536) Expected 1 space after "+"; newline found
(#536) Whitespace found at end of line
(#540) Expected 1 space after "!="; newline found
(#540) Whitespace found at end of line
(#541) Expected 1 space after "+"; newline found
(#541) Whitespace found at end of line
(#542) Expected 1 space after "+"; newline found
(#542) Whitespace found at end of line
(#554) Inline comments must end in full-stops, exclamation marks, or question marks
(#556) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#559) Line exceeds 132 characters; contains 133 characters
(#571) Inline comments must start with a capital letter, digit or 3-dots sequence
(#571) Inline comments must end in full-stops, exclamation marks, or question marks
(#577) Inline comments must start with a capital letter, digit or 3-dots sequence
(#577) Inline comments must end in full-stops, exclamation marks, or question marks
(#593) Line exceeds 132 characters; contains 161 characters
(#599) Line exceeds 132 characters; contains 159 characters
(#608) Inline comments must start with a capital letter, digit or 3-dots sequence
(#608) Inline comments must end in full-stops, exclamation marks, or question marks
(#624) Line exceeds 132 characters; contains 165 characters
(#630) Line exceeds 132 characters; contains 163 characters
(#638) Inline comments must start with a capital letter, digit or 3-dots sequence
(#638) Inline comments must end in full-stops, exclamation marks, or question marks
(#645) Inline comments must start with a capital letter, digit or 3-dots sequence
(#645) Inline comments must end in full-stops, exclamation marks, or question marks
(#681) Whitespace found at end of line
(#691) Inline comments must end in full-stops, exclamation marks, or question marks
(#713) Line exceeds 132 characters; contains 143 characters
(#728) Usage of ELSEIF not allowed; use ELSE IF instead
(#732) Inline comments must start with a capital letter, digit or 3-dots sequence
(#732) Inline comments must end in full-stops, exclamation marks, or question marks
(#775) Usage of ELSEIF not allowed; use ELSE IF instead
(#800) Inline comments must start with a capital letter, digit or 3-dots sequence
(#800) Inline comments must end in full-stops, exclamation marks, or question marks
(#805) Whitespace found at end of line
(#829) Inline comments must start with a capital letter, digit or 3-dots sequence
(#829) Inline comments must end in full-stops, exclamation marks, or question marks
(#832) Inline control structures are not allowed
(#832) Whitespace found at end of line
(#833) Whitespace found at end of line
(#835) Inline comments must start with a capital letter, digit or 3-dots sequence
(#835) Inline comments must end in full-stops, exclamation marks, or question marks
(#842) Whitespace found at end of line
(#849) Inline control structures are not allowed
(#853) Inline comments must start with a capital letter, digit or 3-dots sequence
(#853) Inline comments must end in full-stops, exclamation marks, or question marks
(#878) Line exceeds maximum limit of 180 characters; contains 207 characters
(#923) Whitespace found at end of line
(#933) Inline control structures are not allowed
(#934) Inline control structures are not allowed
(#1005) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#1009) Inline control structures are not allowed
(#1040) Whitespace found at end of line
(#1049) Expected 1 space after "="; 0 found
(#1050) Line exceeds 132 characters; contains 163 characters
(#1051) Line exceeds 132 characters; contains 161 characters
(#1074) Usage of ELSEIF not allowed; use ELSE IF instead
(#1080) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/use_stats/renderer.php
(#31) Visibility must be declared on method "per_course"
(#41) Line exceeds 132 characters; contains 167 characters
(#42) Whitespace found at end of line
(#52) Line exceeds 132 characters; contains 135 characters
(#53) Line exceeds 132 characters; contains 140 characters
(#64) Line exceeds 132 characters; contains 137 characters
(#74) Line exceeds maximum limit of 180 characters; contains 213 characters
(#88) Whitespace found at end of line
(#98) Visibility must be declared on method "change_params_form"
(#107) Usage of ELSEIF not allowed; use ELSE IF instead
(#110) Usage of ELSEIF not allowed; use ELSE IF instead
(#119) Inline comments must start with a capital letter, digit or 3-dots sequence
(#119) Inline comments must end in full-stops, exclamation marks, or question marks
(#132) Line exceeds 132 characters; contains 135 characters
(#138) Commas (,) must be followed by white space.
(#138) Commas (,) must be followed by white space.
(#138) Commas (,) must be followed by white space.
(#138) Commas (,) must be followed by white space.
(#138) Commas (,) must be followed by white space.
(#138) Commas (,) must be followed by white space.
(#139) Space found before semicolon; expected "'';" but found "'' ;"
(#150) Whitespace found at end of line
(#160) Visibility must be declared on method "button_pdf"
(#164) Line exceeds 132 characters; contains 156 characters
blocks/use_stats/rpclib.php
(#36) Inline doc block comments are not allowed; use "// Comment." instead
(#61) 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
(#66) This comment is 67% valid code; is this commented out code?
(#67) Line exceeds 132 characters; contains 143 characters
(#79) Inline comments must end in full-stops, exclamation marks, or question marks
(#80) Expected "if (...) {\n"; found "if (...){\n"
(#97) Inline comments must end in full-stops, exclamation marks, or question marks
(#102) Line exceeds 132 characters; contains 151 characters
(#115) Whitespace found at end of line
(#117) Whitespace found at end of line
(#118) Whitespace found at end of line
(#119) Whitespace found at end of line
(#121) This comment is 67% valid code; is this commented out code?
(#121) Variable "json_response" must not contain underscores.
(#121) Line exceeds maximum limit of 180 characters; contains 188 characters
(#129) Inline comments must end in full-stops, exclamation marks, or question marks
(#129) This comment is 64% valid code; is this commented out code?
(#130) Variable "auth_response" must not contain underscores.
(#130) Line exceeds 132 characters; contains 153 characters
(#131) Variable "json_response" must not contain underscores.
(#132) Variable "auth_response" must not contain underscores.
(#134) Variable "auth_response" must not contain underscores.
(#139) This comment is 64% valid code; is this commented out code?
(#141) This comment is 62% valid code; is this commented out code?
(#151) Whitespace found at end of line
(#153) Whitespace found at end of line
(#167) Variable "json_response" must not contain underscores.
(#182) Variable "totalTime" must be all lower-case
(#183) Variable "totalTimeCourse" must be all lower-case
(#184) Variable "totalTimeModule" must be all lower-case
(#186) Inline comments must start with a capital letter, digit or 3-dots sequence
(#186) Inline comments must end in full-stops, exclamation marks, or question marks
(#186) This comment is 62% valid code; is this commented out code?
(#189) Variable "aLog" must be all lower-case
(#190) Variable "aLog" must be all lower-case
(#192) Variable "totalTime" must be all lower-case
(#192) Variable "totalTime" must be all lower-case
(#195) Variable "aLog" must be all lower-case
(#195) Variable "totalTimeCourse" must be all lower-case
(#196) Variable "totalTimeCourse" must be all lower-case
(#196) Variable "aLog" must be all lower-case
(#198) Variable "totalTimeCourse" must be all lower-case
(#198) Variable "aLog" must be all lower-case
(#198) Variable "totalTimeCourse" must be all lower-case
(#198) Variable "aLog" must be all lower-case
(#203) Variable "aLog" must be all lower-case
(#203) Variable "totalTimeModule" must be all lower-case
(#204) Variable "totalTimeModule" must be all lower-case
(#204) Variable "aLog" must be all lower-case
(#204) Variable "aLog" must be all lower-case
(#205) Usage of ELSEIF not allowed; use ELSE IF instead
(#205) Variable "aLog" must be all lower-case
(#205) Variable "totalTimeModule" must be all lower-case
(#205) Variable "aLog" must be all lower-case
(#206) Variable "totalTimeModule" must be all lower-case
(#206) Variable "aLog" must be all lower-case
(#206) Variable "aLog" must be all lower-case
(#208) Variable "totalTimeModule" must be all lower-case
(#208) Variable "aLog" must be all lower-case
(#208) Variable "aLog" must be all lower-case
(#208) Variable "totalTimeModule" must be all lower-case
(#208) Variable "aLog" must be all lower-case
(#208) Variable "aLog" must be all lower-case
(#208) Line exceeds 132 characters; contains 133 characters
(#212) Variable "aLog" must be all lower-case
(#215) Variable "totalTime" must be all lower-case
(#215) Expected 1 space before "/"; 0 found
(#215) Expected 1 space after "/"; 0 found
(#226) Variable "totalTimeCourse" must be all lower-case
(#230) Inline comments must start with a capital letter, digit or 3-dots sequence
(#239) Variable "totalTimeModule" must be all lower-case
(#242) Inline comments must start with a capital letter, digit or 3-dots sequence
(#273) Inline comments must start with a capital letter, digit or 3-dots sequence
(#273) Inline comments must end in full-stops, exclamation marks, or question marks
(#273) This comment is 60% valid code; is this commented out code?
(#274) Whitespace found at end of line
(#275) Variable "json_response" must not contain underscores.
(#281) This comment is 67% valid code; is this commented out code?
(#281) Inline comments must start with a capital letter, digit or 3-dots sequence
(#281) Whitespace found at end of line
(#282) Inline comments must end in full-stops, exclamation marks, or question marks
(#283) Whitespace found at end of line
(#290) Inline comments must start with a capital letter, digit or 3-dots sequence
(#290) Inline comments must end in full-stops, exclamation marks, or question marks
(#293) This comment is 73% valid code; is this commented out code?
(#293) Inline comments must start with a capital letter, digit or 3-dots sequence
(#294) Inline comments must end in full-stops, exclamation marks, or question marks
(#294) This comment is 73% valid code; is this commented out code?
(#297) Whitespace found at end of line
(#298) Variable "mnet_host" must not contain underscores.
(#299) Variable "mnet_host" must not contain underscores.
(#300) Variable "mnet_host" must not contain underscores.
(#304) Variable "json_response" must not contain underscores.
(#312) Inline comments must start with a capital letter, digit or 3-dots sequence
(#312) Inline comments must end in full-stops, exclamation marks, or question marks
(#312) This comment is 63% valid code; is this commented out code?
(#316) Variable "json_response" must not contain underscores.
(#324) Variable "json_response" must not contain underscores.
(#333) Variable "json_response" must not contain underscores.
(#343) Inline comments must start with a capital letter, digit or 3-dots sequence
(#343) Inline comments must end in full-stops, exclamation marks, or question marks
(#343) This comment is 64% valid code; is this commented out code?
(#344) Line exceeds 132 characters; contains 168 characters
(#351) Whitespace found at end of line
(#353) Whitespace found at end of line
(#354) Whitespace found at end of line
(#355) Whitespace found at end of line
(#357) Variable "json_response" must not contain underscores.
(#357) Line exceeds 132 characters; contains 162 characters
(#365) Inline comments must end in full-stops, exclamation marks, or question marks
(#365) This comment is 67% valid code; is this commented out code?
(#366) Variable "auth_response" must not contain underscores.
(#366) Line exceeds 132 characters; contains 153 characters
(#367) Variable "json_response" must not contain underscores.
(#368) Variable "auth_response" must not contain underscores.
(#370) Variable "auth_response" must not contain underscores.
(#375) Inline comments must start with a capital letter, digit or 3-dots sequence
(#375) Inline comments must end in full-stops, exclamation marks, or question marks
(#375) This comment is 67% valid code; is this commented out code?
(#377) Inline comments must end in full-stops, exclamation marks, or question marks
(#396) Variable "json_response" must not contain underscores.
(#406) Variable "json_response" must not contain underscores.
(#429) Inline comments must start with a capital letter, digit or 3-dots sequence
(#429) Inline comments must end in full-stops, exclamation marks, or question marks
(#429) This comment is 60% valid code; is this commented out code?
(#431) Variable "json_response" must not contain underscores.
(#437) This comment is 67% valid code; is this commented out code?
(#437) Inline comments must start with a capital letter, digit or 3-dots sequence
(#437) Whitespace found at end of line
(#438) Inline comments must end in full-stops, exclamation marks, or question marks
(#439) Whitespace found at end of line
(#446) Inline comments must start with a capital letter, digit or 3-dots sequence
(#446) Inline comments must end in full-stops, exclamation marks, or question marks
(#453) Variable "mnet_host" must not contain underscores.
(#454) Variable "mnet_host" must not contain underscores.
(#455) Variable "mnet_host" must not contain underscores.
(#457) Whitespace found at end of line
(#459) Variable "json_response" must not contain underscores.
(#470) Variable "json_response" must not contain underscores.
(#479) Variable "json_response" must not contain underscores.
(#489) Inline comments must start with a capital letter, digit or 3-dots sequence
(#489) Inline comments must end in full-stops, exclamation marks, or question marks
(#489) This comment is 64% valid code; is this commented out code?
(#490) Line exceeds maximum limit of 180 characters; contains 202 characters
blocks/use_stats/settings.php
(#19) Inline doc block comments are not allowed; use "// Comment." instead
(#27) "require_once" must be immediately followed by an open parenthesis
(#47) Line exceeds 132 characters; contains 144 characters
(#50) Line exceeds 132 characters; contains 144 characters
(#53) Line exceeds maximum limit of 180 characters; contains 183 characters
(#55) Line exceeds 132 characters; contains 156 characters
(#60) This comment is 67% valid code; is this commented out code?
(#61) Line exceeds 132 characters; contains 136 characters
(#64) Line exceeds 132 characters; contains 134 characters
(#71) Line exceeds 132 characters; contains 150 characters
(#74) Line exceeds 132 characters; contains 136 characters
(#79) Line exceeds 132 characters; contains 146 characters
(#82) Space found before first semicolon of FOR loop
(#82) Space found before second semicolon of FOR loop
(#82) Space found before semicolon; expected "1;" but found "1 ;"
(#82) Space found before semicolon; expected "6;" but found "6 ;"
(#88) Line exceeds 132 characters; contains 136 characters
(#93) Line exceeds 132 characters; contains 137 characters
(#101) Line exceeds 132 characters; contains 137 characters
(#107) Line exceeds 132 characters; contains 143 characters
(#110) Line exceeds 132 characters; contains 152 characters
blocks/use_stats/version.php
(#32) Inline comments must end in full-stops, exclamation marks, or question marks
(#35) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/use_stats/xlib.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.

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

(110 errors, 9 warnings)

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

blocks/use_stats/adminlib.php
(#17) No one-line description found in phpdocs for file
(#41) Phpdocs for function admin_setting_configdatetime::__construct has incomplete parameters list
(#29) Class admin_setting_configdatetime does not have @copyright tag
(#19) Category blocks is not valid
blocks/use_stats/ajax/services.php
(#25) No one-line description found in phpdocs for file
(#25) File-level phpdocs block does not have @copyright tag
(#25) File-level phpdocs block does not have @license tag
(#19) Category blocks is not valid
blocks/use_stats/block_use_stats.php
(#34) Class block_use_stats is not documented
(#36) Function block_use_stats::init is not documented
(#422) Function block_use_stats::prepare_coursetable is not documented
(#492) Function block_use_stats::_seeother is not documented
(#21) Category blocks is not valid
blocks/use_stats/classes/event/block_use_stats_keepalive.php
(#17) File-level phpdocs block is not found
(#44) Phpdocs for function block_use_stats_keepalive::create_from_cm has incomplete parameters list
(#30) Class block_use_stats_keepalive does not have @copyright tag
(#30) Class block_use_stats_keepalive does not have @license tag
(#30) Package is not specified for class block_use_stats_keepalive. It is also not specified in file-level phpdocs
(#25) Category blocks is not valid
blocks/use_stats/classes/task/cache_ttl_task.php
(#17) No one-line description found in phpdocs for file
(#28) Class cache_ttl_task does not have @copyright tag
(#28) Class cache_ttl_task does not have @license tag
blocks/use_stats/classes/task/cleanup_task.php
(#17) No one-line description found in phpdocs for file
(#28) Class cleanup_task does not have @copyright tag
(#28) Class cleanup_task does not have @license tag
blocks/use_stats/classes/task/compile_task.php
(#17) No one-line description found in phpdocs for file
(#29) Class compile_task does not have @copyright tag
(#29) Class compile_task does not have @license tag
(#19) Category blocks is not valid
blocks/use_stats/db/access.php
(#) File-level phpdocs block is not found
(#37) Category blocks is not valid
blocks/use_stats/db/caches.php
(#17) File-level phpdocs block is not found
blocks/use_stats/db/mnet.php
(#17) File-level phpdocs block is not found
(#23) Category blocks is not valid
blocks/use_stats/db/upgrade.php
(#19) File-level phpdocs block is not found
(#28) Phpdocs for function xmldb_block_use_stats_upgrade has incomplete parameters list
(#28) Package is not specified for function xmldb_block_use_stats_upgrade. It is also not specified in file-level phpdocs
(#23) Category blocks is not valid
blocks/use_stats/detail.php
(#25) File-level phpdocs block is not found
(#19) Category blocks is not valid
blocks/use_stats/edit_form.php
(#17) File-level phpdocs block is not found
(#36) Function block_use_stats_edit_form::specific_definition is not documented
(#29) Package is not specified for class block_use_stats_edit_form. It is also not specified in file-level phpdocs
(#22) Package blocks_use_stats is not valid
(#23) Category blocks is not valid
blocks/use_stats/js/notif_keepalive.php
(#24) File-level phpdocs block is not found
(#19) Category blocks is not valid
blocks/use_stats/lang/de/block_use_stats.php
(#2) Empty line found after PHP open tag
(#4) File-level phpdocs block is not found
blocks/use_stats/lang/en/block_use_stats.php
(#2) Empty line found after PHP open tag
(#4) File-level phpdocs block is not found
blocks/use_stats/lang/fr/block_use_stats.php
(#2) Empty line found after PHP open tag
(#4) File-level phpdocs block is not found
blocks/use_stats/lib.php
(#17) File-level phpdocs block is not found
(#28) Function block_use_stats_setup_theme_requires is not documented
(#34) Function block_use_stats_setup_theme_notification is not documented
(#28) Package is not specified for function block_use_stats_setup_theme_requires. It is also not specified in file-level phpdocs
(#34) Package is not specified for function block_use_stats_setup_theme_notification. It is also not specified in file-level phpdocs
(#23) Category blocks is not valid
blocks/use_stats/locallib.php
(#17) File-level phpdocs block is not found
(#21) Function debug_trace is not documented
(#940) Function block_use_stats_render_aggregate is not documented
(#1027) Function block_use_stats_is_login_event is not documented
(#1031) Function block_use_stats_is_logout_event is not documented
(#191) Phpdocs for function use_stats_aggregate_logs has incomplete parameters list
(#706) Phpdocs for function use_stats_site_aggregate_time has incomplete parameters list
(#872) Phpdocs for function use_stats_render has incomplete parameters list
(#922) Phpdocs for function block_use_stats_format_time has incomplete parameters list
(#21) Package is not specified for function debug_trace. It is also not specified in file-level phpdocs
(#38) Package is not specified for function use_stats_extract_logs. It is also not specified in file-level phpdocs
(#188) Package is not specified for function use_stats_aggregate_logs. It is also not specified in file-level phpdocs
(#676) Package is not specified for function use_stats_fetch_ahead. It is also not specified in file-level phpdocs
(#703) Package is not specified for function use_stats_site_aggregate_time. It is also not specified in file-level phpdocs
(#872) Package is not specified for function use_stats_render. It is also not specified in file-level phpdocs
(#883) Package is not specified for function use_stats_add_module_from_context. It is also not specified in file-level phpdocs
(#922) Package is not specified for function block_use_stats_format_time. It is also not specified in file-level phpdocs
(#940) Package is not specified for function block_use_stats_render_aggregate. It is also not specified in file-level phpdocs
(#1027) Package is not specified for function block_use_stats_is_login_event. It is also not specified in file-level phpdocs
(#1031) Package is not specified for function block_use_stats_is_logout_event. It is also not specified in file-level phpdocs
(#1035) Package is not specified for function block_use_stats_get_log_range. It is also not specified in file-level phpdocs
(#1056) Package is not specified for function block_use_stats_get_sql_params. It is also not specified in file-level phpdocs
(#28) Package blocks_use_stats is not valid
(#29) Category blocks is not valid
blocks/use_stats/renderer.php
(#17) File-level phpdocs block is not found
(#29) Class block_use_stats_renderer is not documented
(#31) Function block_use_stats_renderer::per_course is not documented
(#87) There is no description in phpdocs for function change_params_form
(#149) There is no description in phpdocs for function button_pdf
(#92) Phpdocs for function block_use_stats_renderer::change_params_form has incomplete parameters list
(#154) Phpdocs for function block_use_stats_renderer::button_pdf has incomplete parameters list
(#89) Not recommended phpdocs tag @global used
(#89) Not recommended phpdocs tag @global used
(#89) Not recommended phpdocs tag @global used
(#151) Not recommended phpdocs tag @global used
(#151) Not recommended phpdocs tag @global used
(#151) Not recommended phpdocs tag @global used
(#29) Package is not specified for class block_use_stats_renderer. It is also not specified in file-level phpdocs
(#23) Category blocks is not valid
blocks/use_stats/rpclib.php
(#17) File-level phpdocs block is not found
(#342) Function use_stats_rpc_get_stats_wrapped is not documented
(#488) Function use_stats_rpc_get_scores_wrapped is not documented
(#114) Phpdocs for function use_stats_rpc_get_stats has incomplete parameters list
(#350) Phpdocs for function use_stats_rpc_get_scores has incomplete parameters list
(#114) Invalid inline phpdocs tag @param found
(#114) Invalid inline phpdocs tag @param found
(#350) Invalid inline phpdocs tag @param found
(#350) Invalid inline phpdocs tag @param found
(#52) Package is not specified for function use_stats_invoke_local_user. It is also not specified in file-level phpdocs
(#111) Package is not specified for function use_stats_rpc_get_stats. It is also not specified in file-level phpdocs
(#342) Package is not specified for function use_stats_rpc_get_stats_wrapped. It is also not specified in file-level phpdocs
(#347) Package is not specified for function use_stats_rpc_get_scores. It is also not specified in file-level phpdocs
(#488) Package is not specified for function use_stats_rpc_get_scores_wrapped. It is also not specified in file-level phpdocs
(#23) Category blocks is not valid
blocks/use_stats/settings.php
(#17) File-level phpdocs block is not found
(#21) Category blocks is not valid
blocks/use_stats/version.php
(#21) Category blocks is not valid
blocks/use_stats/xlib.php
(#27) Function block_use_stats_get_coursetable is not documented
(#17) No one-line description found in phpdocs for file
(#19) Category 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]