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

(230 errors, 158 warnings)

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

grade/report/sitewideuser/categorylib.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#3) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#3) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#3) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#3) Line 6 of the opening comment must start "// (at your option) any later version.".
(#3) Line 7 of the opening comment must start "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#3) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#4) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) Line 12 of the opening comment must start "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#10) Whitespace found at end of line
(#18) Expected MOODLE_INTERNAL check or config.php inclusion
(#18) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#18) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#18) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#21) 3 slashes comments are not allowed; use "// Comment." instead
(#22) Inline comments must end in full-stops, exclamation marks, or question marks
(#22) 3 slashes comments are not allowed; use "// Comment." instead
(#27) Whitespace found at end of line
(#33) Inline comments must end in full-stops, exclamation marks, or question marks
(#40) Inline comments must end in full-stops, exclamation marks, or question marks
(#63) Whitespace found at end of line
(#69) Line indented incorrectly; expected at least 4 spaces, found 0
(#70) Inline comments must end in full-stops, exclamation marks, or question marks
(#70) Line indented incorrectly; expected at least 4 spaces, found 0
(#78) Expected "if (...) {\n"; found "if(...) {\n"
(#90) Expected "if (...) {\n"; found "if(...) {\n"
(#104) Expected 1 space before ">="; 0 found
(#104) Expected 1 space after ">="; 0 found
grade/report/sitewideuser/index.php
(#25) "require_once" must be immediately followed by an open parenthesis
(#26) "require_once" must be immediately followed by an open parenthesis
(#27) "require_once" must be immediately followed by an open parenthesis
(#28) "require_once" must be immediately followed by an open parenthesis
(#29) "require_once" must be immediately followed by an open parenthesis
(#30) "require_once" must be immediately followed by an open parenthesis
(#32) Inline comments must start with a capital letter, digit or 3-dots sequence
(#32) Inline comments must end in full-stops, exclamation marks, or question marks
(#40) Inline comments must start with a capital letter, digit or 3-dots sequence
(#40) Inline comments must end in full-stops, exclamation marks, or question marks
(#49) Inline comments must start with a capital letter, digit or 3-dots sequence
(#49) Inline comments must end in full-stops, exclamation marks, or question marks
(#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
(#69) No space found before comment text; expected "// ok - can view all course grades" but found "//ok - can view all course grades"
(#72) Inline comments must start with a capital letter, digit or 3-dots sequence
(#72) Inline comments must end in full-stops, exclamation marks, or question marks
(#72) No space found before comment text; expected "// ok - can view own grades" but found "//ok - can view own grades"
(#75) Inline comments must start with a capital letter, digit or 3-dots sequence
(#75) Inline comments must end in full-stops, exclamation marks, or question marks
(#80) Inline comments must start with a capital letter, digit or 3-dots sequence
(#84) Inline comments must start with a capital letter, digit or 3-dots sequence
(#84) 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
(#93) Inline comments must start with a capital letter, digit or 3-dots sequence
(#93) Inline comments must end in full-stops, exclamation marks, or question marks
(#93) No space found before comment text; expected "// first make sure we have proper final grades - this must be done before constructing of the grade tree" but found "//first make sure we have proper final grades - this must be done before constructing of the grade tree"
(#137) Expected "if (...) {\n"; found "if(...) {\n"
(#138) Whitespace found at end of line
(#156) Inline comments must start with a capital letter, digit or 3-dots sequence
(#156) Inline comments must end in full-stops, exclamation marks, or question marks
(#157) Expected 1 space before "=>"; 0 found
(#157) Expected 1 space after "=>"; 0 found
(#157) Expected 1 space before "=>"; 0 found
(#157) Expected 1 space after "=>"; 0 found
(#157) Expected 1 space before "=>"; 0 found
(#157) Expected 1 space after "=>"; 0 found
(#157) Expected 1 space before "=>"; 0 found
(#157) Expected 1 space after "=>"; 0 found
(#157) Line exceeds 132 characters; contains 136 characters
(#157) Line exceeds 132 characters; contains 136 characters
(#158) Inline comments must start with a capital letter, digit or 3-dots sequence
(#158) No space found before comment text; expected "// first make sure we have proper final grades - this must be done before constructing of the grade tree" but found "//first make sure we have proper final grades - this must be done before constructing of the grade tree"
(#159) Inline comments must end in full-stops, exclamation marks, or question marks
(#159) 3 slashes comments are not allowed; use "// Comment." instead
(#166) Inline comments must end in full-stops, exclamation marks, or question marks
(#166) No space found before comment text; expected "// Teachers will see all student reports" but found "//Teachers will see all student reports"
(#168) Inline comments must end in full-stops, exclamation marks, or question marks
(#173) Inline comments must end in full-stops, exclamation marks, or question marks
(#178) Inline comments must start with a capital letter, digit or 3-dots sequence
(#178) Inline comments must end in full-stops, exclamation marks, or question marks
(#178) This comment is 56% valid code; is this commented out code?
(#178) No space found before comment text; expected "// print_heading('<a href="'.$CFG->wwwroot.'/grade/report/user/index.php?id='.$thiscourse->id.'">'.$thiscourse->shortname.'</a> - '.get_string('modulename', 'gradereport_sitewideuser').'- <a href="'.$CFG->wwwroot.'/grade/report/sitewideuser/index.php?id='.$thiscourse->id.'&amp;userid='.$user->id.'">'.fullname($report->user).'</a>');" but found "//print_heading('<a href="'.$CFG->wwwroot.'/grade/report/user/index.php?id='.$thiscourse->id.'">'.$thiscourse->shortname.'</a> - '.get_string('modulename', 'gradereport_sitewideuser').'- <a href="'.$CFG->wwwroot.'/grade/report/sitewideuser/index.php?id='.$thiscourse->id.'&amp;userid='.$user->id.'">'.fullname($report->user).'</a>');"
(#179) Line exceeds maximum limit of 180 characters; contains 334 characters
(#179) Line exceeds maximum limit of 180 characters; contains 334 characters
(#187) Inline comments must end in full-stops, exclamation marks, or question marks
(#193) Inline comments must end in full-stops, exclamation marks, or question marks
(#198) Inline comments must start with a capital letter, digit or 3-dots sequence
(#198) Inline comments must end in full-stops, exclamation marks, or question marks
(#198) This comment is 56% valid code; is this commented out code?
(#198) No space found before comment text; expected "// print_heading('<a href="'.$CFG->wwwroot.'/grade/report/user/index.php?id='.$thiscourse->id.'">'.$thiscourse->shortname.'</a> - '.get_string('modulename', 'gradereport_sitewideuser').'- <a href="'.$CFG->wwwroot.'/grade/report/sitewideuser/index.php?id='.$thiscourse->id.'&amp;userid='.$user->id.'">'.fullname($report->user).'</a>');" but found "//print_heading('<a href="'.$CFG->wwwroot.'/grade/report/user/index.php?id='.$thiscourse->id.'">'.$thiscourse->shortname.'</a> - '.get_string('modulename', 'gradereport_sitewideuser').'- <a href="'.$CFG->wwwroot.'/grade/report/sitewideuser/index.php?id='.$thiscourse->id.'&amp;userid='.$user->id.'">'.fullname($report->user).'</a>');"
(#199) Line exceeds maximum limit of 180 characters; contains 338 characters
(#199) Line exceeds maximum limit of 180 characters; contains 338 characters
(#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
(#212) This comment is 56% valid code; is this commented out code?
(#212) No space found before comment text; expected "// print_heading('<a href="'.$CFG->wwwroot.'/grade/report/user/index.php?id='.$thiscourse->id.'">'.$thiscourse->shortname.'</a> - '.get_string('modulename', 'gradereport_sitewideuser').'- <a href="'.$CFG->wwwroot.'/grade/report/user/index.php?id='.$thiscourse->id.'&amp;userid='.$userid.'">'.fullname($report->user).'</a>');" but found "//print_heading('<a href="'.$CFG->wwwroot.'/grade/report/user/index.php?id='.$thiscourse->id.'">'.$thiscourse->shortname.'</a> - '.get_string('modulename', 'gradereport_sitewideuser').'- <a href="'.$CFG->wwwroot.'/grade/report/user/index.php?id='.$thiscourse->id.'&amp;userid='.$userid.'">'.fullname($report->user).'</a>');"
(#213) Line exceeds maximum limit of 180 characters; contains 332 characters
(#213) Line exceeds maximum limit of 180 characters; contains 332 characters
(#222) Line indented incorrectly; expected 16 spaces, found 18
(#222) Closing brace indented incorrectly; expected 16 spaces, found 18
(#224) Line indented incorrectly; expected 16 spaces, found 18
(#225) Inline comments must end in full-stops, exclamation marks, or question marks
(#225) No space found before comment text; expected "// Students will see just their own report" but found "//Students will see just their own report"
(#227) Inline comments must end in full-stops, exclamation marks, or question marks
(#230) Inline comments must start with a capital letter, digit or 3-dots sequence
(#231) Inline comments must end in full-stops, exclamation marks, or question marks
(#231) This comment is 56% valid code; is this commented out code?
(#231) No space found before comment text; expected "// print_heading('<a href="'.$CFG->wwwroot.'/grade/report/user/index.php?id='.$thiscourse->id.'">'.$thiscourse->shortname.'</a> - '.get_string('modulename', 'gradereport_sitewideuser').'- <a href="'.$CFG->wwwroot.'/grade/report/user/index.php?id='.$thiscourse->id.'&amp;userid='.$USER->id.'">'.fullname($report->user).'</a>');" but found "//print_heading('<a href="'.$CFG->wwwroot.'/grade/report/user/index.php?id='.$thiscourse->id.'">'.$thiscourse->shortname.'</a> - '.get_string('modulename', 'gradereport_sitewideuser').'- <a href="'.$CFG->wwwroot.'/grade/report/user/index.php?id='.$thiscourse->id.'&amp;userid='.$USER->id.'">'.fullname($report->user).'</a>');"
(#232) Line exceeds maximum limit of 180 characters; contains 326 characters
(#232) Line exceeds maximum limit of 180 characters; contains 326 characters
grade/report/sitewideuser/jquery/plugins.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
grade/report/sitewideuser/lib.php
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#161) Line exceeds 132 characters; contains 142 characters
(#162) Line exceeds 132 characters; contains 154 characters
(#163) Line exceeds 132 characters; contains 156 characters
(#164) Line exceeds maximum limit of 180 characters; contains 204 characters
(#166) Line exceeds 132 characters; contains 150 characters
(#167) Line exceeds 132 characters; contains 150 characters
(#168) Line exceeds 132 characters; contains 153 characters
(#169) Line exceeds 132 characters; contains 151 characters
(#170) Line exceeds 132 characters; contains 156 characters
(#171) Line exceeds 132 characters; contains 152 characters
(#173) Inline comments must end in full-stops, exclamation marks, or question marks
(#180) Inline comments must end in full-stops, exclamation marks, or question marks
(#189) Inline comments must end in full-stops, exclamation marks, or question marks
(#192) Inline comments must end in full-stops, exclamation marks, or question marks
(#195) 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
(#207) Inline comments must start with a capital letter, digit or 3-dots sequence
(#207) Inline comments must end in full-stops, exclamation marks, or question marks
(#211) Inline comments must start with a capital letter, digit or 3-dots sequence
(#211) Inline comments must end in full-stops, exclamation marks, or question marks
(#214) Inline comments must start with a capital letter, digit or 3-dots sequence
(#214) Inline comments must end in full-stops, exclamation marks, or question marks
(#214) No space found before comment text; expected "// optionally calculate grade item averages" but found "//optionally calculate grade item averages"
(#224) Visibility must be declared on method "inject_rowspans"
(#234) Expected 1 space before "=>"; 0 found
(#234) Expected 1 space after "=>"; 0 found
(#234) Expected 1 space before "=>"; 0 found
(#234) Expected 1 space after "=>"; 0 found
(#252) Inline comments must start with a capital letter, digit or 3-dots sequence
(#252) Inline comments must end in full-stops, exclamation marks, or question marks
(#298) Visibility must be declared on method "fill_table"
(#299) This comment is 75% valid code; is this commented out code?
(#299) Inline comments must start with a capital letter, digit or 3-dots sequence
(#299) No space found before comment text; expected "// print "<pre>";" but found "//print "<pre>";"
(#300) Inline comments must end in full-stops, exclamation marks, or question marks
(#300) This comment is 67% valid code; is this commented out code?
(#300) No space found before comment text; expected "// print_r($this->gtree->top_element);" but found "//print_r($this->gtree->top_element);"
(#302) This comment is 72% valid code; is this commented out code?
(#302) Inline comments must start with a capital letter, digit or 3-dots sequence
(#302) No space found before comment text; expected "// print_r($this->tabledata);" but found "//print_r($this->tabledata);"
(#303) Inline comments must end in full-stops, exclamation marks, or question marks
(#303) This comment is 75% valid code; is this commented out code?
(#303) No space found before comment text; expected "// print "</pre>";" but found "//print "</pre>";"
(#312) Variable "grade_object" must not contain underscores.
(#313) Variable "grade_object" must not contain underscores.
(#322) Inline comments must end in full-stops, exclamation marks, or question marks
(#323) Variable "grade_object" must not contain underscores.
(#325) Variable "grade_object" must not contain underscores.
(#334) Inline comments must end in full-stops, exclamation marks, or question marks
(#334) 3 slashes comments are not allowed; use "// Comment." instead
(#336) Variable "grade_grade" must not contain underscores.
(#336) Expected 1 space before "=>"; 0 found
(#336) Expected 1 space after "=>"; 0 found
(#336) Variable "grade_object" must not contain underscores.
(#336) Commas (,) must be followed by white space.
(#336) Expected 1 space before "=>"; 0 found
(#336) Expected 1 space after "=>"; 0 found
(#337) Variable "grade_grade" must not contain underscores.
(#338) Variable "grade_grade" must not contain underscores.
(#339) Variable "grade_grade" must not contain underscores.
(#339) Variable "grade_object" must not contain underscores.
(#342) Variable "grade_grade" must not contain underscores.
(#344) Inline comments must end in full-stops, exclamation marks, or question marks
(#344) 3 slashes comments are not allowed; use "// Comment." instead
(#345) Variable "grade_grade" must not contain underscores.
(#351) Variable "grade_grade" must not contain underscores.
(#353) Variable "grade_grade" must not contain underscores.
(#355) Variable "grade_object" must not contain underscores.
(#355) Variable "grade_object" must not contain underscores.
(#357) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#358) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#359) Variable "grade_object" must not contain underscores.
(#360) Variable "grade_object" must not contain underscores.
(#361) Variable "grade_object" must not contain underscores.
(#362) Line indented incorrectly; expected 20 spaces, found 24
(#367) Closing brace indented incorrectly; expected 24 spaces, found 20
(#372) Inline comments must end in full-stops, exclamation marks, or question marks
(#372) 3 slashes comments are not allowed; use "// Comment." instead
(#373) Variable "grade_grade" must not contain underscores.
(#378) Inline comments must end in full-stops, exclamation marks, or question marks
(#378) 3 slashes comments are not allowed; use "// Comment." instead
(#380) Inline comments must start with a capital letter, digit or 3-dots sequence
(#380) Inline comments must end in full-stops, exclamation marks, or question marks
(#381) Line indented incorrectly; expected at least 20 spaces, found 19
(#383) Line indented incorrectly; expected at least 20 spaces, found 19
(#386) Inline comments must end in full-stops, exclamation marks, or question marks
(#386) 3 slashes comments are not allowed; use "// Comment." instead
(#391) Inline comments must end in full-stops, exclamation marks, or question marks
(#391) 3 slashes comments are not allowed; use "// Comment." instead
(#392) Variable "grade_grade" must not contain underscores.
(#395) Inline comments must end in full-stops, exclamation marks, or question marks
(#402) Inline comments must start with a capital letter, digit or 3-dots sequence
(#402) Inline comments must end in full-stops, exclamation marks, or question marks
(#403) Variable "grade_object" must not contain underscores.
(#404) Variable "grade_object" must not contain underscores.
(#404) Commas (,) must be followed by white space.
(#409) Variable "grade_grade" must not contain underscores.
(#412) Variable "grade_grade" must not contain underscores.
(#412) Variable "grade_grade" must not contain underscores.
(#412) Line exceeds 132 characters; contains 157 characters
(#413) Variable "grade_grade" must not contain underscores.
(#413) Variable "grade_grade" must not contain underscores.
(#414) Line exceeds 132 characters; contains 175 characters
(#414) Inline comments must start with a capital letter, digit or 3-dots sequence
(#414) Inline comments must end in full-stops, exclamation marks, or question marks
(#417) Variable "grade_grade" must not contain underscores.
(#417) Line exceeds 132 characters; contains 170 characters
(#419) Usage of ELSEIF not allowed; use ELSE IF instead
(#419) Variable "grade_grade" must not contain underscores.
(#424) Variable "grade_grade" must not contain underscores.
(#424) Line exceeds 132 characters; contains 138 characters
(#426) Variable "grade_grade" must not contain underscores.
(#430) Inline comments must end in full-stops, exclamation marks, or question marks
(#433) Variable "grade_grade" must not contain underscores.
(#433) Line exceeds 132 characters; contains 141 characters
(#436) Inline comments must end in full-stops, exclamation marks, or question marks
(#438) Variable "grade_grade" must not contain underscores.
(#441) Variable "grade_grade" must not contain underscores.
(#446) Variable "grade_grade" must not contain underscores.
(#446) Line exceeds 132 characters; contains 155 characters
(#450) Inline comments must end in full-stops, exclamation marks, or question marks
(#452) Variable "grade_grade" must not contain underscores.
(#455) Variable "grade_grade" must not contain underscores.
(#460) Variable "grade_grade" must not contain underscores.
(#460) Line exceeds 132 characters; contains 156 characters
(#464) Variable "grade_grade" must not contain underscores.
(#464) Line exceeds 132 characters; contains 152 characters
(#468) Inline comments must end in full-stops, exclamation marks, or question marks
(#470) Variable "grade_grade" must not contain underscores.
(#473) Line indented incorrectly; expected 20 spaces, found 24
(#473) Closing brace indented incorrectly; expected 20 spaces, found 24
(#473) Usage of ELSEIF not allowed; use ELSE IF instead
(#473) Variable "grade_grade" must not contain underscores.
(#476) Closing brace indented incorrectly; expected 24 spaces, found 20
(#477) Inline comments must start with a capital letter, digit or 3-dots sequence
(#477) Inline comments must end in full-stops, exclamation marks, or question marks
(#482) Inline comments must start with a capital letter, digit or 3-dots sequence
(#482) Inline comments must end in full-stops, exclamation marks, or question marks
(#482) 3 slashes comments are not allowed; use "// Comment." instead
(#488) Variable "grade_grade" must not contain underscores.
(#488) Variable "grade_grade" must not contain underscores.
(#491) Inline comments must start with a capital letter, digit or 3-dots sequence
(#491) Inline comments must end in full-stops, exclamation marks, or question marks
(#495) Inline comments must end in full-stops, exclamation marks, or question marks
(#505) Inline comments must end in full-stops, exclamation marks, or question marks
(#507) Variable "grade_grade" must not contain underscores.
(#508) Line indented incorrectly; expected at least 24 spaces, found 20
(#509) Variable "grade_grade" must not contain underscores.
(#509) Variable "grade_grade" must not contain underscores.
(#509) Line exceeds 132 characters; contains 163 characters
(#510) Variable "grade_grade" must not contain underscores.
(#510) Variable "grade_grade" must not contain underscores.
(#515) Variable "grade_grade" must not contain underscores.
(#515) Variable "grade_grade" must not contain underscores.
(#521) Inline comments must end in full-stops, exclamation marks, or question marks
(#521) 3 slashes comments are not allowed; use "// Comment." instead
(#526) Inline comments must start with a capital letter, digit or 3-dots sequence
(#526) Inline comments must end in full-stops, exclamation marks, or question marks
(#527) Line indented incorrectly; expected at least 16 spaces, found 15
(#529) Line indented incorrectly; expected at least 16 spaces, found 15
(#535) Inline comments must end in full-stops, exclamation marks, or question marks
(#535) 3 slashes comments are not allowed; use "// Comment." instead
(#538) Inline comments must end in full-stops, exclamation marks, or question marks
(#538) 3 slashes comments are not allowed; use "// Comment." instead
(#540) Expected 1 space before "=>"; 0 found
(#540) Expected 1 space after "=>"; 0 found
(#540) Expected 1 space before "=>"; 0 found
(#540) Expected 1 space after "=>"; 0 found
(#554) Inline comments must end in full-stops, exclamation marks, or question marks
(#554) 3 slashes comments are not allowed; use "// Comment." instead
(#570) Inline comments must end in full-stops, exclamation marks, or question marks
(#570) 3 slashes comments are not allowed; use "// Comment." instead
(#581) Line exceeds 132 characters; contains 137 characters
(#604) Visibility must be declared on method "process_data"
(#606) Visibility must be declared on method "process_action"
(#613) Visibility must be declared on method "calculate_averages"
(#617) Inline comments must start with a capital letter, digit or 3-dots sequence
(#619) Inline comments must end in full-stops, exclamation marks, or question marks
(#632) Inline comments must start with a capital letter, digit or 3-dots sequence
(#632) Inline comments must end in full-stops, exclamation marks, or question marks
(#632) No space found before comment text; expected "// $groupwheresqlparams = ;" but found "//$groupwheresqlparams = ;"
(#640) Inline comments must start with a capital letter, digit or 3-dots sequence
(#640) Inline comments must end in full-stops, exclamation marks, or question marks
(#640) No space found before comment text; expected "// limit to users with a gradeable role ie students" but found "//limit to users with a gradeable role ie students"
(#641) Line exceeds 132 characters; contains 147 characters
(#643) Inline comments must start with a capital letter, digit or 3-dots sequence
(#643) Inline comments must end in full-stops, exclamation marks, or question marks
(#643) No space found before comment text; expected "// limit to users with an active enrolment" but found "//limit to users with an active enrolment"
(#649) Inline comments must start with a capital letter, digit or 3-dots sequence
(#649) Inline comments must end in full-stops, exclamation marks, or question marks
(#669) Variable "sum_array" must not contain underscores.
(#672) Variable "sum_array" must not contain underscores.
(#676) Expected 1 space before "="; 0 found
(#676) Expected 1 space after "="; 0 found
(#681) Line exceeds 132 characters; contains 136 characters
(#681) Inline comments must end in full-stops, exclamation marks, or question marks
(#700) Variable "ungraded_counts" must not contain underscores.
(#702) Expected 1 space before "=>"; 0 found
(#702) Expected 1 space after "=>"; 0 found
(#702) Expected 1 space before "=>"; 0 found
(#702) Expected 1 space after "=>"; 0 found
(#709) Line exceeds 132 characters; contains 136 characters
(#713) Variable "sum_array" must not contain underscores.
(#714) Variable "sum_array" must not contain underscores.
(#717) Variable "ungraded_counts" must not contain underscores.
(#718) Variable "ungraded_count" must not contain underscores.
(#720) Variable "ungraded_count" must not contain underscores.
(#720) Variable "ungraded_counts" must not contain underscores.
(#723) Inline comments must start with a capital letter, digit or 3-dots sequence
(#723) Inline comments must end in full-stops, exclamation marks, or question marks
(#723) No space found before comment text; expected "// do they want the averages to include all grade items" but found "//do they want the averages to include all grade items"
(#725) Variable "mean_count" must not contain underscores.
(#725) Variable "ungraded_count" must not contain underscores.
(#726) Inline comments must end in full-stops, exclamation marks, or question marks
(#727) Variable "sum_array" must not contain underscores.
(#727) Variable "ungraded_count" must not contain underscores.
(#728) Variable "mean_count" must not contain underscores.
(#733) Inline comments must end in full-stops, exclamation marks, or question marks
(#737) Line exceeds 132 characters; contains 147 characters
(#737) Inline comments must start with a capital letter, digit or 3-dots sequence
(#737) Inline comments must end in full-stops, exclamation marks, or question marks
(#744) Inline comments must end in full-stops, exclamation marks, or question marks
(#752) Variable "sum_array" must not contain underscores.
(#752) Variable "mean_count" must not contain underscores.
(#755) Variable "sum_array" must not contain underscores.
(#756) Expected 1 space before "/"; 0 found
(#756) Expected 1 space after "/"; 0 found
(#756) Variable "mean_count" must not contain underscores.
(#761) Variable "mean_count" must not contain underscores.
(#845) Expected 1 space before "=>"; 0 found
(#845) Expected 1 space after "=>"; 0 found
(#845) Expected 1 space before "=>"; 0 found
(#845) Expected 1 space after "=>"; 0 found
(#845) Expected 1 space before "=>"; 0 found
(#845) Expected 1 space after "=>"; 0 found
(#845) Expected 1 space before "=>"; 0 found
(#845) Expected 1 space after "=>"; 0 found
(#845) Expected 1 space before "=>"; 0 found
(#845) Expected 1 space after "=>"; 0 found
(#845) Expected 1 space before "=>"; 0 found
(#845) Expected 1 space after "=>"; 0 found
(#865) Inline comments must start with a capital letter, digit or 3-dots sequence
(#865) Inline comments must end in full-stops, exclamation marks, or question marks
(#865) No space found before comment text; expected "// showtotalsifcontainhidden" but found "//showtotalsifcontainhidden"
(#877) Line exceeds 132 characters; contains 140 characters
(#887) Inline comments must start with a capital letter, digit or 3-dots sequence
(#887) Inline comments must end in full-stops, exclamation marks, or question marks
(#887) No space found before comment text; expected "// first make sure we have proper final grades - this must be done before constructing of the grade tree" but found "//first make sure we have proper final grades - this must be done before constructing of the grade tree"
(#890) Inline comments must start with a capital letter, digit or 3-dots sequence
(#890) Inline comments must end in full-stops, exclamation marks, or question marks
(#890) 3 slashes comments are not allowed; use "// Comment." instead
(#891) Expected 1 space before "=>"; 0 found
(#891) Expected 1 space after "=>"; 0 found
(#891) Expected 1 space before "=>"; 0 found
(#891) Expected 1 space after "=>"; 0 found
(#891) Expected 1 space before "=>"; 0 found
(#891) Expected 1 space after "=>"; 0 found
(#891) Expected 1 space before "=>"; 0 found
(#891) Expected 1 space after "=>"; 0 found
(#892) Inline comments must end in full-stops, exclamation marks, or question marks
(#895) Inline comments must start with a capital letter, digit or 3-dots sequence
(#896) Inline comments must end in full-stops, exclamation marks, or question marks
grade/report/sitewideuser/renderer.php
(#24) Expected MOODLE_INTERNAL check or config.php inclusion
(#30) Expected 1 space before "=>"; 0 found
(#30) Expected 1 space after "=>"; 0 found
(#31) Expected 1 space before "=>"; 0 found
(#31) Expected 1 space after "=>"; 0 found
grade/report/sitewideuser/settings.php
(#28) Empty IF statement detected
grade/report/sitewideuser/version.php
(#30) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(0 errors, 24 warnings)

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

grade/report/sitewideuser/jquery/jquery.checkboxtree.js
(#18) Missing semicolon.
(#19) Missing semicolon.
(#24) Missing semicolon.
(#28) Missing semicolon.
(#29) Missing semicolon.
(#32) Missing semicolon.
(#39) Missing semicolon.
(#40) Missing semicolon.
(#42) Missing semicolon.
(#43) Missing semicolon.
(#46) Missing semicolon.
(#50) Missing semicolon.
(#56) Missing semicolon.
(#57) Missing semicolon.
(#58) Missing semicolon.
(#74) Missing semicolon.
(#77) Missing semicolon.
(#85) Missing semicolon.
(#90) Missing semicolon.
(#94) Missing semicolon.
(#98) Missing semicolon.
(#101) Missing semicolon.
(#104) Missing semicolon.
(#18) '$labels' is defined but never used.

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(44 errors, 1 warnings)

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

grade/report/sitewideuser/categorylib.php
(#21) Found comment starting with three or more slashes
(#22) Found comment starting with three or more slashes
(#2) No one-line description found in phpdocs for file
(#9) There is no description in phpdocs for function gradereport_sitewideuser_print_category
(#11) Phpdocs for function gradereport_sitewideuser_print_category has incomplete parameters list
(#64) Phpdocs for function gradereport_sitewideuser_print_category_info has incomplete parameters list
grade/report/sitewideuser/index.php
(#159) Found comment starting with three or more slashes
grade/report/sitewideuser/jquery/plugins.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
grade/report/sitewideuser/lib.php
(#298) Function grade_report_sitewideuser::fill_table is not documented
(#307) Function grade_report_sitewideuser::fill_table_recursive is not documented
(#606) Function grade_report_sitewideuser::process_action is not documented
(#771) Function grade_report_sitewideuser_settings_definition is not documented
(#881) Function grade_report_sitewideuser_profilereport is not documented
(#134) Variable grade_report_sitewideuser::$maxdepth is not documented
(#135) Variable grade_report_sitewideuser::$evenodd is not documented
(#137) Variable grade_report_sitewideuser::$canviewhidden is not documented
(#139) Variable grade_report_sitewideuser::$switch is not documented
(#145) Variable grade_report_sitewideuser::$showtotalsifcontainhidden is not documented
(#147) Variable grade_report_sitewideuser::$baseurl is not documented
(#148) Variable grade_report_sitewideuser::$pbarurl is not documented
(#334) Found comment starting with three or more slashes
(#344) Found comment starting with three or more slashes
(#372) Found comment starting with three or more slashes
(#378) Found comment starting with three or more slashes
(#386) Found comment starting with three or more slashes
(#391) Found comment starting with three or more slashes
(#482) Found comment starting with three or more slashes
(#521) Found comment starting with three or more slashes
(#535) Found comment starting with three or more slashes
(#538) Found comment starting with three or more slashes
(#554) Found comment starting with three or more slashes
(#570) Found comment starting with three or more slashes
(#890) Found comment starting with three or more slashes
(#599) Phpdocs for function grade_report_sitewideuser::process_data has incomplete parameters list
(#62) Phpdocs for variable grade_report_sitewideuser::$tabledata does not contain @var or incorrect
(#72) Phpdocs for variable grade_report_sitewideuser::$gseq does not contain @var or incorrect
(#77) Phpdocs for variable grade_report_sitewideuser::$showrank does not contain @var or incorrect
(#82) Phpdocs for variable grade_report_sitewideuser::$showpercentage does not contain @var or incorrect
(#87) Phpdocs for variable grade_report_sitewideuser::$showrange does not contain @var or incorrect
(#141) Phpdocs for variable grade_report_sitewideuser::$showhiddenitems does not contain @var or incorrect
(#29) Class grade_report_sitewideuser does not have @copyright tag
(#29) Class grade_report_sitewideuser does not have @license tag
grade/report/sitewideuser/renderer.php
(#17) File-level phpdocs block is not found
(#26) Function gradereport_sitewideuser_renderer::graded_users_selector 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]


Mustache template problems

(0 errors, 0 warnings)

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