Prechecker results: error


Overview

(0 errors, 0 warnings)

This section shows the general problems detected when processing the code [More info]


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

(49 errors, 54 warnings)

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

blocks/analytics/backup/moodle1/lib.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#31) Missing member variable doc comment
(#32) Missing docblock for function convert_configdata
(#40) Inline comments must start with a capital letter, digit or 3-dots sequence
(#40) Inline comments must end in full-stops, exclamation marks, or question marks
(#43) Inline comments must start with a capital letter, digit or 3-dots sequence
(#43) Inline comments must end in full-stops, exclamation marks, or question marks
(#52) Missing docblock for function write_inforef_xml
(#57) Short array syntax must be used to define arrays
blocks/analytics/backup/moodle2/backup_html_block_task.class.php
(#1) No one-line description found in phpdocs for docblock of file backup_html_block_task.class.php
(#32) Missing docblock for function define_my_settings
(#35) Missing docblock for function define_my_steps
(#38) Missing docblock for function get_fileareas
(#39) Short array syntax must be used to define arrays
(#42) Missing docblock for function get_configdata_encoded_attributes
(#43) Short array syntax must be used to define arrays
(#43) Inline comments must end in full-stops, exclamation marks, or question marks
(#46) The static declaration must come after the visibility declaration
(#46) Missing docblock for function encode_content_links
(#47) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/analytics/backup/moodle2/restore_html_block_task.class.php
(#1) No one-line description found in phpdocs for docblock of file restore_html_block_task.class.php
(#30) Expected MOODLE_INTERNAL check or config.php inclusion. Multiple artifacts detected.
(#32) Missing docblock for function define_my_settings
(#35) Missing docblock for function define_my_steps
(#38) Missing docblock for function get_fileareas
(#39) Short array syntax must be used to define arrays
(#42) Missing docblock for function get_configdata_encoded_attributes
(#43) Short array syntax must be used to define arrays
(#43) Inline comments must end in full-stops, exclamation marks, or question marks
(#46) The static declaration must come after the visibility declaration
(#46) Missing docblock for function define_decode_contents
(#48) Short array syntax must be used to define arrays
(#55) The static declaration must come after the visibility declaration
(#55) Missing docblock for function define_decode_rules
(#56) Short array syntax must be used to define arrays
(#67) Missing member variable doc comment
(#67) Inline comments must end in full-stops, exclamation marks, or question marks
(#69) Missing docblock for function get_iterator
(#72) Inline comments must end in full-stops, exclamation marks, or question marks
(#80) Short array syntax must be used to define arrays
(#84) Missing docblock for function preprocess_field
(#89) Missing docblock for function postprocess_field
blocks/analytics/block_analytics.php
(#29) Missing docblock for class block_analytics
(#36) Visibility must be declared on method "init"
(#45) Visibility must be declared on method "has_config"
(#54) Visibility must be declared on method "applicable_formats"
(#55) Short array syntax must be used to define arrays
(#63) Visibility must be declared on method "specialization"
(#76) Visibility must be declared on method "instance_allow_multiple"
(#86) Visibility must be declared on method "get_content"
(#123) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#130) Inline comments must start with a capital letter, digit or 3-dots sequence
(#138) Inline comments must start with a capital letter, digit or 3-dots sequence
(#138) Inline comments must end in full-stops, exclamation marks, or question marks
(#139) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#139) Line exceeds 132 characters; contains 158 characters
(#145) Inline comments must start with a capital letter, digit or 3-dots sequence
(#145) Inline comments must end in full-stops, exclamation marks, or question marks
(#155) Visibility must be declared on method "instance_delete"
(#172) Short array syntax must be used to define arrays
(#173) Short array syntax must be used to define arrays
(#183) Visibility must be declared on method "content_is_trusted"
(#189) Inline comments must start with a capital letter, digit or 3-dots sequence
(#189) Inline comments must end in full-stops, exclamation marks, or question marks
(#189) No space found before comment text; expected "// find out if this block is on the profile page" but found "//find out if this block is on the profile page"
(#192) Inline comments must start with a capital letter, digit or 3-dots sequence
(#193) Inline comments must end in full-stops, exclamation marks, or question marks
(#196) Inline comments must start with a capital letter, digit or 3-dots sequence
(#196) Inline comments must end in full-stops, exclamation marks, or question marks
(#219) Visibility must be declared on method "html_attributes"
blocks/analytics/classes/privacy/provider.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#29) Missing docblock for class provider
(#37) There must not be a space before the colon in a return type declaration
(#40) File must end with a newline character
blocks/analytics/db/upgrade.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
blocks/analytics/edit_form.php
(#27) Missing docblock for class block_analytics_edit_form
(#63) Visibility must be declared on method "set_data"
(#66) Variable "draftid_editor" must not contain underscores.
(#72) Variable "draftid_editor" must not contain underscores.
(#72) Short array syntax must be used to define arrays
(#72) Line exceeds maximum limit of 180 characters; contains 186 characters
(#73) Variable "draftid_editor" must not contain underscores.
(#80) Inline comments must end in full-stops, exclamation marks, or question marks
(#87) 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
(#91) Inline comments must start with a capital letter, digit or 3-dots sequence
(#91) Inline comments must end in full-stops, exclamation marks, or question marks
(#97) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/analytics/lang/en/block_analytics.php
(#31) The string key "analytics:addinstance" is not in the correct order, it should be before "configtitle"
(#36) The string key "privacy:metadata" is not in the correct order, it should be before "search:content"
(#38) The string key "metabasekey" is not in the correct order, it should be before "privacy:metadata"
(#44) The string key "extraurlparams" is not in the correct order, it should be before "payload_desc"
(#46) The string key "dashboard" is not in the correct order, it should be before "extraurlparams_desc"
(#49) The string key "iframeheight" is not in the correct order, it should be before "iframewidth_desc"
(#52) The string key "analytics:view" is not in the correct order, it should be before "needadminpermission"
(#54) Unexpected comment found. Auto-fixing will not work after this comment
(#56) The string key "errorsetaudience" is not in the correct order, it should be before "nopermissiontoview"
(#57) The string key "errorjson" is not in the correct order, it should be before "errorsetaudience"
(#58) Unexpected string end, it should be a line feed after a semicolon
(#58) File must end with a newline character
blocks/analytics/settings.php
(#40) File must end with a newline character
blocks/analytics/version.php
(#29) Inline comments must end in full-stops, exclamation marks, or question marks
(#34) File must end with a newline character

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

(0 errors, 0 warnings)

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


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]


Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]