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

(597 errors, 25 warnings)

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

blocks/my_grades/block_my_grades.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#28) "require_once" must be immediately followed by an open parenthesis
(#29) "require_once" must be immediately followed by an open parenthesis
(#32) Spaces must be used to indent lines; tabs are not allowed
(#32) Tab found within whitespace
(#32) Line indented incorrectly; expected 4 spaces, found 1
(#33) Spaces must be used to indent lines; tabs are not allowed
(#33) Tab found within whitespace
(#33) Line indented incorrectly; expected at least 8 spaces, found 2
(#34) Spaces must be used to indent lines; tabs are not allowed
(#34) Tab found within whitespace
(#34) Line indented incorrectly; expected 4 spaces, found 1
(#36) Spaces must be used to indent lines; tabs are not allowed
(#36) Tab found within whitespace
(#36) Line indented incorrectly; expected 4 spaces, found 1
(#37) Spaces must be used to indent lines; tabs are not allowed
(#37) Tab found within whitespace
(#37) Line indented incorrectly; expected at least 8 spaces, found 2
(#39) Spaces must be used to indent lines; tabs are not allowed
(#39) Tab found within whitespace
(#39) Line indented incorrectly; expected 8 spaces, found 2
(#40) Spaces must be used to indent lines; tabs are not allowed
(#40) Tab found within whitespace
(#40) Line indented incorrectly; expected at least 12 spaces, found 3
(#41) Spaces must be used to indent lines; tabs are not allowed
(#41) Tab found within whitespace
(#41) Line indented incorrectly; expected 8 spaces, found 2
(#43) Spaces must be used to indent lines; tabs are not allowed
(#43) Tab found within whitespace
(#43) Line indented incorrectly; expected at least 8 spaces, found 2
(#43) Spaces must be used for alignment; tabs are not allowed
(#43) Tab found within whitespace
(#43) Expected 1 space after "="; 2 found
(#44) Spaces must be used for alignment; tabs are not allowed
(#44) Tab found within whitespace
(#44) Line indented incorrectly; expected at least 8 spaces, found 2
(#46) Spaces must be used for alignment; tabs are not allowed
(#46) Tab found within whitespace
(#46) Inline comments must start with a capital letter, digit or 3-dots sequence
(#46) Inline comments must end in full-stops, exclamation marks, or question marks
(#46) Line indented incorrectly; expected at least 8 spaces, found 2
(#46) 3 slashes comments are not allowed; use "// Comment." instead
(#47) Spaces must be used for alignment; tabs are not allowed
(#47) Tab found within whitespace
(#47) Line indented incorrectly; expected at least 8 spaces, found 2
(#47) Expected 1 space before "=>"; 0 found
(#47) Expected 1 space after "=>"; 0 found
(#47) Expected 1 space before "=>"; 0 found
(#47) Expected 1 space after "=>"; 0 found
(#47) Expected 1 space before "=>"; 0 found
(#47) Expected 1 space after "=>"; 0 found
(#47) Expected 1 space before "=>"; 0 found
(#47) Expected 1 space after "=>"; 0 found
(#49) Spaces must be used for alignment; tabs are not allowed
(#49) Tab found within whitespace
(#49) Inline comments must end in full-stops, exclamation marks, or question marks
(#49) Line indented incorrectly; expected at least 8 spaces, found 2
(#50) Spaces must be used for alignment; tabs are not allowed
(#50) Tab found within whitespace
(#50) Line indented incorrectly; expected at least 8 spaces, found 2
(#51) Spaces must be used for alignment; tabs are not allowed
(#51) Tab found within whitespace
(#51) Line indented incorrectly; expected at least 8 spaces, found 2
(#53) Spaces must be used for alignment; tabs are not allowed
(#53) Tab found within whitespace
(#53) Line indented incorrectly; expected at least 8 spaces, found 2
(#53) Expected 1 space before "="; 0 found
(#53) Expected 1 space after "="; 0 found
(#54) Spaces must be used for alignment; tabs are not allowed
(#54) Tab found within whitespace
(#54) Line indented incorrectly; expected 8 spaces, found 2
(#54) Expected "if (...) {\n"; found "if (...)\n\t\t{\n"
(#55) Spaces must be used for alignment; tabs are not allowed
(#55) Tab found within whitespace
(#55) Line indented incorrectly; expected at least 8 spaces, found 2
(#56) Spaces must be used for alignment; tabs are not allowed
(#56) Tab found within whitespace
(#56) Line indented incorrectly; expected 12 spaces, found 3
(#56) Expected "if (...) {\n"; found "if (...)\n\t\t\t{\n"
(#56) Expected 1 space before ">"; 0 found
(#56) Expected 1 space after ">"; 0 found
(#57) Spaces must be used for alignment; tabs are not allowed
(#57) Tab found within whitespace
(#57) Line indented incorrectly; expected at least 12 spaces, found 3
(#58) Spaces must be used for alignment; tabs are not allowed
(#58) Tab found within whitespace
(#58) Line indented incorrectly; expected at least 16 spaces, found 4
(#58) Expected 1 space before "="; 0 found
(#58) Expected 1 space after "="; 0 found
(#58) Line exceeds maximum limit of 180 characters; contains 182 characters
(#59) Spaces must be used for alignment; tabs are not allowed
(#59) Tab found within whitespace
(#59) Line indented incorrectly; expected 16 spaces, found 4
(#59) Expected "foreach (...) {\n"; found "foreach(...)\n\t\t\t\t{\n"
(#60) Spaces must be used for alignment; tabs are not allowed
(#60) Tab found within whitespace
(#60) Line indented incorrectly; expected at least 16 spaces, found 4
(#61) Spaces must be used for alignment; tabs are not allowed
(#61) Tab found within whitespace
(#61) Inline comments must start with a capital letter, digit or 3-dots sequence
(#61) Inline comments must end in full-stops, exclamation marks, or question marks
(#61) Line indented incorrectly; expected at least 20 spaces, found 5
(#62) Spaces must be used for alignment; tabs are not allowed
(#62) Tab found within whitespace
(#62) Line indented incorrectly; expected at least 20 spaces, found 5
(#62) Expected 1 space before ".="; 0 found
(#62) Expected 1 space after ".="; 0 found
(#63) Spaces must be used for alignment; tabs are not allowed
(#63) Tab found within whitespace
(#63) Line indented incorrectly; expected at least 20 spaces, found 6
(#65) Spaces must be used for alignment; tabs are not allowed
(#65) Tab found within whitespace
(#65) Line indented incorrectly; expected 16 spaces, found 4
(#66) Spaces must be used for alignment; tabs are not allowed
(#66) Tab found within whitespace
(#66) Line indented incorrectly; expected at least 16 spaces, found 4
(#66) Expected 1 space before ".="; 0 found
(#66) Expected 1 space after ".="; 0 found
(#67) Spaces must be used for alignment; tabs are not allowed
(#67) Tab found within whitespace
(#67) Line indented incorrectly; expected at least 16 spaces, found 4
(#67) Expected 1 space before ".="; 0 found
(#67) Expected 1 space after ".="; 0 found
(#68) Spaces must be used for alignment; tabs are not allowed
(#68) Tab found within whitespace
(#68) Line indented incorrectly; expected 12 spaces, found 3
(#69) Spaces must be used for alignment; tabs are not allowed
(#69) Tab found within whitespace
(#69) Line indented incorrectly; expected 8 spaces, found 2
(#70) Spaces must be used for alignment; tabs are not allowed
(#70) Tab found within whitespace
(#70) Line indented incorrectly; expected 8 spaces, found 2
(#70) Expected "} else {\n"; found "}\n\t\telse\n\t\t{\n"
(#71) Spaces must be used for alignment; tabs are not allowed
(#71) Tab found within whitespace
(#71) Line indented incorrectly; expected at least 8 spaces, found 2
(#72) Spaces must be used for alignment; tabs are not allowed
(#72) Tab found within whitespace
(#72) Line indented incorrectly; expected at least 12 spaces, found 3
(#72) Expected 1 space before ".="; 0 found
(#72) Expected 1 space after ".="; 0 found
(#73) Spaces must be used for alignment; tabs are not allowed
(#73) Tab found within whitespace
(#73) Line indented incorrectly; expected 8 spaces, found 2
(#75) Spaces must be used for alignment; tabs are not allowed
(#75) Tab found within whitespace
(#75) Line indented incorrectly; expected at least 8 spaces, found 2
(#76) Spaces must be used for alignment; tabs are not allowed
(#76) Tab found within whitespace
(#76) Line indented incorrectly; expected 4 spaces, found 1
(#78) Spaces must be used for alignment; tabs are not allowed
(#78) Tab found within whitespace
(#78) Line indented incorrectly; expected 4 spaces, found 1
(#79) Spaces must be used for alignment; tabs are not allowed
(#79) Tab found within whitespace
(#79) Line indented incorrectly; expected at least 8 spaces, found 2
(#80) Spaces must be used for alignment; tabs are not allowed
(#80) Tab found within whitespace
(#80) Line indented incorrectly; expected 4 spaces, found 1
(#82) Spaces must be used for alignment; tabs are not allowed
(#82) Tab found within whitespace
(#82) Line indented incorrectly; expected 4 spaces, found 1
(#83) Spaces must be used for alignment; tabs are not allowed
(#83) Tab found within whitespace
(#83) Line indented incorrectly; expected at least 8 spaces, found 2
(#84) Spaces must be used for alignment; tabs are not allowed
(#84) Tab found within whitespace
(#84) Line indented incorrectly; expected at least 8 spaces, found 2
(#84) Inline comments must end in full-stops, exclamation marks, or question marks
(#85) Spaces must be used for alignment; tabs are not allowed
(#85) Tab found within whitespace
(#85) Line indented incorrectly; expected at least 8 spaces, found 2
(#86) Spaces must be used for alignment; tabs are not allowed
(#86) Tab found within whitespace
(#86) Line indented incorrectly; expected 4 spaces, found 1
(#88) Spaces must be used for alignment; tabs are not allowed
(#88) Tab found within whitespace
(#88) Line indented incorrectly; expected 4 spaces, found 1
(#89) Spaces must be used for alignment; tabs are not allowed
(#89) Tab found within whitespace
(#89) Line indented incorrectly; expected at least 8 spaces, found 2
(#90) Spaces must be used for alignment; tabs are not allowed
(#90) Tab found within whitespace
(#90) Line indented incorrectly; expected at least 8 spaces, found 2
(#92) Spaces must be used for alignment; tabs are not allowed
(#92) Tab found within whitespace
(#92) Line indented incorrectly; expected 8 spaces, found 2
(#93) Spaces must be used for alignment; tabs are not allowed
(#93) Tab found within whitespace
(#93) Line indented incorrectly; expected at least 12 spaces, found 3
(#95) Spaces must be used for alignment; tabs are not allowed
(#95) Tab found within whitespace
(#95) Line indented incorrectly; expected 12 spaces, found 3
(#96) Spaces must be used for alignment; tabs are not allowed
(#96) Tab found within whitespace
(#96) Line indented incorrectly; expected 16 spaces, found 4
(#97) Spaces must be used for alignment; tabs are not allowed
(#97) Tab found within whitespace
(#97) Line indented incorrectly; expected at least 20 spaces, found 5
(#98) Spaces must be used for alignment; tabs are not allowed
(#98) Tab found within whitespace
(#98) Line indented incorrectly; expected 16 spaces, found 4
(#100) Spaces must be used for alignment; tabs are not allowed
(#100) Tab found within whitespace
(#100) Line indented incorrectly; expected at least 16 spaces, found 4
(#102) Spaces must be used for alignment; tabs are not allowed
(#102) Tab found within whitespace
(#102) Line indented incorrectly; expected 16 spaces, found 4
(#103) Spaces must be used for alignment; tabs are not allowed
(#103) Tab found within whitespace
(#103) Inline comments must end in full-stops, exclamation marks, or question marks
(#103) Line indented incorrectly; expected at least 20 spaces, found 5
(#104) Spaces must be used for alignment; tabs are not allowed
(#104) Tab found within whitespace
(#104) Line indented incorrectly; expected at least 20 spaces, found 5
(#105) Spaces must be used for alignment; tabs are not allowed
(#105) Tab found within whitespace
(#105) Line indented incorrectly; expected 16 spaces, found 4
(#107) Spaces must be used for alignment; tabs are not allowed
(#107) Tab found within whitespace
(#107) Line indented incorrectly; expected at least 16 spaces, found 4
(#108) Spaces must be used for alignment; tabs are not allowed
(#108) Tab found within whitespace
(#108) Line indented incorrectly; expected at least 16 spaces, found 4
(#108) Line exceeds 132 characters; contains 161 characters
(#109) Spaces must be used for alignment; tabs are not allowed
(#109) Tab found within whitespace
(#109) Line indented incorrectly; expected at least 16 spaces, found 4
(#111) Spaces must be used for alignment; tabs are not allowed
(#111) Tab found within whitespace
(#111) Inline comments must start with a capital letter, digit or 3-dots sequence
(#111) Line indented incorrectly; expected at least 16 spaces, found 4
(#112) Spaces must be used for alignment; tabs are not allowed
(#112) Tab found within whitespace
(#112) Inline comments must end in full-stops, exclamation marks, or question marks
(#112) Line indented incorrectly; expected at least 16 spaces, found 4
(#113) Spaces must be used for alignment; tabs are not allowed
(#113) Tab found within whitespace
(#113) Line indented incorrectly; expected at least 16 spaces, found 4
(#113) Variable "course_item" must not contain underscores.
(#115) Spaces must be used for alignment; tabs are not allowed
(#115) Tab found within whitespace
(#115) Inline comments must end in full-stops, exclamation marks, or question marks
(#115) Line indented incorrectly; expected at least 16 spaces, found 4
(#116) Spaces must be used for alignment; tabs are not allowed
(#116) Tab found within whitespace
(#116) Line indented incorrectly; expected at least 16 spaces, found 4
(#116) Variable "course_grade" must not contain underscores.
(#116) Expected 1 space before "=>"; 0 found
(#116) Expected 1 space after "=>"; 0 found
(#116) Variable "course_item" must not contain underscores.
(#116) Expected 1 space before "=>"; 0 found
(#116) Expected 1 space after "=>"; 0 found
(#117) Spaces must be used for alignment; tabs are not allowed
(#117) Tab found within whitespace
(#117) Line indented incorrectly; expected at least 16 spaces, found 4
(#117) Variable "course_grade" must not contain underscores.
(#117) Variable "course_item" must not contain underscores.
(#118) Spaces must be used for alignment; tabs are not allowed
(#118) Tab found within whitespace
(#118) Line indented incorrectly; expected at least 16 spaces, found 4
(#118) Variable "course_grade" must not contain underscores.
(#120) Spaces must be used for alignment; tabs are not allowed
(#120) Tab found within whitespace
(#120) Line indented incorrectly; expected 16 spaces, found 4
(#121) Spaces must be used for alignment; tabs are not allowed
(#121) Tab found within whitespace
(#121) Line indented incorrectly; expected 20 spaces, found 5
(#121) Variable "course_grade" must not contain underscores.
(#122) Spaces must be used for alignment; tabs are not allowed
(#122) Tab found within whitespace
(#122) Line indented incorrectly; expected at least 24 spaces, found 6
(#123) Spaces must be used for alignment; tabs are not allowed
(#123) Tab found within whitespace
(#123) Line indented incorrectly; expected 20 spaces, found 5
(#124) Spaces must be used for alignment; tabs are not allowed
(#124) Tab found within whitespace
(#124) Line indented incorrectly; expected at least 24 spaces, found 6
(#124) Must use "self::" for local static member reference
(#124) Variable "course_item" must not contain underscores.
(#125) Spaces must be used for alignment; tabs are not allowed
(#125) Tab found within whitespace
(#125) Line indented incorrectly; expected 20 spaces, found 5
(#126) Spaces must be used for alignment; tabs are not allowed
(#126) Tab found within whitespace
(#126) Line indented incorrectly; expected 16 spaces, found 4
(#128) Spaces must be used for alignment; tabs are not allowed
(#128) Tab found within whitespace
(#128) Line indented incorrectly; expected at least 16 spaces, found 4
(#128) Variable "course_item" must not contain underscores.
(#129) Spaces must be used for alignment; tabs are not allowed
(#129) Tab found within whitespace
(#129) Line indented incorrectly; expected 12 spaces, found 3
(#131) Spaces must be used for alignment; tabs are not allowed
(#131) Tab found within whitespace
(#131) Line indented incorrectly; expected 12 spaces, found 3
(#131) Expected 1 space before "=="; 0 found
(#131) Expected 1 space after "=="; 0 found
(#132) Spaces must be used for alignment; tabs are not allowed
(#132) Tab found within whitespace
(#132) Line indented incorrectly; expected at least 16 spaces, found 4
(#133) Spaces must be used for alignment; tabs are not allowed
(#133) Tab found within whitespace
(#133) Line indented incorrectly; expected 12 spaces, found 3
(#134) Spaces must be used for alignment; tabs are not allowed
(#134) Tab found within whitespace
(#134) Line indented incorrectly; expected at least 16 spaces, found 4
(#135) Spaces must be used for alignment; tabs are not allowed
(#135) Tab found within whitespace
(#135) Line indented incorrectly; expected 12 spaces, found 3
(#136) Spaces must be used for alignment; tabs are not allowed
(#136) Tab found within whitespace
(#136) Line indented incorrectly; expected 8 spaces, found 2
(#137) Spaces must be used for alignment; tabs are not allowed
(#137) Tab found within whitespace
(#137) Line indented incorrectly; expected at least 12 spaces, found 3
(#138) Spaces must be used for alignment; tabs are not allowed
(#138) Tab found within whitespace
(#138) Line indented incorrectly; expected 8 spaces, found 2
(#139) Spaces must be used for alignment; tabs are not allowed
(#139) Tab found within whitespace
(#139) Line indented incorrectly; expected 4 spaces, found 1
(#141) Spaces must be used for alignment; tabs are not allowed
(#141) Tab found within whitespace
(#141) Line indented incorrectly; expected at least 4 spaces, found 1
(#142) Spaces must be used for alignment; tabs are not allowed
(#143) Spaces must be used for alignment; tabs are not allowed
(#144) Spaces must be used for alignment; tabs are not allowed
(#145) Spaces must be used for alignment; tabs are not allowed
(#146) Spaces must be used for alignment; tabs are not allowed
(#147) Spaces must be used for alignment; tabs are not allowed
(#148) Spaces must be used for alignment; tabs are not allowed
(#148) Tab found within whitespace
(#148) Line indented incorrectly; expected 4 spaces, found 1
(#148) Variable "course_item" must not contain underscores.
(#149) Spaces must be used for alignment; tabs are not allowed
(#149) Tab found within whitespace
(#149) Line indented incorrectly; expected at least 8 spaces, found 2
(#150) Spaces must be used for alignment; tabs are not allowed
(#150) Tab found within whitespace
(#150) Line indented incorrectly; expected 8 spaces, found 2
(#150) Variable "hiding_affected" must not contain underscores.
(#150) Inline comments must start with a capital letter, digit or 3-dots sequence
(#150) Inline comments must end in full-stops, exclamation marks, or question marks
(#150) No space found before comment text; expected "// array of items in this course affected by hiding" but found "//array of items in this course affected by hiding"
(#152) Spaces must be used for alignment; tabs are not allowed
(#152) Tab found within whitespace
(#152) Line indented incorrectly; expected at least 8 spaces, found 2
(#153) Spaces must be used for alignment; tabs are not allowed
(#153) Tab found within whitespace
(#153) Line indented incorrectly; expected 8 spaces, found 2
(#153) Variable "previous_userid" must not contain underscores.
(#155) Spaces must be used for alignment; tabs are not allowed
(#155) Tab found within whitespace
(#155) Line indented incorrectly; expected at least 8 spaces, found 2
(#156) Spaces must be used for alignment; tabs are not allowed
(#156) Tab found within whitespace
(#156) Line indented incorrectly; expected 8 spaces, found 2
(#156) Variable "previous_courseid" must not contain underscores.
(#158) Spaces must be used for alignment; tabs are not allowed
(#158) Tab found within whitespace
(#158) Line indented incorrectly; expected 8 spaces, found 2
(#159) Spaces must be used for alignment; tabs are not allowed
(#159) Tab found within whitespace
(#159) Line indented incorrectly; expected at least 12 spaces, found 3
(#160) Spaces must be used for alignment; tabs are not allowed
(#160) Tab found within whitespace
(#160) Line indented incorrectly; expected at least 12 spaces, found 3
(#161) Spaces must be used for alignment; tabs are not allowed
(#161) Tab found within whitespace
(#161) Line indented incorrectly; expected 8 spaces, found 2
(#162) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#164) Spaces must be used for alignment; tabs are not allowed
(#164) Tab found within whitespace
(#164) Line indented incorrectly; expected 8 spaces, found 2
(#165) Spaces must be used for alignment; tabs are not allowed
(#165) Tab found within whitespace
(#165) Line indented incorrectly; expected at least 12 spaces, found 3
(#166) Spaces must be used for alignment; tabs are not allowed
(#166) Tab found within whitespace
(#166) Line indented incorrectly; expected 8 spaces, found 2
(#168) Spaces must be used for alignment; tabs are not allowed
(#168) Tab found within whitespace
(#168) Line indented incorrectly; expected at least 8 spaces, found 2
(#169) Spaces must be used for alignment; tabs are not allowed
(#169) Tab found within whitespace
(#169) Line indented incorrectly; expected 8 spaces, found 2
(#169) Variable "previous_userid" must not contain underscores.
(#169) Variable "previous_courseid" must not contain underscores.
(#170) Spaces must be used for alignment; tabs are not allowed
(#170) Tab found within whitespace
(#170) Line indented incorrectly; expected at least 12 spaces, found 3
(#170) Variable "hiding_affected" must not contain underscores.
(#171) Spaces must be used for alignment; tabs are not allowed
(#171) Tab found within whitespace
(#171) Line indented incorrectly; expected at least 12 spaces, found 3
(#171) Variable "previous_userid" must not contain underscores.
(#172) Spaces must be used for alignment; tabs are not allowed
(#172) Tab found within whitespace
(#172) Line indented incorrectly; expected at least 12 spaces, found 3
(#172) Variable "previous_courseid" must not contain underscores.
(#173) Spaces must be used for alignment; tabs are not allowed
(#173) Tab found within whitespace
(#173) Line indented incorrectly; expected 8 spaces, found 2
(#175) Spaces must be used for alignment; tabs are not allowed
(#175) Tab found within whitespace
(#175) Line indented incorrectly; expected 8 spaces, found 2
(#175) Expected "if (...) {\n"; found "if(...) {\n"
(#175) Variable "hiding_affected" must not contain underscores.
(#176) Spaces must be used for alignment; tabs are not allowed
(#176) Tab found within whitespace
(#176) Line indented incorrectly; expected at least 12 spaces, found 3
(#176) Expected 1 space before "=>"; 0 found
(#176) Expected 1 space after "=>"; 0 found
(#177) Spaces must be used for alignment; tabs are not allowed
(#177) Tab found within whitespace
(#177) Line indented incorrectly; expected at least 12 spaces, found 3
(#178) Spaces must be used for alignment; tabs are not allowed
(#178) Tab found within whitespace
(#178) Line indented incorrectly; expected at least 12 spaces, found 3
(#182) Spaces must be used for alignment; tabs are not allowed
(#182) Tab found within whitespace
(#182) Line indented incorrectly; expected 12 spaces, found 3
(#183) Spaces must be used for alignment; tabs are not allowed
(#183) Tab found within whitespace
(#183) Line indented incorrectly; expected 16 spaces, found 4
(#184) Spaces must be used for alignment; tabs are not allowed
(#184) Tab found within whitespace
(#184) Line indented incorrectly; expected at least 20 spaces, found 5
(#185) Spaces must be used for alignment; tabs are not allowed
(#185) Tab found within whitespace
(#185) Line indented incorrectly; expected 16 spaces, found 4
(#186) Spaces must be used for alignment; tabs are not allowed
(#186) Tab found within whitespace
(#186) Line indented incorrectly; expected at least 16 spaces, found 4
(#187) Spaces must be used for alignment; tabs are not allowed
(#187) Tab found within whitespace
(#187) Line indented incorrectly; expected 12 spaces, found 3
(#188) Spaces must be used for alignment; tabs are not allowed
(#188) Tab found within whitespace
(#188) Line indented incorrectly; expected 12 spaces, found 3
(#188) Expected 1 space before "=>"; 0 found
(#188) Expected 1 space after "=>"; 0 found
(#188) Expected 1 space before "=>"; 0 found
(#188) Expected 1 space after "=>"; 0 found
(#189) Spaces must be used for alignment; tabs are not allowed
(#189) Tab found within whitespace
(#189) Line indented incorrectly; expected 16 spaces, found 4
(#190) Spaces must be used for alignment; tabs are not allowed
(#190) Tab found within whitespace
(#190) Line indented incorrectly; expected at least 20 spaces, found 5
(#190) Variable "grade_grade" must not contain underscores.
(#191) Spaces must be used for alignment; tabs are not allowed
(#191) Tab found within whitespace
(#191) Line indented incorrectly; expected at least 20 spaces, found 5
(#191) Variable "grade_grade" must not contain underscores.
(#192) Spaces must be used for alignment; tabs are not allowed
(#192) Tab found within whitespace
(#192) Line indented incorrectly; expected at least 20 spaces, found 5
(#192) Variable "grade_grade" must not contain underscores.
(#193) Spaces must be used for alignment; tabs are not allowed
(#193) Tab found within whitespace
(#193) Line indented incorrectly; expected at least 20 spaces, found 5
(#193) Variable "grade_grade" must not contain underscores.
(#194) Spaces must be used for alignment; tabs are not allowed
(#194) Tab found within whitespace
(#194) Line indented incorrectly; expected 16 spaces, found 4
(#195) Spaces must be used for alignment; tabs are not allowed
(#195) Tab found within whitespace
(#195) Line indented incorrectly; expected at least 16 spaces, found 4
(#196) Spaces must be used for alignment; tabs are not allowed
(#196) Tab found within whitespace
(#196) Line indented incorrectly; expected 12 spaces, found 3
(#197) Spaces must be used for alignment; tabs are not allowed
(#197) Tab found within whitespace
(#197) Line indented incorrectly; expected at least 12 spaces, found 3
(#197) Variable "hiding_affected" must not contain underscores.
(#198) Spaces must be used for alignment; tabs are not allowed
(#198) Tab found within whitespace
(#198) Line indented incorrectly; expected 8 spaces, found 2
(#200) Spaces must be used for alignment; tabs are not allowed
(#200) Tab found within whitespace
(#200) Inline comments must start with a capital letter, digit or 3-dots sequence
(#200) Inline comments must end in full-stops, exclamation marks, or question marks
(#200) Line indented incorrectly; expected at least 8 spaces, found 2
(#200) No space found before comment text; expected "// if the item definitely depends on a hidden item" but found "//if the item definitely depends on a hidden item"
(#201) Spaces must be used for alignment; tabs are not allowed
(#201) Tab found within whitespace
(#201) Line indented incorrectly; expected 8 spaces, found 2
(#201) Variable "course_item" must not contain underscores.
(#201) Variable "hiding_affected" must not contain underscores.
(#202) Spaces must be used for alignment; tabs are not allowed
(#202) Tab found within whitespace
(#202) Line indented incorrectly; expected 12 spaces, found 3
(#202) Expected "if (...) {\n"; found "if(...) {\n"
(#203) Spaces must be used for alignment; tabs are not allowed
(#203) Tab found within whitespace
(#203) Inline comments must start with a capital letter, digit or 3-dots sequence
(#203) Inline comments must end in full-stops, exclamation marks, or question marks
(#203) Line indented incorrectly; expected at least 16 spaces, found 4
(#203) No space found before comment text; expected "// hide the grade" but found "//hide the grade"
(#204) Spaces must be used for alignment; tabs are not allowed
(#204) Tab found within whitespace
(#204) Line indented incorrectly; expected at least 16 spaces, found 4
(#205) Spaces must be used for alignment; tabs are not allowed
(#205) Tab found within whitespace
(#205) Line indented incorrectly; expected 12 spaces, found 3
(#206) Spaces must be used for alignment; tabs are not allowed
(#206) Tab found within whitespace
(#206) Line indented incorrectly; expected 12 spaces, found 3
(#206) Expected "} else {\n"; found "}\n\t\t\telse {\n"
(#207) Spaces must be used for alignment; tabs are not allowed
(#207) Tab found within whitespace
(#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
(#207) Line indented incorrectly; expected at least 16 spaces, found 4
(#207) No space found before comment text; expected "// use reprocessed marks that exclude hidden items" but found "//use reprocessed marks that exclude hidden items"
(#208) Spaces must be used for alignment; tabs are not allowed
(#208) Tab found within whitespace
(#208) Line indented incorrectly; expected at least 16 spaces, found 4
(#208) Variable "hiding_affected" must not contain underscores.
(#208) Variable "course_item" must not contain underscores.
(#209) Spaces must be used for alignment; tabs are not allowed
(#209) Tab found within whitespace
(#209) Line indented incorrectly; expected 12 spaces, found 3
(#210) Spaces must be used for alignment; tabs are not allowed
(#210) Tab found within whitespace
(#210) Line indented incorrectly; expected 8 spaces, found 2
(#210) Variable "hiding_affected" must not contain underscores.
(#210) Variable "course_item" must not contain underscores.
(#211) Spaces must be used for alignment; tabs are not allowed
(#211) Tab found within whitespace
(#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
(#211) Line indented incorrectly; expected at least 12 spaces, found 3
(#211) No space found before comment text; expected "// not sure whether or not this item depends on a hidden item" but found "//not sure whether or not this item depends on a hidden item"
(#212) Spaces must be used for alignment; tabs are not allowed
(#212) Tab found within whitespace
(#212) Line indented incorrectly; expected 12 spaces, found 3
(#212) Expected "if (...) {\n"; found "if(...) {\n"
(#213) Spaces must be used for alignment; tabs are not allowed
(#213) Tab found within whitespace
(#213) Inline comments must start with a capital letter, digit or 3-dots sequence
(#213) Inline comments must end in full-stops, exclamation marks, or question marks
(#213) Line indented incorrectly; expected at least 16 spaces, found 4
(#213) No space found before comment text; expected "// hide the grade" but found "//hide the grade"
(#214) Spaces must be used for alignment; tabs are not allowed
(#214) Tab found within whitespace
(#214) Line indented incorrectly; expected at least 16 spaces, found 4
(#215) Spaces must be used for alignment; tabs are not allowed
(#215) Tab found within whitespace
(#215) Line indented incorrectly; expected 12 spaces, found 3
(#216) Spaces must be used for alignment; tabs are not allowed
(#216) Tab found within whitespace
(#216) Line indented incorrectly; expected 12 spaces, found 3
(#216) Expected "} else {\n"; found "}\n\t\t\telse {\n"
(#217) Spaces must be used for alignment; tabs are not allowed
(#217) Tab found within whitespace
(#217) Inline comments must start with a capital letter, digit or 3-dots sequence
(#217) Inline comments must end in full-stops, exclamation marks, or question marks
(#217) Line indented incorrectly; expected at least 16 spaces, found 4
(#217) No space found before comment text; expected "// use reprocessed marks that exclude hidden items" but found "//use reprocessed marks that exclude hidden items"
(#218) Spaces must be used for alignment; tabs are not allowed
(#218) Tab found within whitespace
(#218) Line indented incorrectly; expected at least 16 spaces, found 4
(#218) Variable "hiding_affected" must not contain underscores.
(#218) Variable "course_item" must not contain underscores.
(#219) Spaces must be used for alignment; tabs are not allowed
(#219) Tab found within whitespace
(#219) Line indented incorrectly; expected 12 spaces, found 3
(#220) Spaces must be used for alignment; tabs are not allowed
(#220) Tab found within whitespace
(#220) Line indented incorrectly; expected 8 spaces, found 2
(#222) Spaces must be used for alignment; tabs are not allowed
(#222) Tab found within whitespace
(#222) Line indented incorrectly; expected at least 8 spaces, found 2
(#223) Spaces must be used for alignment; tabs are not allowed
(#223) Tab found within whitespace
(#223) Line indented incorrectly; expected 4 spaces, found 1
(#226) A closing tag is not permitted at the end of a PHP file
blocks/my_grades/lang/en/block_my_grades.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#26) Spaces must be used to indent lines; tabs are not allowed
(#26) Tab found within whitespace
(#26) Expected 1 space before "="; 0 found
(#26) Expected 1 space after "="; 0 found
(#27) Spaces must be used to indent lines; tabs are not allowed
(#27) Tab found within whitespace
(#27) Expected 1 space before "="; 0 found
(#27) Expected 1 space after "="; 0 found
(#28) Spaces must be used to indent lines; tabs are not allowed
(#28) Tab found within whitespace
(#28) Expected 1 space before "="; 0 found
(#28) Expected 1 space after "="; 0 found
(#29) Spaces must be used to indent lines; tabs are not allowed
(#29) Tab found within whitespace
(#29) Expected 1 space before "="; 0 found
(#29) Expected 1 space after "="; 0 found
(#30) Spaces must be used to indent lines; tabs are not allowed
(#30) Tab found within whitespace
(#31) Spaces must be used to indent lines; tabs are not allowed
(#31) Tab found within whitespace
(#32) Spaces must be used to indent lines; tabs are not allowed
(#32) Tab found within whitespace
(#33) Spaces must be used to indent lines; tabs are not allowed
(#33) Tab found within whitespace
blocks/my_grades/version.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#26) Spaces must be used to indent lines; tabs are not allowed
(#26) Tab found within whitespace
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#26) Expected 1 space before "="; 0 found
(#26) Expected 1 space after "="; 0 found
(#27) Spaces must be used to indent lines; tabs are not allowed
(#27) Tab found within whitespace
(#28) Spaces must be used to indent lines; tabs are not allowed
(#28) Tab found within whitespace
(#28) Expected 1 space before "="; 0 found
(#28) Expected 1 space after "="; 0 found
(#29) Spaces must be used to indent lines; tabs are not allowed
(#29) Tab found within whitespace
(#30) Spaces must be used to indent lines; tabs are not allowed
(#30) Tab found within whitespace

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 1 warnings)

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

blocks/my_grades/styles.css
(#2) Unknown property 'cell-spacing'.

PHPDocs style problems

(12 errors, 3 warnings)

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

blocks/my_grades/block_my_grades.php
(#2) Empty line found after PHP open tag
(#31) Class block_my_grades is not documented
(#32) Function block_my_grades::init is not documented
(#36) Function block_my_grades::get_content is not documented
(#78) Function block_my_grades::instance_allow_multiple is not documented
(#82) Function block_my_grades::html_attributes is not documented
(#88) Function block_my_grades::grade_data is not documented
(#46) Found comment starting with three or more slashes
(#143) Phpdocs for function block_my_grades::blank_hidden_total has incomplete parameters list
(#18) File-level phpdocs block does not have @copyright tag
blocks/my_grades/db/access.php
(#17) File-level phpdocs block does not have @copyright tag
blocks/my_grades/lang/en/block_my_grades.php
(#2) Empty line found after PHP open tag
(#18) File-level phpdocs block does not have @copyright tag
blocks/my_grades/version.php
(#2) Empty line found after PHP open tag
(#18) File-level phpdocs block does not have @copyright tag

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]