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

(44 errors, 42 warnings)

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

mod/description/backup/moodle2/backup_description_activity_task.class.php
(#54) The static declaration must come after the visibility declaration
mod/description/backup/moodle2/backup_description_stepslib.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#32) Spaces must be used to indent lines; tabs are not allowed
(#32) Tab found within whitespace
(#32) Whitespace found at end of line
(#42) Short array syntax must be used to define arrays
(#42) Short array syntax must be used to define arrays
(#48) Short array syntax must be used to define arrays
mod/description/backup/moodle2/restore_description_activity_task.class.php
(#37) Line indented incorrectly; expected 0 spaces, found 4
(#42) Line indented incorrectly; expected 4 spaces, found 8
(#44) Line indented incorrectly; expected 4 spaces, found 8
(#49) Line indented incorrectly; expected 4 spaces, found 8
(#52) Line indented incorrectly; expected 4 spaces, found 8
(#58) Line indented incorrectly; expected 4 spaces, found 8
(#58) The static declaration must come after the visibility declaration
(#59) Short array syntax must be used to define arrays
(#61) Short array syntax must be used to define arrays
(#64) Line indented incorrectly; expected 4 spaces, found 8
(#70) Line indented incorrectly; expected 4 spaces, found 8
(#70) The static declaration must come after the visibility declaration
(#71) Short array syntax must be used to define arrays
(#72) Line indented incorrectly; expected 4 spaces, found 8
(#80) Line indented incorrectly; expected 4 spaces, found 8
(#80) The static declaration must come after the visibility declaration
(#81) Short array syntax must be used to define arrays
(#88) Line indented incorrectly; expected 4 spaces, found 8
(#100) Line indented incorrectly; expected 4 spaces, found 8
(#100) The static declaration must come after the visibility declaration
(#101) Short array syntax must be used to define arrays
(#106) Line indented incorrectly; expected 4 spaces, found 8
(#107) Line indented incorrectly; expected 0 spaces, found 4
mod/description/backup/moodle2/restore_description_stepslib.php
(#32) Line indented incorrectly; expected 0 spaces, found 4
(#34) Line indented incorrectly; expected at least 4 spaces, found 0
(#35) Whitespace found at end of line
(#37) Whitespace found at end of line
(#42) Short array syntax must be used to define arrays
(#49) Line indented incorrectly; expected at least 4 spaces, found 0
(#50) Whitespace found at end of line
(#55) Whitespace found at end of line
(#70) Line indented incorrectly; expected at least 4 spaces, found 0
(#71) Whitespace found at end of line
(#73) Whitespace found at end of line
(#80) File must end with a newline character
(#80) Closing brace indented incorrectly; expected 4 spaces, found 0
mod/description/classes/privacy/provider.php
(#36) There must not be a space before the colon in a return type declaration
(#39) File must end with a newline character
mod/description/db/access.php
(#27) Short array syntax must be used to define arrays
(#28) Short array syntax must be used to define arrays
(#33) Short array syntax must be used to define arrays
(#35) There should be a comma after the last array item in a multi-line array.
(#37) There should be a comma after the last array item in a multi-line array.
mod/description/db/upgrade.php
(#45) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#53) Whitespace found at end of line
(#54) Whitespace found at end of line
(#66) File must end with a newline character
mod/description/index.php
(#31) Short array syntax must be used to define arrays
mod/description/lang/en/description.php
(#43) The string key "description:addinstance" is not in the correct order, it should be before "pluginname"
mod/description/lib.php
(#91) Short array syntax must be used to define arrays
(#97) Short array syntax must be used to define arrays
(#115) Short array syntax must be used to define arrays
(#119) Short array syntax must be used to define arrays
(#124) Short array syntax must be used to define arrays
(#126) Inline comments must start with a capital letter, digit or 3-dots sequence
(#126) This comment is 56% valid code; is this commented out code?
(#126) No space found before comment text; expected "// $desc->intro = '<div><h1>'.$COURSE->fullname.'</h1>'.$summary.'</div>';" but found "//$desc->intro = '<div><h1>'.$COURSE->fullname.'</h1>'.$summary.'</div>';"
(#132) Short array syntax must be used to define arrays
(#149) Short array syntax must be used to define arrays
(#158) Short array syntax must be used to define arrays
(#168) Short array syntax must be used to define arrays
(#177) Short array syntax must be used to define arrays
mod/description/mod_form.php
(#35) Line indented incorrectly; expected at least 4 spaces, found 3
(#49) Short array syntax must be used to define arrays
mod/description/settings.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#25) File must end with a newline character
mod/description/view.php
(#30) Short array syntax must be used to define arrays
(#32) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#35) Short array syntax must be used to define arrays
(#36) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#39) Short array syntax must be used to define arrays
(#40) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#44) Short array syntax must be used to define arrays
(#45) Short array syntax must be used to define arrays
(#46) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#48) Short array syntax must be used to define arrays
(#49) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#52) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead

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

(4 errors, 0 warnings)

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

mod/description/backup/moodle2/restore_description_activity_task.class.php
(#76) Inline phpdocs tag {@link restore_logs_processor} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#78) Inline phpdocs tag {@link restore_log_rule} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#92) Inline phpdocs tag {@link restore_logs_processor} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#94) Inline phpdocs tag {@link restore_log_rule} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}

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]