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

(63 errors, 20 warnings)

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

blocks/public_files/block_public_files.php
(#26) Expected MOODLE_INTERNAL check or config.php inclusion
(#28) Visibility must be declared on method "init"
(#32) Visibility must be declared on method "has_config"
(#36) Visibility must be declared on method "specialization"
(#37) Line exceeds 132 characters; contains 153 characters
(#40) Visibility must be declared on method "applicable_formats"
(#44) Visibility must be declared on method "instance_allow_multiple"
(#48) Visibility must be declared on method "get_content"
(#51) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#61) Inline comments must end in full-stops, exclamation marks, or question marks
(#64) No space found before comment text; expected "// TODO: add capability check here!" but found "//TODO: add capability check here!"
(#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) This comment is 63% valid code; is this commented out code?
(#69) Line indented incorrectly; expected at least 16 spaces, found 12
blocks/public_files/edit_form.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion
(#36) Visibility must be declared on method "set_data"
(#38) Inline comments must end in full-stops, exclamation marks, or question marks
(#45) 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
(#48) Inline comments must start with a capital letter, digit or 3-dots sequence
(#48) Inline comments must end in full-stops, exclamation marks, or question marks
(#53) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/public_files/files.php
(#32) Spaces must be used to indent lines; tabs are not allowed
(#32) Tab found within whitespace
(#32) Line indented incorrectly; expected at least 4 spaces, found 1
(#35) Spaces must be used to indent lines; tabs are not allowed
(#35) Tab found within whitespace
(#35) Line indented incorrectly; expected at least 4 spaces, found 1
blocks/public_files/lib.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) Expected MOODLE_INTERNAL check or config.php inclusion
(#5) Spaces must be used to indent lines; tabs are not allowed
(#5) Tab found within whitespace
(#5) Line indented incorrectly; expected at least 4 spaces, found 1
(#7) Spaces must be used to indent lines; tabs are not allowed
(#7) Tab found within whitespace
(#7) Line indented incorrectly; expected 4 spaces, found 1
(#8) Spaces must be used to indent lines; tabs are not allowed
(#8) Tab found within whitespace
(#8) Line indented incorrectly; expected at least 8 spaces, found 5
(#9) Spaces must be used to indent lines; tabs are not allowed
(#9) Tab found within whitespace
(#9) Line indented incorrectly; expected 4 spaces, found 1
(#11) Spaces must be used to indent lines; tabs are not allowed
(#11) Tab found within whitespace
(#11) Line indented incorrectly; expected at least 4 spaces, found 1
(#12) Spaces must be used to indent lines; tabs are not allowed
(#12) Tab found within whitespace
(#12) Line indented incorrectly; expected at least 4 spaces, found 1
(#13) Spaces must be used to indent lines; tabs are not allowed
(#13) Tab found within whitespace
(#13) Line indented incorrectly; expected at least 4 spaces, found 1
(#15) Spaces must be used to indent lines; tabs are not allowed
(#15) Tab found within whitespace
(#15) Line indented incorrectly; expected 4 spaces, found 1
(#16) Spaces must be used to indent lines; tabs are not allowed
(#16) Tab found within whitespace
(#16) Line indented incorrectly; expected at least 8 spaces, found 2
(#17) Spaces must be used to indent lines; tabs are not allowed
(#17) Tab found within whitespace
(#17) Line indented incorrectly; expected 4 spaces, found 1
(#19) Spaces must be used to indent lines; tabs are not allowed
(#19) Tab found within whitespace
(#19) Line indented incorrectly; expected at least 4 spaces, found 1
(#20) Spaces must be used to indent lines; tabs are not allowed
(#20) Tab found within whitespace
(#20) Line indented incorrectly; expected at least 4 spaces, found 1
blocks/public_files/renderer.php
(#38) Expected 1 space before "=>"; 0 found
(#38) Expected 1 space after "=>"; 0 found
(#38) Expected 1 space before "=>"; 0 found
(#38) Expected 1 space after "=>"; 0 found
(#38) Expected 1 space before "=>"; 0 found
(#38) Expected 1 space after "=>"; 0 found
(#38) Line exceeds 132 characters; contains 136 characters
(#65) Expected 1 space before "=>"; 0 found
(#65) Expected 1 space after "=>"; 0 found
(#66) Line exceeds 132 characters; contains 161 characters
(#69) Line exceeds 132 characters; contains 169 characters
(#71) Expected 1 space before "=>"; 0 found
(#71) Expected 1 space after "=>"; 0 found
(#72) Line exceeds 132 characters; contains 133 characters
blocks/public_files/version.php
(#29) Inline comments must end in full-stops, exclamation marks, or question marks
(#32) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(1 errors, 4 warnings)

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

blocks/public_files/module.js
(#24) Identifier 'block_public_files' is not in camel case. (camelcase)
(#26) Identifier 'init_tree' is not in camel case. (camelcase)
(#26) Identifier 'expand_all' is not in camel case. (camelcase)
(#30) 'event' is defined but never used. (no-unused-vars)
(#35) Identifier 'expand_all' is not in camel case. (camelcase)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(20 errors, 1 warnings)

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

blocks/public_files/block_public_files.php
(#26) Class block_public_files is not documented
(#28) Function block_public_files::init is not documented
(#32) Function block_public_files::has_config is not documented
(#36) Function block_public_files::specialization is not documented
(#40) Function block_public_files::applicable_formats is not documented
(#44) Function block_public_files::instance_allow_multiple is not documented
(#48) Function block_public_files::get_content is not documented
blocks/public_files/edit_form.php
(#25) Class block_public_files_edit_form is not documented
(#26) Function block_public_files_edit_form::specific_definition is not documented
(#36) Function block_public_files_edit_form::set_data is not documented
blocks/public_files/lib.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#3) Function block_public_files_pluginfile is not documented
(#3) Package is not specified for function block_public_files_pluginfile. It is also not specified in file-level phpdocs
blocks/public_files/renderer.php
(#27) Class block_public_files_renderer is not documented
(#80) Class public_files_tree is not documented
(#37) Function block_public_files_renderer::render_public_files_tree is not documented
(#83) Function public_files_tree::__construct is not documented
(#81) Variable public_files_tree::$context is not documented
(#82) Variable public_files_tree::$dir is not documented
(#52) Phpdocs for function block_public_files_renderer::htmllize_tree has incomplete parameters list

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]