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, 22 warnings)

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

course/format/timeline/classes/external/posts.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#57) There should be a comma after the last array item in a multi-line array.
(#124) There should be a comma after the last array item in a multi-line array.
(#135) Short array syntax must be used to define arrays
(#137) There should be a comma after the last array item in a multi-line array.
(#150) There should be a comma after the last array item in a multi-line array.
(#151) There should be a comma after the last array item in a multi-line array.
(#186) There should be a comma after the last array item in a multi-line array.
(#197) Short array syntax must be used to define arrays
(#199) There should be a comma after the last array item in a multi-line array.
(#212) There should be a comma after the last array item in a multi-line array.
(#213) There should be a comma after the last array item in a multi-line array.
(#258) There should be a comma after the last array item in a multi-line array.
(#272) Short array syntax must be used to define arrays
(#275) Short array syntax must be used to define arrays
(#278) There should be a comma after the last array item in a multi-line array.
(#281) There should be a comma after the last array item in a multi-line array.
(#296) There should be a comma after the last array item in a multi-line array.
(#297) There should be a comma after the last array item in a multi-line array.
(#392) There should be a comma after the last array item in a multi-line array.
(#403) Short array syntax must be used to define arrays
(#405) There should be a comma after the last array item in a multi-line array.
course/format/timeline/classes/external/users.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#53) There should be a comma after the last array item in a multi-line array.
(#54) There should be a comma after the last array item in a multi-line array.
(#96) There should be a comma after the last array item in a multi-line array.
(#101) There should be a comma after the last array item in a multi-line array.
(#112) Short array syntax must be used to define arrays
(#115) Short array syntax must be used to define arrays
(#119) There should be a comma after the last array item in a multi-line array.
(#122) There should be a comma after the last array item in a multi-line array.
course/format/timeline/classes/local/activities.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#97) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $mod.
course/format/timeline/classes/local/modinfo.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#44) Expected "bool" but found "boolean" for @var tag in member variable comment
course/format/timeline/classes/local/notifications.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
course/format/timeline/classes/local/posts.php
(#29) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
course/format/timeline/classes/local/user.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#56) There should be a comma after the last array item in a multi-line array.
(#261) There should be a comma after the last array item in a multi-line array.
course/format/timeline/classes/output/renderer.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
course/format/timeline/classes/output/timeline.php
(#105) There should be a comma after the last array item in a multi-line array.
(#182) There should be a comma after the last array item in a multi-line array.
(#302) There should be a comma after the last array item in a multi-line array.
course/format/timeline/classes/privacy/provider.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#42) There must not be a space before the colon in a return type declaration
course/format/timeline/db/access.php
(#34) There should be a comma after the last array item in a multi-line array.
(#35) There should be a comma after the last array item in a multi-line array.
course/format/timeline/db/messages.php
(#31) There should be a comma after the last array item in a multi-line array.
(#32) 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.
(#38) There should be a comma after the last array item in a multi-line array.
(#39) There should be a comma after the last array item in a multi-line array.
course/format/timeline/db/services.php
(#34) There should be a comma after the last array item in a multi-line array.
(#42) There should be a comma after the last array item in a multi-line array.
(#50) There should be a comma after the last array item in a multi-line array.
(#58) There should be a comma after the last array item in a multi-line array.
(#66) There should be a comma after the last array item in a multi-line array.
(#67) There should be a comma after the last array item in a multi-line array.
course/format/timeline/format.php
(#47) There should be a comma after the last array item in a multi-line array.
course/format/timeline/lib.php
(#61) Short array syntax must be used to define arrays
(#98) Short array syntax must be used to define arrays
(#99) Short array syntax must be used to define arrays
(#100) Short array syntax must be used to define arrays
(#100) There should be a comma after the last array item in a multi-line array.
course/format/timeline/post.php
(#31) Short array syntax must be used to define arrays

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

(1 errors, 0 warnings)

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

course/format/timeline/styles.css
(#394) Unexpected !important (declaration-no-important)

PHPDocs style problems

(2 errors, 0 warnings)

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

course/format/timeline/classes/local/modinfo.php
(#54) Phpdocs for function modinfo::__construct has incomplete parameters list
course/format/timeline/classes/output/timeline.php
(#61) Phpdocs for function timeline::__construct 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

(1 errors, 1 warnings)

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

Problems running grunt
Task "stylelint:css" failed. Use --force to continue.

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 4 warnings)

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

course/format/timeline/templates/post.mustache
(#1) HTML Validation error, line 33: Attribute “placeholder” not allowed on element “p” at this point. ( <p class="post-comment-input" placeholder="((writeacomment%2C+format_timeline))" contenteditable="true" data-tribute="true"></p> )
course/format/timeline/templates/timeline.mustache
(#1) HTML Validation error, line 39: Element “div” not allowed as child of element “ul” in this context. (Suppressing further errors from this subtree.) (> <div>...</d)
(#1) ESLint warning [space-in-parens]: There should be no space before this paren. ( CreatePost.init('[data-action=createpostmodal]', );
course/format/timeline/templates/timeline_post_item.mustache
(#1) HTML Validation error, line 41: Attribute “placeholder” not allowed on element “p” at this point. ( <p class="post-comment-input" placeholder="((writeacomment%2C+format_timeline))" contenteditable="true" data-tribute="true"></p> )

Gherkin .feature problems

(0 errors, 0 warnings)

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