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

(130 errors, 11 warnings)

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

blocks/open_courses/block_open_courses.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#25) File is being unconditionally included; use "require_once" instead
(#26) File is being unconditionally included; use "require_once" instead
(#29) Visibility must be declared on method "init"
(#33) Visibility must be declared on method "get_content"
(#36) Expected "if (...) {\n"; found "if(...) {\n"
(#36) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#40) Spaces must be used for alignment; tabs are not allowed
(#40) Tab found within whitespace
(#40) Whitespace found at end of line
(#42) Spaces must be used for alignment; tabs are not allowed
(#42) Tab found within whitespace
(#42) Whitespace found at end of line
(#43) Spaces must be used for alignment; tabs are not allowed
(#43) Tab found within whitespace
(#43) Whitespace found at end of line
(#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
(#44) Expected 1 space before "="; 0 found
(#45) Spaces must be used for alignment; tabs are not allowed
(#45) Tab found within whitespace
(#45) Line indented incorrectly; expected at least 8 spaces, found 2
(#45) Expected 1 space before "="; 0 found
(#46) Whitespace found at end of line
(#48) Whitespace found at end of line
(#49) Spaces must be used for alignment; tabs are not allowed
(#49) Tab found within whitespace
(#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
(#50) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#50) Inline comments must start with a capital letter, digit or 3-dots sequence
(#50) No space found before comment text; expected "// get all courses the user can view" but found "//get all courses the user can view"
(#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
(#51) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#51) Inline comments must end in full-stops, exclamation marks, or question marks
(#51) No space found before comment text; expected "// get all courses the user is enrolled in" but found "//get all courses the user is enrolled in"
(#52) Spaces must be used for alignment; tabs are not allowed
(#52) Tab found within whitespace
(#52) Whitespace found at end of line
(#53) Spaces must be used for alignment; tabs are not allowed
(#53) Tab found within whitespace
(#53) Inline comments must start with a capital letter, digit or 3-dots sequence
(#53) Inline comments must end in full-stops, exclamation marks, or question marks
(#53) Line indented incorrectly; expected at least 8 spaces, found 2
(#53) No space found before comment text; expected "// skip for admins" but found "//skip for admins"
(#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
(#55) Spaces must be used for alignment; tabs are not allowed
(#55) Tab found within whitespace
(#55) Line indented incorrectly; expected at least 12 spaces, found 3
(#56) Spaces must be used for alignment; tabs are not allowed
(#56) Tab found within whitespace
(#56) Line indented incorrectly; expected 8 spaces, found 2
(#57) Spaces must be used for alignment; tabs are not allowed
(#57) Tab found within whitespace
(#57) Line indented incorrectly; expected 8 spaces, found 2
(#57) Expected "} else {\n"; found "}\n\t\telse {\n"
(#58) Spaces must be used for alignment; tabs are not allowed
(#58) Tab found within whitespace
(#58) Whitespace found at end of line
(#59) Spaces must be used for alignment; tabs are not allowed
(#59) Tab found within whitespace
(#59) Inline comments must start with a capital letter, digit or 3-dots sequence
(#59) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) Line indented incorrectly; expected at least 12 spaces, found 3
(#59) No space found before comment text; expected "// collect courses the user can view but is not enrolled in" but found "//collect courses the user can view but is not enrolled in"
(#60) Spaces must be used for alignment; tabs are not allowed
(#60) Tab found within whitespace
(#60) Line indented incorrectly; expected 12 spaces, found 3
(#61) Spaces must be used for alignment; tabs are not allowed
(#61) Tab found within whitespace
(#61) Line indented incorrectly; expected 16 spaces, found 4
(#61) Expected "if (...) {\n"; found "if(...) {\n"
(#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
(#63) Spaces must be used for alignment; tabs are not allowed
(#63) Tab found within whitespace
(#63) Line indented incorrectly; expected 16 spaces, found 4
(#64) Spaces must be used for alignment; tabs are not allowed
(#64) Tab found within whitespace
(#64) Line indented incorrectly; expected 12 spaces, found 3
(#64) Spaces must be used for alignment; tabs are not allowed
(#64) Tab found within whitespace
(#64) Whitespace found at end of line
(#65) Spaces must be used for alignment; tabs are not allowed
(#65) Tab found within whitespace
(#65) Whitespace found at end of line
(#66) Spaces must be used for alignment; tabs are not allowed
(#66) Tab found within whitespace
(#66) Inline comments must start with a capital letter, digit or 3-dots sequence
(#66) Inline comments must end in full-stops, exclamation marks, or question marks
(#66) Line indented incorrectly; expected at least 12 spaces, found 3
(#66) No space found before comment text; expected "// display courses" but found "//display courses"
(#67) Spaces must be used for alignment; tabs are not allowed
(#67) Tab found within whitespace
(#67) Line indented incorrectly; expected 12 spaces, found 3
(#68) Spaces must be used for alignment; tabs are not allowed
(#68) Tab found within whitespace
(#68) Whitespace found at end of line
(#69) Spaces must be used for alignment; tabs are not allowed
(#69) Tab found within whitespace
(#69) Line indented incorrectly; expected at least 16 spaces, found 5
(#70) Spaces must be used for alignment; tabs are not allowed
(#70) Tab found within whitespace
(#70) Line indented incorrectly; expected at least 16 spaces, found 5
(#71) Spaces must be used for alignment; tabs are not allowed
(#71) Tab found within whitespace
(#71) Line indented incorrectly; expected at least 16 spaces, found 5
(#71) Expected 1 space before "="; 0 found
(#71) Expected 1 space after "="; 0 found
(#71) Line exceeds 132 characters; contains 138 characters
(#72) Spaces must be used for alignment; tabs are not allowed
(#72) Tab found within whitespace
(#72) Line indented incorrectly; expected at least 16 spaces, found 10
(#72) Line exceeds 132 characters; contains 138 characters
(#73) Spaces must be used for alignment; tabs are not allowed
(#73) Tab found within whitespace
(#73) Whitespace found at end of line
(#74) Spaces must be used for alignment; tabs are not allowed
(#74) Tab found within whitespace
(#74) Line indented incorrectly; expected 12 spaces, found 3
(#75) Spaces must be used for alignment; tabs are not allowed
(#75) Tab found within whitespace
(#75) Line indented incorrectly; expected at least 12 spaces, found 3
(#76) Spaces must be used for alignment; tabs are not allowed
(#76) Tab found within whitespace
(#76) Whitespace found at end of line
(#77) Spaces must be used for alignment; tabs are not allowed
(#77) Tab found within whitespace
(#77) Line indented incorrectly; expected 8 spaces, found 2
(#78) Spaces must be used for alignment; tabs are not allowed
(#78) Tab found within whitespace
(#78) Whitespace found at end of line
blocks/open_courses/version.php
(#29) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(3 errors, 0 warnings)

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

blocks/open_courses/block_open_courses.php
(#28) Class block_open_courses is not documented
(#29) Function block_open_courses::init is not documented
(#33) Function block_open_courses::get_content is not documented

Update savepoints problems

(0 errors, 0 warnings)

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


Third party library modification problems

(0 errors, 0 warnings)

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


grunt changes

(0 errors, 0 warnings)

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


shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 0 warnings)

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