Prechecker results: error


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

(85 errors, 6 warnings)

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

admin/tool/syncgroups/index.php
(#35) Expected 1 space before "=>"; 0 found
(#35) Expected 1 space after "=>"; 0 found
(#37) Expected 1 space before "=>"; 0 found
(#37) Expected 1 space after "=>"; 0 found
(#60) Variable "in_or_equal" must not contain underscores.
(#61) Variable "groups_to_sync" must not contain underscores.
(#61) Variable "in_or_equal" must not contain underscores.
(#62) Commas (,) must be followed by white space.
(#69) Variable "courses_to_sync" must not contain underscores.
(#74) Variable "courses_to_sync" must not contain underscores.
(#85) Variable "groups_to_sync" must not contain underscores.
(#85) Variable "courses_to_sync" must not contain underscores.
admin/tool/syncgroups/lib.php
(#24) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#55) Expected 1 space before "=>"; 0 found
(#55) Expected 1 space after "=>"; 0 found
(#60) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#64) Expected 1 space before "=>"; 0 found
(#64) Expected 1 space after "=>"; 0 found
(#64) Expected 1 space before "=>"; 0 found
(#64) Expected 1 space after "=>"; 0 found
(#64) Line exceeds 132 characters; contains 135 characters
(#96) Variable "members_dest" must not contain underscores.
(#96) Expected 1 space before "=>"; 0 found
(#96) Expected 1 space after "=>"; 0 found
(#97) Expected 1 space before "=>"; 0 found
(#97) Expected 1 space after "=>"; 0 found
(#97) Variable "members_dest" must not contain underscores.
(#97) Expected 1 space before "=>"; 0 found
(#97) Expected 1 space after "=>"; 0 found
admin/tool/syncgroups/ui/components.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) Expected MOODLE_INTERNAL check or config.php inclusion
admin/tool/syncgroups/ui/renderer.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#18) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#48) Expected 1 space before "=>"; 0 found
(#48) Expected 1 space after "=>"; 0 found
(#48) Expected 1 space before "=>"; 0 found
(#48) Expected 1 space after "=>"; 0 found
(#48) Expected 1 space before "=>"; 0 found
(#48) Expected 1 space after "=>"; 0 found
(#73) Expected 1 space before "=>"; 0 found
(#73) Expected 1 space after "=>"; 0 found
(#74) Expected 1 space before "=>"; 0 found
(#74) Expected 1 space after "=>"; 0 found
(#74) Expected 1 space before "=>"; 0 found
(#74) Expected 1 space after "=>"; 0 found
(#74) Variable "VAR_SEARCH" must be all lower-case
(#74) Variable "VAR_SEARCH" must not contain underscores.
(#74) Expected 1 space before "=>"; 0 found
(#74) Expected 1 space after "=>"; 0 found
(#74) Line exceeds 132 characters; contains 153 characters
(#75) Expected 1 space before "=>"; 0 found
(#75) Expected 1 space after "=>"; 0 found
(#75) Expected 1 space before "=>"; 0 found
(#75) Expected 1 space after "=>"; 0 found
(#75) Expected 1 space before "=>"; 0 found
(#75) Expected 1 space after "=>"; 0 found
(#84) Expected 1 space before "=>"; 0 found
(#84) Expected 1 space after "=>"; 0 found
(#85) Expected 1 space before "=>"; 0 found
(#85) Expected 1 space after "=>"; 0 found
(#85) Expected 1 space before "=>"; 0 found
(#85) Expected 1 space after "=>"; 0 found
(#86) Expected 1 space before "=>"; 0 found
(#86) Expected 1 space after "=>"; 0 found
(#86) Expected 1 space before "=>"; 0 found
(#86) Expected 1 space after "=>"; 0 found
(#87) Expected 1 space before "=>"; 0 found
(#87) Expected 1 space after "=>"; 0 found
(#87) Expected 1 space before "=>"; 0 found
(#87) Expected 1 space after "=>"; 0 found
(#87) Expected 1 space before "=>"; 0 found
(#87) Expected 1 space after "=>"; 0 found
(#90) Expected 1 space before "=>"; 0 found
(#90) Expected 1 space after "=>"; 0 found
(#91) Expected 1 space before "=>"; 0 found
(#91) Expected 1 space after "=>"; 0 found
(#107) Expected 1 space before "=>"; 0 found
(#107) Expected 1 space after "=>"; 0 found
(#108) Expected 1 space before "=>"; 0 found
(#108) Expected 1 space after "=>"; 0 found
(#111) Expected 1 space before "=>"; 0 found
(#111) Expected 1 space after "=>"; 0 found
(#111) Expected 1 space before "=>"; 0 found
(#111) Expected 1 space after "=>"; 0 found
(#111) Line exceeds 132 characters; contains 142 characters
(#113) Expected 1 space before "=>"; 0 found
(#113) Expected 1 space after "=>"; 0 found
(#113) Expected 1 space before "=>"; 0 found
(#113) Expected 1 space after "=>"; 0 found
(#113) Line exceeds 132 characters; contains 168 characters
admin/tool/syncgroups/version.php
(#29) Inline comments must end in full-stops, exclamation marks, or question marks

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

(14 errors, 2 warnings)

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

admin/tool/syncgroups/index.php
(#17) File-level phpdocs block does not have @copyright tag
admin/tool/syncgroups/lang/en/tool_syncgroups.php
(#17) File-level phpdocs block does not have @copyright tag
admin/tool/syncgroups/lib.php
(#27) Function tool_syncgroups_extend_navigation_course is not documented
(#48) Function tool_syncgroups_do_sync is not documented
(#17) File-level phpdocs block does not have @copyright tag
admin/tool/syncgroups/ui/components.php
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#3) Class destination_courses_search is not documented
(#3) Package is not specified for class destination_courses_search. It is also not specified in file-level phpdocs
admin/tool/syncgroups/ui/renderer.php
(#2) Empty line found after PHP open tag
(#18) File-level phpdocs block is not found
(#23) Class tool_syncgroups_renderer is not documented
(#82) Function tool_syncgroups_renderer::destination_courses_selector is not documented
(#28) Phpdocs for function tool_syncgroups_renderer::render_destination_courses_search has incomplete parameters list
(#23) Package is not specified for class tool_syncgroups_renderer. It is also not specified in file-level phpdocs
admin/tool/syncgroups/version.php
(#17) File-level phpdocs block does not have @copyright tag

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]