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

(50 errors, 27 warnings)

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

blocks/user_favorites/block_user_favorites.php
(#36) Opening brace must not be followed by a blank line
(#127) Opening parenthesis of a multi-line function call must be the last content on the line
(#128) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#128) Closing parenthesis of a multi-line function call must be on a line by itself
(#133) Expected 1 blank line at end of file; 2 found
(#133) The closing brace for the class must go on the next line after the body
blocks/user_favorites/classes/external.php
(#49) Opening brace must not be followed by a blank line
(#89) Space before opening parenthesis of function call prohibited
(#96) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#107) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#107) Closing parenthesis of a multi-line function call must be on a line by itself
(#127) Opening parenthesis of a multi-line function call must be the last content on the line
(#128) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#128) Closing parenthesis of a multi-line function call must be on a line by itself
(#132) Blank line found at start of control structure
(#159) Space before opening parenthesis of function call prohibited
(#182) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#182) Closing parenthesis of a multi-line function call must be on a line by itself
(#217) Space before opening parenthesis of function call prohibited
(#234) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#234) Closing parenthesis of a multi-line function call must be on a line by itself
(#271) Space before opening parenthesis of function call prohibited
(#289) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#289) Closing parenthesis of a multi-line function call must be on a line by itself
(#292) The closing brace for the class must go on the next line after the body
blocks/user_favorites/classes/favorites.php
(#37) Opening brace must not be followed by a blank line
(#198) The closing brace for the class must go on the next line after the body
blocks/user_favorites/classes/helper.php
(#38) Opening brace must not be followed by a blank line
(#75) Blank line found at end of control structure
(#80) The closing brace for the class must go on the next line after the body
blocks/user_favorites/classes/output/output_favorites.php
(#42) Opening brace must not be followed by a blank line
(#81) Blank line found at start of control structure
(#84) Blank line found at start of control structure
(#113) The closing brace for the class must go on the next line after the body
blocks/user_favorites/classes/privacy/provider.php
(#45) The interface names in a "class implements" statement should be ordered alphabetically. Expected: \core_privacy\local\metadata\provider, core_userlist_provider, \core_privacy\local\request\plugin\provider, user_preference_provider; Found: core_userlist_provider, \core_privacy\local\metadata\provider, \core_privacy\local\request\plugin\provider, user_preference_provider
(#57) Opening brace must not be followed by a blank line
(#162) Opening parenthesis of a multi-line function call must be the last content on the line
(#163) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#163) Closing parenthesis of a multi-line function call must be on a line by itself
(#237) Opening parenthesis of a multi-line function call must be the last content on the line
(#237) Only one argument is allowed per line in a multi-line function call
(#238) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#238) Only one argument is allowed per line in a multi-line function call
(#238) Closing parenthesis of a multi-line function call must be on a line by itself
(#258) The closing brace for the class must go on the next line after the body
blocks/user_favorites/db/upgrade.php
(#38) Blank line found at start of control structure
blocks/user_favorites/edit_form.php
(#36) Opening brace must not be followed by a blank line
(#55) The closing brace for the class must go on the next line after the body
blocks/user_favorites/lang/en/block_user_favorites.php
(#29) The string key "pluginname" is not in the correct order, it should be before "user_favorites:myaddinstance"
(#30) The string key "description" is not in the correct order, it should be before "pluginname"
(#32) Unexpected comment found. Auto-fixing will not work after this comment
(#36) The string key "user_favorites:edit" is not in the correct order, it should be before "user_favorites:view"
(#38) Unexpected comment found. Auto-fixing will not work after this comment
(#39) The string key "btn:delete" is not in the correct order, it should be before "user_favorites:edit"
(#41) The string key "btn:add" is not in the correct order, it should be before "btn:remove"
(#43) The string key "btn:drag" is not in the correct order, it should be before "btn:edit"
(#45) Unexpected comment found. Auto-fixing will not work after this comment
(#47) The string key "javascript:no" is not in the correct order, it should be before "javascript:yes"
(#50) Unexpected comment found. Auto-fixing will not work after this comment
(#53) Unexpected comment found. Auto-fixing will not work after this comment
(#54) The string key "privacy:metadata:favorite:url" is not in the correct order, it should be before "privacy:metadata:links"
(#55) The string key "privacy:metadata:favorite:hash" is not in the correct order, it should be before "privacy:metadata:favorite:url"
(#57) The string key "privacy:metadata:favorite:created_at" is not in the correct order, it should be before "privacy:metadata:favorite:title"
(#58) The string key "privacy:metadata:favorite" is not in the correct order, it should be before "privacy:metadata:favorite:created_at"
blocks/user_favorites/lang/nl/block_user_favorites.php
(#29) The string key "pluginname" is not in the correct order, it should be before "user_favorites:myaddinstance"
(#30) The string key "description" is not in the correct order, it should be before "pluginname"
(#32) Unexpected comment found. Auto-fixing will not work after this comment
(#36) The string key "user_favorites:edit" is not in the correct order, it should be before "user_favorites:view"
(#38) Unexpected comment found. Auto-fixing will not work after this comment
(#39) The string key "btn:delete" is not in the correct order, it should be before "user_favorites:edit"
(#41) The string key "btn:add" is not in the correct order, it should be before "btn:remove"
(#43) The string key "btn:drag" is not in the correct order, it should be before "btn:edit"
(#45) Unexpected comment found. Auto-fixing will not work after this comment
(#47) The string key "javascript:no" is not in the correct order, it should be before "javascript:yes"
(#50) Unexpected comment found. Auto-fixing will not work after this comment
blocks/user_favorites/renderer.php
(#35) Opening brace must not be followed by a blank line
(#51) The closing brace for the class must go on the next line after the body

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

(2 errors, 0 warnings)

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

blocks/user_favorites/amd/build/favorites.min.js
Uncommitted change detected.
blocks/user_favorites/amd/build/favorites.min.js.map
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]