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

(25 errors, 34 warnings)

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

blocks/featuredcourses/block_featuredcourses.php
(#29) Missing docblock for class block_featuredcourses
(#31) Missing docblock for function init
(#35) Missing docblock for function get_content
(#48) Short array syntax must be used to define arrays
(#49) Short array syntax must be used to define arrays
(#68) Short array syntax must be used to define arrays
(#68) Line exceeds 132 characters; contains 144 characters
(#74) Short array syntax must be used to define arrays
(#75) Short array syntax must be used to define arrays
(#77) Short array syntax must be used to define arrays
(#80) Short array syntax must be used to define arrays
(#82) Short array syntax must be used to define arrays
(#93) Missing docblock for function applicable_formats
(#94) Short array syntax must be used to define arrays
(#97) Missing docblock for function instance_allow_multiple
(#101) Missing docblock for function has_config
(#105) Missing docblock for function cron
(#109) Missing docblock for function get_featured_courses
(#120) Missing docblock for function delete_featuredcourse
(#122) Short array syntax must be used to define arrays
blocks/featuredcourses/db/access.php
(#27) Short array syntax must be used to define arrays
(#29) Short array syntax must be used to define arrays
(#34) Short array syntax must be used to define arrays
(#36) 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.
(#42) Short array syntax must be used to define arrays
(#47) Short array syntax must be used to define arrays
(#49) There should be a comma after the last array item in a multi-line array.
(#52) There should be a comma after the last array item in a multi-line array.
blocks/featuredcourses/delete_featuredcourse.php
(#17) Missing @copyright tag
(#30) Short array syntax must be used to define arrays
(#39) Short array syntax must be used to define arrays
(#47) Logical operator "and" is prohibited; use "&&" instead
(#63) Short array syntax must be used to define arrays
blocks/featuredcourses/delete_featuredcourse_form.php
(#17) Missing @copyright tag
(#29) Missing docblock for class block_featuredcourses_delete_featuredcourse_form
(#31) Missing docblock for function definition
blocks/featuredcourses/edit_form.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#27) Missing docblock for class block_featuredcourses_edit_form
(#29) Missing docblock for function specific_definition
blocks/featuredcourses/featuredcourses.php
(#40) Short array syntax must be used to define arrays
(#41) Short array syntax must be used to define arrays
(#42) There should be a comma after the last array item in a multi-line array.
blocks/featuredcourses/featuredcourses_form.php
(#43) Short array syntax must be used to define arrays
(#76) Inline comments must start with a capital letter, digit or 3-dots sequence
(#76) This comment is 70% valid code; is this commented out code?
(#76) No space found before comment text; expected "// $mform->addRule('newfeatured[courseid]', get_string('missingcourseid', 'block_featuredcourses')," but found "//$mform->addRule('newfeatured[courseid]', get_string('missingcourseid', 'block_featuredcourses'),"
(#77) Expected 1 space before comment text but found 16; use block comment if you need indentation
(#81) Inline comments must start with a capital letter, digit or 3-dots sequence
(#81) This comment is 70% valid code; is this commented out code?
(#81) No space found before comment text; expected "// $mform->addRule('newfeatured[sortorder]', get_string('missingsortorder', 'block_featuredcourses')," but found "//$mform->addRule('newfeatured[sortorder]', get_string('missingsortorder', 'block_featuredcourses'),"
(#82) Expected 1 space before comment text but found 16; use block comment if you need indentation
blocks/featuredcourses/lang/en/block_featuredcourses.php
(#28) The string key "editlink" is not in the correct order, it should be before "pluginname"
(#31) The string key "addfeaturedcourse" is not in the correct order, it should be before "featuredcourses"
(#35) The string key "doadd" is not in the correct order, it should be before "featuredcourse"
(#38) The string key "missingsortorder" is not in the correct order, it should be before "sortorder"
(#39) The string key "deletelink" is not in the correct order, it should be before "missingsortorder"
(#40) The string key "delete_featuredcourse" is not in the correct order, it should be before "deletelink"
(#41) The string key "confirmdelete" is not in the correct order, it should be before "delete_featuredcourse"

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]