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

(23 errors, 12 warnings)

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

blocks/sharedresources/block_sharedresources.php
(#30) Visibility must be declared on method "init"
(#35) Visibility must be declared on method "has_config"
(#39) Visibility must be declared on method "get_content"
(#42) Expected "if (...) {\n"; found "if(...) {\n"
blocks/sharedresources/import_collect_form.php
(#19) Inline doc block comments are not allowed; use "// Comment." instead
blocks/sharedresources/importresourcesfromfiles.php
(#26) Whitespace found at end of line
(#51) Inline comments must start with a capital letter, digit or 3-dots sequence
(#65) Inline comments must end in full-stops, exclamation marks, or question marks
(#65) 3 slashes comments are not allowed; use "// Comment." instead
(#81) Inline comments must start with a capital letter, digit or 3-dots sequence
(#81) Inline comments must end in full-stops, exclamation marks, or question marks
(#104) Usage of ELSEIF not allowed; use ELSE IF instead
(#106) Inline comments must start with a capital letter, digit or 3-dots sequence
(#107) Line exceeds 132 characters; contains 163 characters
blocks/sharedresources/lang/en/block_sharedresources.php
(#2) The opening <?php tag must be followed by exactly one newline.
blocks/sharedresources/lang/fr/block_sharedresources.php
(#2) The opening <?php tag must be followed by exactly one newline.
blocks/sharedresources/lib.php
(#19) Inline doc block comments are not allowed; use "// Comment." instead
(#30) Expected 1 space(s) before asterisk; 0 found
(#31) Expected 1 space(s) before asterisk; 0 found
(#32) Expected 1 space(s) before asterisk; 0 found
(#32) Whitespace found at end of line
(#33) Expected 1 space(s) before asterisk; 0 found
(#34) Expected 1 space(s) before asterisk; 0 found
(#44) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#72) Expected 1 space before "=>"; 0 found
(#88) Inline comments must start with a capital letter, digit or 3-dots sequence
(#88) Inline comments must end in full-stops, exclamation marks, or question marks
(#97) Expected "try {\n...} catch (...) {\n"; found "try {\n...} catch(...) {\n"
(#128) The use of function print_object() is forbidden
(#194) Line exceeds 132 characters; contains 155 characters
blocks/sharedresources/metadata_collect_form.php
(#19) Inline doc block comments are not allowed; use "// Comment." instead
(#44) Inline comments must start with a capital letter, digit or 3-dots sequence
(#44) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/sharedresources/version.php
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
(#31) Whitespace found at end of line

Javascript coding style problems

(0 errors, 4 warnings)

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

blocks/sharedresources/js/js.js
(#4) ['importfilesasresources'] is better written in dot notation.
(#13) ['importfilesasresources'] is better written in dot notation.
(#3) 'importuncheckall' is defined but never used.
(#12) 'importcheckall' is defined but never used.

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(33 errors, 2 warnings)

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

blocks/sharedresources/block_sharedresources.php
(#17) File-level phpdocs block is not found
(#28) Class block_sharedresources is not documented
(#30) Function block_sharedresources::init is not documented
(#35) Function block_sharedresources::has_config is not documented
(#39) Function block_sharedresources::get_content is not documented
(#28) Package is not specified for class block_sharedresources. It is also not specified in file-level phpdocs
(#21) Package blocks is not valid
blocks/sharedresources/db/access.php
(#21) Category blocks is not valid
blocks/sharedresources/import_collect_form.php
(#17) File-level phpdocs block is not found
(#29) Class import_collect_form is not documented
(#31) Function import_collect_form::definition is not documented
(#43) Function import_collect_form::validation is not documented
(#29) Package is not specified for class import_collect_form. It is also not specified in file-level phpdocs
(#21) Category blocks is not valid
blocks/sharedresources/importresourcesfromfiles.php
(#65) Found comment starting with three or more slashes
(#17) No one-line description found in phpdocs for file
(#19) Category blocks is not valid
blocks/sharedresources/lang/en/block_sharedresources.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
blocks/sharedresources/lang/fr/block_sharedresources.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
blocks/sharedresources/lib.php
(#17) File-level phpdocs block is not found
(#62) Function sharedresources_process_single_entry is not documented
(#29) Phpdocs for function sharedresources_process_entries has incomplete parameters list
(#29) Package is not specified for function sharedresources_process_entries. It is also not specified in file-level phpdocs
(#62) Package is not specified for function sharedresources_process_single_entry. It is also not specified in file-level phpdocs
(#21) Category blocks is not valid
blocks/sharedresources/metadata_collect_form.php
(#17) File-level phpdocs block is not found
(#30) Class metadata_collect_form is not documented
(#32) Function metadata_collect_form::definition is not documented
(#91) Function metadata_collect_form::validation is not documented
(#30) Package is not specified for class metadata_collect_form. It is also not specified in file-level phpdocs
(#21) Package block_sharedresource is not valid
(#22) Category blocks is not valid
blocks/sharedresources/version.php
(#21) Category blocks 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]


Mustache template problems

(0 errors, 0 warnings)

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