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

(94 errors, 16 warnings)

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

availability/condition/message/classes/condition.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#56) Spaces must be used to indent lines; tabs are not allowed
(#56) Tab found within whitespace
(#56) Line indented incorrectly; expected at least 8 spaces, found 2
(#59) Missing docblock for function save
(#60) Short array syntax must be used to define arrays
(#61) Spaces must be used to indent lines; tabs are not allowed
(#61) Tab found within whitespace
(#61) Whitespace found at end of line
(#61) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#79) Short array syntax must be used to define arrays
(#84) Missing docblock for function is_available
(#85) Spaces must be used to indent lines; tabs are not allowed
(#85) Tab found within whitespace
(#85) Line indented incorrectly; expected at least 8 spaces, found 2
(#87) Spaces must be used to indent lines; tabs are not allowed
(#87) Tab found within whitespace
(#87) Line indented incorrectly; expected at least 8 spaces, found 2
(#88) Spaces must be used to indent lines; tabs are not allowed
(#88) Tab found within whitespace
(#88) Line indented incorrectly; expected at least 8 spaces, found 2
(#89) Spaces must be used to indent lines; tabs are not allowed
(#89) Tab found within whitespace
(#89) Line indented incorrectly; expected 8 spaces, found 2
(#89) Expected "if (...) {\n"; found "if(...)\n\t\t{\n"
(#90) Spaces must be used to indent lines; tabs are not allowed
(#90) Tab found within whitespace
(#90) Line indented incorrectly; expected at least 8 spaces, found 2
(#91) Spaces must be used to indent lines; tabs are not allowed
(#91) Tab found within whitespace
(#91) Line indented incorrectly; expected at least 12 spaces, found 3
(#92) Spaces must be used to indent lines; tabs are not allowed
(#92) Tab found within whitespace
(#92) Line indented incorrectly; expected at least 12 spaces, found 3
(#93) Spaces must be used to indent lines; tabs are not allowed
(#93) Tab found within whitespace
(#93) Line indented incorrectly; expected 12 spaces, found 3
(#93) Expected "if (...) {\n"; found "if(...)\n\t\t\t{\n"
(#94) Spaces must be used to indent lines; tabs are not allowed
(#94) Tab found within whitespace
(#94) Line indented incorrectly; expected at least 12 spaces, found 3
(#95) Spaces must be used to indent lines; tabs are not allowed
(#95) Tab found within whitespace
(#95) Line indented incorrectly; expected at least 16 spaces, found 4
(#96) Spaces must be used to indent lines; tabs are not allowed
(#96) Tab found within whitespace
(#96) Line indented incorrectly; expected 12 spaces, found 3
(#97) Spaces must be used to indent lines; tabs are not allowed
(#97) Tab found within whitespace
(#97) Line indented incorrectly; expected 8 spaces, found 2
(#98) Spaces must be used to indent lines; tabs are not allowed
(#98) Tab found within whitespace
(#98) Whitespace found at end of line
(#105) Missing docblock for function get_description
(#107) Spaces must be used to indent lines; tabs are not allowed
(#107) Tab found within whitespace
(#107) Line indented incorrectly; expected at least 8 spaces, found 2
(#111) Whitespace found at end of line
(#112) Empty IF statement detected
(#116) Whitespace found at end of line
(#118) Short array syntax must be used to define arrays
(#118) Line exceeds 132 characters; contains 157 characters
(#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 2
(#131) Spaces must be used to indent lines; tabs are not allowed
(#131) Tab found within whitespace
(#131) Line indented incorrectly; expected at least 8 spaces, found 2
(#131) Short array syntax must be used to define arrays
(#132) Spaces must be used to indent lines; tabs are not allowed
(#132) Tab found within whitespace
(#132) Whitespace found at end of line
(#133) Spaces must be used to indent lines; tabs are not allowed
(#133) Tab found within whitespace
(#133) Line indented incorrectly; expected 8 spaces, found 2
(#133) Expected "foreach (...) {\n"; found "foreach (...)\n\t\t{\n"
(#134) Spaces must be used to indent lines; tabs are not allowed
(#134) Tab found within whitespace
(#134) Line indented incorrectly; expected at least 8 spaces, found 2
(#135) Spaces must be used to indent lines; tabs are not allowed
(#135) Tab found within whitespace
(#135) Line indented incorrectly; expected at least 12 spaces, found 3
(#136) Spaces must be used to indent lines; tabs are not allowed
(#136) Tab found within whitespace
(#136) Line indented incorrectly; expected 8 spaces, found 2
(#137) Spaces must be used to indent lines; tabs are not allowed
(#137) Tab found within whitespace
(#137) Line indented incorrectly; expected at least 8 spaces, found 2
(#153) Whitespace found at end of line
(#155) Spaces must be used to indent lines; tabs are not allowed
(#155) Tab found within whitespace
(#155) Line indented incorrectly; expected 4 spaces, found 1
(#155) Missing docblock for function get_debug_string
(#157) Closing brace indented incorrectly; expected 1 spaces, found 4
availability/condition/message/classes/frontend.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#37) Missing docblock for function get_javascript_strings
(#38) Short array syntax must be used to define arrays
(#43) Missing docblock for function get_javascript_init_params
(#43) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $cm.
(#44) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $section.
(#49) Whitespace found at end of line
(#49) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#52) Short array syntax must be used to define arrays
availability/condition/message/classes/privacy/provider.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#43) There must not be a space before the colon in a return type declaration
(#46) File must end with a newline character
availability/condition/message/lang/en/availability_message.php
(#34) The string key "missing" is not in the correct order, it should be before "requires_message"
(#36) The string key "privacy:metadata" is not in the correct order, it should be before "title"
(#37) The string key "op_contains" is not in the correct order, it should be before "privacy:metadata"
(#41) The string key "op_isempty" is not in the correct order, it should be before "op_startswith"

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

(1 errors, 0 warnings)

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

availability/condition/message/classes/condition.php
(#72) Phpdocs for function condition::get_json 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

(3 errors, 0 warnings)

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

availability/condition/message/yui/build/moodle-availability_message-form/moodle-availability_message-form-debug.js
Uncommitted change detected.
availability/condition/message/yui/build/moodle-availability_message-form/moodle-availability_message-form-min.js
Uncommitted change detected.
availability/condition/message/yui/build/moodle-availability_message-form/moodle-availability_message-form.js
Uncommitted change detected.

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]