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

(74 errors, 9 warnings)

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

local/enrolstats/classes/event/enrolstats_view.php
(#33) Opening brace must not be followed by a blank line
local/enrolstats/classes/privacy/provider.php
(#27) Missing docblock for class provider
(#27) Opening brace must not be followed by a blank line
(#35) There must not be a space before the colon in a return type declaration
local/enrolstats/index.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file index.php
(#80) Short array syntax must be used to define arrays
(#84) Short array syntax must be used to define arrays
(#85) There should be a comma after the last array item in a multi-line array.
(#86) There should be a comma after the last array item in a multi-line array.
(#97) Short array syntax must be used to define arrays
(#102) Short array syntax must be used to define arrays
(#103) Opening parenthesis of a multi-line function call must be the last content on the line
(#103) Only one argument is allowed per line in a multi-line function call
(#104) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#105) Multi-line function call not indented correctly; expected 0 spaces but found 8
(#105) Only one argument is allowed per line in a multi-line function call
(#105) Only one argument is allowed per line in a multi-line function call
(#105) Closing parenthesis of a multi-line function call must be on a line by itself
(#110) Short array syntax must be used to define arrays
(#111) Opening parenthesis of a multi-line function call must be the last content on the line
(#112) Multi-line function call not indented correctly; expected 0 spaces but found 8
(#112) Only one argument is allowed per line in a multi-line function call
(#112) Only one argument is allowed per line in a multi-line function call
(#112) Short array syntax must be used to define arrays
(#112) Closing parenthesis of a multi-line function call must be on a line by itself
(#117) Short array syntax must be used to define arrays
(#121) Blank line found at start of control structure
(#123) Short array syntax must be used to define arrays
(#130) Short array syntax must be used to define arrays
(#131) Short array syntax must be used to define arrays
(#137) Opening parenthesis of a multi-line function call must be the last content on the line
(#137) Short array syntax must be used to define arrays
(#140) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#140) Expected at least 1 space before "."; 0 found
(#140) Expected at least 1 space before "."; 0 found
(#140) Expected at least 1 space before "."; 0 found
(#141) Multi-line function call not indented correctly; expected 12 spaces but found 20
(#141) Expected at least 1 space before "."; 0 found
(#141) Expected at least 1 space after "."; 0 found
(#141) Closing parenthesis of a multi-line function call must be on a line by itself
(#160) Short array syntax must be used to define arrays
(#164) Opening parenthesis of a multi-line function call must be the last content on the line
(#165) Multi-line function call not indented correctly; expected 4 spaces but found 12
(#165) Closing parenthesis of a multi-line function call must be on a line by itself
(#168) Short array syntax must be used to define arrays
(#171) Short array syntax must be used to define arrays
local/enrolstats/lang/en/local_enrolstats.php
(#30) The string key "event_enrolrequest_view" is not in the correct order, it should be before "pluginname"
(#31) The string key "event_enrolrequest_description" is not in the correct order, it should be before "event_enrolrequest_view"
(#33) The string key "index_enrolled" is not in the correct order, it should be before "index_title"
(#34) The string key "index_active" is not in the correct order, it should be before "index_enrolled"
(#37) The string key "privacy:metadata" is not in the correct order, it should be before "select"
(#40) The string key "table_head_stats" is not in the correct order, it should be before "table_head_student"
(#41) The string key "table_head_category" is not in the correct order, it should be before "table_head_stats"
(#43) The string key "table_head_enrol_instance" is not in the correct order, it should be before "table_head_enrol_method"
(#44) The string key "download" is not in the correct order, it should be before "table_head_enrol_instance"
local/enrolstats/lib.php
(#32) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#33) Multi-line function declaration not indented correctly; expected 4 spaces but found 8
(#33) The closing parenthesis of a multi-line function declaration must be on a new line
(#38) Short array syntax must be used to define arrays
(#39) Opening parenthesis of a multi-line function call must be the last content on the line
(#39) Only one argument is allowed per line in a multi-line function call
(#40) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#40) Only one argument is allowed per line in a multi-line function call
(#40) Only one argument is allowed per line in a multi-line function call
(#40) Only one argument is allowed per line in a multi-line function call
(#40) Closing parenthesis of a multi-line function call must be on a line by itself
(#45) Expected 1 blank line at end of file; 2 found
local/enrolstats/locallib.php
(#41) Parentheses must be used when instantiating a new class
(#52) Short array syntax must be used to define arrays
(#70) Short array syntax must be used to define arrays
(#74) Short array syntax must be used to define arrays
(#77) Short array syntax must be used to define arrays
(#83) Short array syntax must be used to define arrays
(#84) Short array syntax must be used to define arrays
(#85) Short array syntax must be used to define arrays
(#103) Expected 1 blank line at end of file; 2 found
local/enrolstats/settings.php
(#27) Opening parenthesis of a multi-line function call must be the last content on the line
(#28) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#29) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#30) Multi-line function call not indented correctly; expected 0 spaces but found 8
(#31) Expected 0 spaces before closing parenthesis; newline found

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]

local/enrolstats/lib.php
(#29) Phpdocs for function local_enrolstats_extend_navigation_category_settings 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

(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]