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

(55 errors, 3 warnings)

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

blocks/my_enrolled_courses/block_my_enrolled_courses.php
(#37) Spaces must be used to indent lines; tabs are not allowed
(#38) Spaces must be used to indent lines; tabs are not allowed
(#39) Spaces must be used to indent lines; tabs are not allowed
(#39) Line indented incorrectly; expected 4 spaces, found 2
(#44) Line indented incorrectly; expected 4 spaces, found 8
(#46) Line indented incorrectly; expected 4 spaces, found 8
(#50) Line indented incorrectly; expected 4 spaces, found 8
(#53) Line indented incorrectly; expected 4 spaces, found 8
blocks/my_enrolled_courses/db/upgrade.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#25) Expected MOODLE_INTERNAL check or config.php inclusion
(#27) Whitespace found at end of line
(#29) Whitespace found at end of line
(#42) Whitespace found at end of line
blocks/my_enrolled_courses/locallib.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#27) Expected MOODLE_INTERNAL check or config.php inclusion
(#40) Variable "courses_diff" must not contain underscores.
(#41) Expected "if (...) {\n"; found "if(...) {\n"
(#41) Variable "courses_diff" must not contain underscores.
(#118) Whitespace found at end of line
(#125) Whitespace found at end of line
(#127) Spaces must be used to indent lines; tabs are not allowed
(#127) Tab found within whitespace
(#127) Line indented incorrectly; expected at least 8 spaces, found 4
(#128) Spaces must be used to indent lines; tabs are not allowed
(#128) Tab found within whitespace
(#128) Line indented incorrectly; expected at least 8 spaces, found 4
(#129) Spaces must be used to indent lines; tabs are not allowed
(#129) Tab found within whitespace
(#129) Line indented incorrectly; expected at least 8 spaces, found 4
(#131) Whitespace found at end of line
(#187) Spaces must be used to indent lines; tabs are not allowed
(#187) Tab found within whitespace
(#187) Line indented incorrectly; expected at least 8 spaces, found 6
(#212) Variable "mod_info" must not contain underscores.
(#214) Expected "if (...) {\n"; found "if(...) {\n"
(#214) Variable "mod_info" must not contain underscores.
(#217) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#217) Variable "mod_info" must not contain underscores.
(#218) Expected "if (...) {\n"; found "if(...) {\n"
(#220) Variable "mod_url" must not contain underscores.
(#221) Expected "if (...) {\n"; found "if(...) {\n"
(#222) Spaces must be used to indent lines; tabs are not allowed
(#222) Tab found within whitespace
(#222) Line indented incorrectly; expected at least 20 spaces, found 17
(#222) Variable "mod_url" must not contain underscores.
(#224) Spaces must be used to indent lines; tabs are not allowed
(#224) Tab found within whitespace
(#224) Line indented incorrectly; expected at least 20 spaces, found 17
(#224) Variable "mod_url" must not contain underscores.
(#226) Variable "mod_url" must not contain underscores.
(#239) Whitespace found at end of line
(#241) Expected "if (...) {\n"; found "if(...) {\n"
(#246) Whitespace found at end of line
(#258) Expected "if (...) {\n"; found "if(...) {\n"
(#263) Expected "if (...) {\n"; found "if(...) {\n"
blocks/my_enrolled_courses/showhide.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
blocks/my_enrolled_courses/sorting.ajax.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#25) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.

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

(51 errors, 0 warnings)

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

blocks/my_enrolled_courses/style.css
(#1) Expected newline before "}" (block-closing-brace-newline-before)
(#2) Expected newline before "}" (block-closing-brace-newline-before)
(#3) Expected newline before "}" (block-closing-brace-newline-before)
(#4) Expected newline before "}" (block-closing-brace-newline-before)
(#5) Expected newline before "}" (block-closing-brace-newline-before)
(#6) Expected newline before "}" (block-closing-brace-newline-before)
(#7) Expected newline before "}" (block-closing-brace-newline-before)
(#8) Expected newline before "}" (block-closing-brace-newline-before)
(#9) Expected newline before "}" (block-closing-brace-newline-before)
(#10) Expected newline before "}" (block-closing-brace-newline-before)
(#1) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#2) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#3) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#4) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#5) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#6) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#7) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#8) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#9) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#10) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#1) Expected newline after "{" (block-opening-brace-newline-after)
(#2) Expected newline after "{" (block-opening-brace-newline-after)
(#3) Expected newline after "{" (block-opening-brace-newline-after)
(#4) Expected newline after "{" (block-opening-brace-newline-after)
(#5) Expected newline after "{" (block-opening-brace-newline-after)
(#6) Expected newline after "{" (block-opening-brace-newline-after)
(#7) Expected newline after "{" (block-opening-brace-newline-after)
(#8) Expected newline after "{" (block-opening-brace-newline-after)
(#9) Expected newline after "{" (block-opening-brace-newline-after)
(#10) Expected newline after "{" (block-opening-brace-newline-after)
(#1) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#2) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#3) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#4) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#5) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#6) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#7) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#8) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#9) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#10) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#1) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#2) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#2) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#8) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#8) Expected single space after ";" in a single-line declaration block (declaration-block-semicolon-space-after)
(#1) Expected no more than 1 declaration (declaration-block-single-line-max-declarations)
(#2) Expected no more than 1 declaration (declaration-block-single-line-max-declarations)
(#8) Expected no more than 1 declaration (declaration-block-single-line-max-declarations)
(#10) Expected no more than 1 declaration (declaration-block-single-line-max-declarations)
(#2) Expected newline after "," (selector-list-comma-newline-after)
(#7) Expected newline after "," (selector-list-comma-newline-after)

PHPDocs style problems

(20 errors, 0 warnings)

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

blocks/my_enrolled_courses/block_my_enrolled_courses.php
(#20) Package block is not valid
(#29) Class block_my_enrolled_courses is not documented
(#30) Function block_my_enrolled_courses::init is not documented
(#34) Function block_my_enrolled_courses::get_content is not documented
blocks/my_enrolled_courses/db/access.php
(#20) Package block is not valid
blocks/my_enrolled_courses/db/upgrade.php
(#20) Package block is not valid
(#17) File-level phpdocs block is not found
(#17) Phpdocs for function xmldb_block_my_enrolled_courses_upgrade has incomplete parameters list
blocks/my_enrolled_courses/lang/en/block_my_enrolled_courses.php
(#20) Package block is not valid
blocks/my_enrolled_courses/locallib.php
(#20) Package block is not valid
(#27) Function block_my_enrolled_courses_show_courses is not documented
(#57) Function block_my_enrolled_courses_hide_courses is not documented
(#103) Function block_my_enrolled_courses_get_visible_courses is not documented
(#137) Function block_my_enrolled_courses_get_hidden_courses is not documented
(#174) Function block_my_enrolled_courses_visible_in_block is not documented
(#209) Function block_my_enrolled_courses_course_modules is not documented
(#237) Function block_my_enrolled_courses_manage_courses is not documented
blocks/my_enrolled_courses/showhide.php
(#20) Package block is not valid
blocks/my_enrolled_courses/sorting.ajax.php
(#20) Package block is not valid
blocks/my_enrolled_courses/version.php
(#20) Package block 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

(1 errors, 1 warnings)

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

Problems running grunt
Task "stylelint:css" failed. Use --force to continue.

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]