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

(67 errors, 19 warnings)

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

enrol/auto/classes/observer.php
(#51) Inline comments must end in full-stops, exclamation marks, or question marks
(#63) Inline comments must start with a capital letter, digit or 3-dots sequence
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
(#97) Inline comments must end in full-stops, exclamation marks, or question marks
(#101) Inline comments must end in full-stops, exclamation marks, or question marks
(#128) Visibility must be declared on method "schedule_welcome_email"
(#133) Inline comments must start with a capital letter, digit or 3-dots sequence
(#139) Inline comments must start with a capital letter, digit or 3-dots sequence
(#139) Inline comments must end in full-stops, exclamation marks, or question marks
(#144) Inline comments must start with a capital letter, digit or 3-dots sequence
(#144) Inline comments must end in full-stops, exclamation marks, or question marks
enrol/auto/classes/task/course_welcome_email.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#3) Line 2 of the opening comment must start "//".
(#4) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#5) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#6) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#7) Line 6 of the opening comment must start "// (at your option) any later version.".
(#8) Line 7 of the opening comment must start "//".
(#9) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#10) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#12) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#13) Line 12 of the opening comment must start "//".
(#14) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#25) Expected MOODLE_INTERNAL check or config.php inclusion
enrol/auto/db/events.php
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
enrol/auto/db/upgrade.php
(#31) Functions must not contain multiple empty lines in a row; found 2 empty lines
enrol/auto/edit.php
(#32) Expected 1 space before "=>"; 0 found
(#32) Expected 1 space after "=>"; 0 found
(#38) Expected 1 space before "=>"; 0 found
(#38) Expected 1 space after "=>"; 0 found
(#38) Expected 1 space before "=>"; 0 found
(#38) Expected 1 space after "=>"; 0 found
(#41) Expected 1 space before "=>"; 0 found
(#41) Expected 1 space after "=>"; 0 found
(#50) Expected 1 space before "=>"; 0 found
(#50) Expected 1 space after "=>"; 0 found
(#50) Expected 1 space before "=>"; 0 found
(#50) Expected 1 space after "=>"; 0 found
(#50) Expected 1 space before "=>"; 0 found
(#50) Expected 1 space after "=>"; 0 found
(#55) Expected 1 space before "=>"; 0 found
(#55) Expected 1 space after "=>"; 0 found
(#63) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
enrol/auto/edit_form.php
(#32) Visibility must be declared on method "definition"
(#37) Inline comments must end in full-stops, exclamation marks, or question marks
(#73) Expected 1 space before "=>"; 0 found
(#73) Expected 1 space after "=>"; 0 found
(#73) Expected 1 space before "=>"; 0 found
(#73) Expected 1 space after "=>"; 0 found
(#73) Line exceeds 132 characters; contains 138 characters
(#85) Closing brace must be on a line by itself
(#90) Expected 5 space(s) before asterisk; 4 found
(#91) Expected 5 space(s) before asterisk; 4 found
(#92) Expected 5 space(s) before asterisk; 4 found
(#93) Expected 5 space(s) before asterisk; 4 found
(#94) Expected 5 space(s) before asterisk; 4 found
(#95) Expected 5 space(s) before asterisk; 4 found
(#96) Visibility must be declared on method "extend_assignable_roles"
(#101) Expected 1 space before "=>"; 0 found
(#101) Expected 1 space after "=>"; 0 found
enrol/auto/lib.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion
(#118) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#122) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#218) Expected 1 space before "=>"; 0 found
(#218) Expected 1 space after "=>"; 0 found
(#235) Expected 1 space before "=>"; 0 found
(#235) Expected 1 space after "=>"; 0 found
(#235) Expected 1 space before "=>"; 0 found
(#235) Expected 1 space after "=>"; 0 found
(#235) Expected 1 space before "=>"; 0 found
(#235) Expected 1 space after "=>"; 0 found
(#244) Expected 1 space after "="; 2 found
(#286) Expected 1 space before "=>"; 0 found
(#286) Expected 1 space after "=>"; 0 found
(#286) Expected 1 space before "=>"; 0 found
(#286) Expected 1 space after "=>"; 0 found
enrol/auto/settings.php
(#49) Inline comments must end in full-stops, exclamation marks, or question marks
enrol/auto/tests/auto_test.php
(#33) Perl-style comments are not allowed; use "// Comment." instead
(#36) Perl-style comments are not allowed; use "// Comment." instead
(#40) Perl-style comments are not allowed; use "// Comment." instead
enrol/auto/unenrolself.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#44) Inline comments must start with a capital letter, digit or 3-dots sequence
(#44) Inline comments must end in full-stops, exclamation marks, or question marks
enrol/auto/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

(33 errors, 1 warnings)

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

enrol/auto/classes/helper.php
(#31) Class helper does not have @copyright tag
(#31) Class helper does not have @license tag
enrol/auto/classes/observer.php
(#128) Function observer::schedule_welcome_email is not documented
(#31) Class observer does not have @copyright tag
(#31) Class observer does not have @license tag
enrol/auto/classes/task/course_welcome_email.php
(#20) File-level phpdocs block is not found
(#27) Function course_welcome_email::execute is not documented
(#22) Class course_welcome_email does not have @copyright tag
(#22) Class course_welcome_email does not have @license tag
(#22) Package is not specified for class course_welcome_email. It is also not specified in file-level phpdocs
enrol/auto/db/events.php
(#17) File-level phpdocs block does not have @copyright tag
enrol/auto/db/install.php
(#27) Function xmldb_enrol_auto_install is not documented
enrol/auto/db/upgrade.php
(#27) Function xmldb_enrol_auto_upgrade is not documented
(#17) File-level phpdocs block does not have @copyright tag
enrol/auto/edit.php
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @copyright tag
enrol/auto/edit_form.php
(#30) Class enrol_auto_edit_form is not documented
(#32) Function enrol_auto_edit_form::definition is not documented
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @copyright tag
enrol/auto/lang/en/enrol_auto.php
(#17) File-level phpdocs block does not have @copyright tag
enrol/auto/lib.php
(#29) Class enrol_auto_plugin is not documented
(#47) Function enrol_auto_plugin::roles_protected is not documented
(#52) Function enrol_auto_plugin::allow_unenrol is not documented
(#57) Function enrol_auto_plugin::allow_manage is not documented
(#359) Phpdocs for function enrol_auto_plugin::restore_user_enrolment has incomplete parameters list
(#17) File-level phpdocs block does not have @copyright tag
enrol/auto/settings.php
(#17) File-level phpdocs block does not have @copyright tag
enrol/auto/tests/auto_test.php
(#30) Class enrol_auto_testcase is not documented
(#17) File-level phpdocs block does not have @copyright tag
(#21) Invalid phpdocs tag @autor used
enrol/auto/unenrolself.php
(#2) Empty line found after PHP open tag
(#21) Package enrol is not valid
enrol/auto/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]