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

(86 errors, 11 warnings)

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

admin/tool/syncgroups/classes/output/groups_list.php
(#19) Missing @copyright tag
(#19) Missing @license tag
(#19) Missing docblock for class groups_list
(#19) Opening brace must not be followed by a blank line
(#21) Missing member variable doc comment
(#23) Missing docblock for function __construct
(#27) Missing docblock for function export_for_template
(#30) Expected 1 space after FUNCTION keyword; 0 found
admin/tool/syncgroups/index.php
(#41) Short array syntax must be used to define arrays
(#43) Short array syntax must be used to define arrays
(#61) Blank line found at start of control structure
(#64) Blank line found at start of control structure
(#66) Long list syntax is not allowed
(#66) Variable "in_or_equal" must not contain underscores.
(#67) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#67) Variable "groups_to_sync" must not contain underscores.
(#67) Opening parenthesis of a multi-line function call must be the last content on the line
(#67) Only one argument is allowed per line in a multi-line function call
(#67) Variable "in_or_equal" must not contain underscores.
(#68) Multi-line function call not indented correctly; expected 8 spaces but found 50
(#68) Short array syntax must be used to define arrays
(#68) Closing parenthesis of a multi-line function call must be on a line by itself
(#68) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#75) Variable "courses_to_sync" must not contain underscores.
(#75) Short array syntax must be used to define arrays
(#80) Variable "courses_to_sync" must not contain underscores.
(#88) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#91) Variable "groups_to_sync" must not contain underscores.
(#91) Variable "courses_to_sync" must not contain underscores.
(#94) Blank line found at end of control structure
(#95) Blank line found at start of control structure
(#99) Short array syntax must be used to define arrays
admin/tool/syncgroups/lib.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#28) Missing docblock for function tool_syncgroups_extend_navigation_course
(#28) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $context.
(#32) Logical operator "or" is prohibited; use "||" instead
(#36) Short array syntax must be used to define arrays
(#37) No space found after comma in argument list
(#37) Commas (,) must be followed by white space.
(#37) Expected 1 space between the comma and "'tool_syncgroups'". Found: no spaces
(#37) Line exceeds 132 characters; contains 144 characters
(#40) Missing docblock for function tool_syncgroups_do_sync
(#43) Blank line found at start of control structure
(#47) Short array syntax must be used to define arrays
(#52) Blank line found at start of control structure
(#56) Short array syntax must be used to define arrays
(#56) Line exceeds 132 characters; contains 139 characters
(#56) Blank line found at start of control structure
(#59) Blank line found at end of control structure
(#60) Blank line found at start of control structure
(#72) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#78) Blank line found at start of control structure
(#88) Variable "members_dest" must not contain underscores.
(#88) Short array syntax must be used to define arrays
(#89) Variable "members_dest" must not contain underscores.
admin/tool/syncgroups/renderer.php
(#2) Moodle boilerplate not found at first line
(#18) Missing @copyright tag
(#18) Missing @license tag
(#18) Missing docblock for class tool_syncgroups_renderer
(#18) Opening brace must not be followed by a blank line
(#29) Short array syntax must be used to define arrays
(#30) Short array syntax must be used to define arrays
(#33) Short array syntax must be used to define arrays
(#34) Short array syntax must be used to define arrays
(#42) Short array syntax must be used to define arrays
(#43) Short array syntax must be used to define arrays
(#43) Line exceeds 132 characters; contains 133 characters
(#44) Short array syntax must be used to define arrays
(#45) Short array syntax must be used to define arrays
(#45) There should be a comma after the last array item in a multi-line array.
(#53) Short array syntax must be used to define arrays
(#61) Short array syntax must be used to define arrays
(#68) Short array syntax must be used to define arrays
(#69) Short array syntax must be used to define arrays
(#69) Variable "VAR_SEARCH" must be all lower-case
(#69) Variable "VAR_SEARCH" must not contain underscores.
(#69) Line exceeds 132 characters; contains 159 characters
(#70) Short array syntax must be used to define arrays
(#70) Line exceeds 132 characters; contains 138 characters
(#77) Missing docblock for function destination_courses_selector
(#77) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $courses.
(#77) Declaring an optional parameter with a non-nullable type and a null default value before a required parameter is deprecated since PHP 8.4 Parameter $courses is optional, while parameter $courseid is required. The $courses parameter is implicitly treated as a required parameter.
(#77) Incorrect spacing between argument "$courses" and equals sign; expected 1 but found 0
(#77) Incorrect spacing between default value and equals sign for argument "$courses"; expected 1 but found 0
(#79) 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
(#85) Short array syntax must be used to define arrays
(#86) Short array syntax must be used to define arrays
(#91) Short array syntax must be used to define arrays
(#92) Short array syntax must be used to define arrays
(#95) Short array syntax must be used to define arrays
(#95) Line exceeds 132 characters; contains 142 characters
admin/tool/syncgroups/ui/components.php
(#2) Moodle boilerplate not found at first line
(#18) Missing @copyright tag
(#18) Missing @license tag
(#18) Missing docblock for class destination_courses_search

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]

admin/tool/syncgroups/renderer.php
(#23) Phpdocs for function tool_syncgroups_renderer::render_destination_courses_search 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, 1 warnings)

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

admin/tool/syncgroups/templates/groups_list.mustache
(#1) Example context missing (@template section not found.)

Gherkin .feature problems

(0 errors, 0 warnings)

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