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

(273 errors, 17 warnings)

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

enrol/signup/db/access.php
(#2) The opening <?php tag must be followed by exactly one newline.
enrol/signup/db/events.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#11) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#21) A closing tag is not permitted at the end of a PHP file
enrol/signup/db/install.php
(#2) The opening <?php tag must be followed by exactly one newline.
enrol/signup/db/upgrade.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#3) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#3) Line 12 of the opening comment must start "//".
(#3) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#7) Spaces must be used to indent lines; tabs are not allowed
(#7) Tab found within whitespace
(#7) Line indented incorrectly; expected at least 8 spaces, found 2
(#8) Spaces must be used to indent lines; tabs are not allowed
(#8) Tab found within whitespace
(#8) Line indented incorrectly; expected at least 8 spaces, found 2
(#13) A closing tag is not permitted at the end of a PHP file
enrol/signup/edit.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#32) Inline comments must start with a capital letter, digit or 3-dots sequence
(#32) Inline comments must end in full-stops, exclamation marks, or question marks
(#34) Expected 1 space before "=>"; 0 found
(#34) Expected 1 space after "=>"; 0 found
(#40) Expected 1 space before "=>"; 0 found
(#40) Expected 1 space after "=>"; 0 found
(#40) Expected 1 space before "=>"; 0 found
(#40) Expected 1 space after "=>"; 0 found
(#43) Expected 1 space before "=>"; 0 found
(#43) Expected 1 space after "=>"; 0 found
(#51) Expected 1 space before "=>"; 0 found
(#51) Expected 1 space after "=>"; 0 found
(#51) Expected 1 space before "=>"; 0 found
(#51) Expected 1 space after "=>"; 0 found
(#51) Expected 1 space before "=>"; 0 found
(#51) Expected 1 space after "=>"; 0 found
(#54) Inline comments must start with a capital letter, digit or 3-dots sequence
(#54) Inline comments must end in full-stops, exclamation marks, or question marks
(#55) Expected 1 space before "=>"; 0 found
(#55) Expected 1 space after "=>"; 0 found
(#60) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#77) Expected 1 space before "=>"; 0 found
(#77) Expected 1 space after "=>"; 0 found
(#77) Expected 1 space before "=>"; 0 found
(#77) Expected 1 space after "=>"; 0 found
(#77) Expected 1 space before "=>"; 0 found
(#77) Expected 1 space after "=>"; 0 found
(#78) Expected 1 space before "=>"; 0 found
(#78) Expected 1 space after "=>"; 0 found
(#78) Expected 1 space before "=>"; 0 found
(#78) Expected 1 space after "=>"; 0 found
(#78) Expected 1 space before "=>"; 0 found
(#78) Expected 1 space after "=>"; 0 found
(#78) Line exceeds 132 characters; contains 137 characters
enrol/signup/edit_form.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#16) Visibility must be declared on method "definition"
(#24) Spaces must be used to indent lines; tabs are not allowed
(#24) Tab found within whitespace
(#24) Line indented incorrectly; expected at least 8 spaces, found 2
(#38) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#40) Line exceeds 132 characters; contains 148 characters
(#42) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#44) Line exceeds 132 characters; contains 135 characters
(#46) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#52) Spaces must be used to indent lines; tabs are not allowed
(#52) Tab found within whitespace
(#52) Line indented incorrectly; expected at least 8 spaces, found 2
(#54) Spaces must be used to indent lines; tabs are not allowed
(#54) Tab found within whitespace
(#54) Line indented incorrectly; expected at least 8 spaces, found 2
(#61) Visibility must be declared on method "validation"
enrol/signup/lang/en/enrol_signup.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#2) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#2) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#2) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#3) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#3) Line 12 of the opening comment must start "//".
(#3) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#3) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#12) Inline comments must end in full-stops, exclamation marks, or question marks
(#12) No space found before comment text; expected "// TODO: fixme" but found "//TODO: fixme"
(#25) A closing tag is not permitted at the end of a PHP file
enrol/signup/lib.php
(#34) Inline comments must start with a capital letter, digit or 3-dots sequence
(#34) Inline comments must end in full-stops, exclamation marks, or question marks
(#61) Spaces must be used to indent lines; tabs are not allowed
(#61) Tab found within whitespace
(#61) Line indented incorrectly; expected at least 8 spaces, found 2
(#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
(#80) Spaces must be used to indent lines; tabs are not allowed
(#80) Tab found within whitespace
(#80) Line indented incorrectly; expected at least 8 spaces, found 2
(#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
(#98) Spaces must be used to indent lines; tabs are not allowed
(#98) Tab found within whitespace
(#98) Line indented incorrectly; expected at least 8 spaces, found 2
(#101) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#104) Expected 1 space before "=>"; 0 found
(#104) Expected 1 space after "=>"; 0 found
(#107) Spaces must be used to indent lines; tabs are not allowed
(#107) Tab found within whitespace
(#107) Line indented incorrectly; expected at least 4 spaces, found 1
(#108) Expected 2 space(s) before asterisk; 5 found
(#109) Expected 2 space(s) before asterisk; 5 found
(#110) Expected 2 space(s) before asterisk; 5 found
(#111) Expected 2 space(s) before asterisk; 5 found
(#112) Expected 2 space(s) before asterisk; 5 found
(#122) This comment is 51% valid code; is this commented out code?
(#159) Line exceeds 132 characters; contains 142 characters
enrol/signup/locallib.php
(#35) Spaces must be used to indent lines; tabs are not allowed
(#35) Tab found within whitespace
(#35) Line indented incorrectly; expected at least 4 spaces, found 1
(#35) Opening brace should be on the same line as the declaration
(#36) Spaces must be used to indent lines; tabs are not allowed
(#36) Tab found within whitespace
(#36) Line indented incorrectly; expected at least 8 spaces, found 2
(#40) Variable "signup_instances" must not contain underscores.
(#40) Expected 1 space before "=>"; 0 found
(#41) Expected "foreach (...) {\n"; found "foreach (...)\n {\n"
(#41) Variable "signup_instances" must not contain underscores.
(#43) Variable "course_id" must not contain underscores.
(#44) Spaces must be used to indent lines; tabs are not allowed
(#44) Tab found within whitespace
(#44) Line indented incorrectly; expected at least 12 spaces, found 3
(#44) Must use "self::" for local static member reference
(#44) Variable "course_id" must not contain underscores.
(#46) Spaces must be used to indent lines; tabs are not allowed
(#46) Tab found within whitespace
(#46) Line indented incorrectly; expected 4 spaces, found 1
(#46) Closing brace indented incorrectly; expected 4 spaces, found 1
(#48) Spaces must be used to indent lines; tabs are not allowed
(#48) Tab found within whitespace
(#48) Line indented incorrectly; expected 4 spaces, found 1
(#48) Variable "course_id" must not contain underscores.
(#49) Spaces must be used to indent lines; tabs are not allowed
(#49) Tab found within whitespace
(#49) Line indented incorrectly; expected at least 4 spaces, found 1
(#49) Opening brace should be on the same line as the declaration
(#50) Spaces must be used to indent lines; tabs are not allowed
(#50) Tab found within whitespace
(#50) Line indented incorrectly; expected at least 8 spaces, found 2
(#51) Spaces must be used to indent lines; tabs are not allowed
(#51) Tab found within whitespace
(#51) Line indented incorrectly; expected at least 8 spaces, found 2
(#52) Spaces must be used to indent lines; tabs are not allowed
(#52) Tab found within whitespace
(#52) Line indented incorrectly; expected at least 8 spaces, found 2
(#52) Commas (,) must be followed by white space.
(#53) Spaces must be used to indent lines; tabs are not allowed
(#53) Tab found within whitespace
(#53) Line indented incorrectly; expected at least 8 spaces, found 2
(#53) Variable "course_id" must not contain underscores.
(#54) Spaces must be used to indent lines; tabs are not allowed
(#54) Tab found within whitespace
(#54) Line indented incorrectly; expected at least 8 spaces, found 2
(#55) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#57) Spaces must be used to indent lines; tabs are not allowed
(#57) Tab found within whitespace
(#57) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) Line indented incorrectly; expected at least 8 spaces, found 2
(#59) Spaces must be used to indent lines; tabs are not allowed
(#59) Tab found within whitespace
(#59) Line indented incorrectly; expected at least 8 spaces, found 2
(#59) Variable "course_id" must not contain underscores.
(#60) Spaces must be used to indent lines; tabs are not allowed
(#60) Tab found within whitespace
(#60) Line indented incorrectly; expected at least 8 spaces, found 2
(#62) Spaces must be used to indent lines; tabs are not allowed
(#62) Tab found within whitespace
(#62) Line indented incorrectly; expected at least 8 spaces, found 2
(#63) Spaces must be used to indent lines; tabs are not allowed
(#63) Tab found within whitespace
(#63) Line indented incorrectly; expected at least 8 spaces, found 2
(#65) Spaces must be used to indent lines; tabs are not allowed
(#65) Tab found within whitespace
(#65) Line indented incorrectly; expected at least 8 spaces, found 2
(#66) Spaces must be used to indent lines; tabs are not allowed
(#66) Tab found within whitespace
(#66) Line indented incorrectly; expected at least 8 spaces, found 2
(#68) Spaces must be used to indent lines; tabs are not allowed
(#68) Tab found within whitespace
(#68) Line indented incorrectly; expected 8 spaces, found 2
(#68) Expected "if (...) {\n"; found "if (...)\n\t\t{\n"
(#69) Spaces must be used to indent lines; tabs are not allowed
(#69) Tab found within whitespace
(#69) Line indented incorrectly; expected at least 8 spaces, found 2
(#70) Spaces must be used to indent lines; tabs are not allowed
(#70) Tab found within whitespace
(#70) Line indented incorrectly; expected at least 12 spaces, found 3
(#71) Spaces must be used to indent lines; tabs are not allowed
(#71) Tab found within whitespace
(#71) Line indented incorrectly; expected at least 12 spaces, found 3
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) No space found before comment text; expected "// active" but found "//active"
(#72) Spaces must be used to indent lines; tabs are not allowed
(#72) Tab found within whitespace
(#72) Line indented incorrectly; expected at least 12 spaces, found 3
(#73) Spaces must be used to indent lines; tabs are not allowed
(#73) Tab found within whitespace
(#73) Line indented incorrectly; expected at least 12 spaces, found 3
(#74) Spaces must be used to indent lines; tabs are not allowed
(#74) Tab found within whitespace
(#74) Line indented incorrectly; expected 8 spaces, found 2
(#76) Spaces must be used to indent lines; tabs are not allowed
(#76) Tab found within whitespace
(#76) Line indented incorrectly; expected at least 8 spaces, found 2
(#77) Spaces must be used to indent lines; tabs are not allowed
(#77) Tab found within whitespace
(#77) Line indented incorrectly; expected at least 8 spaces, found 2
(#78) Spaces must be used to indent lines; tabs are not allowed
(#78) Tab found within whitespace
(#78) Line indented incorrectly; expected at least 8 spaces, found 2
(#80) Spaces must be used to indent lines; tabs are not allowed
(#80) Tab found within whitespace
(#80) Line indented incorrectly; expected at least 8 spaces, found 2
(#81) Spaces must be used to indent lines; tabs are not allowed
(#81) Tab found within whitespace
(#81) Line indented incorrectly; expected at least 8 spaces, found 2
(#81) Whitespace found at end of line
(#82) Spaces must be used to indent lines; tabs are not allowed
(#82) Tab found within whitespace
(#82) Line indented incorrectly; expected at least 8 spaces, found 5
(#84) Spaces must be used to indent lines; tabs are not allowed
(#84) Tab found within whitespace
(#84) Line indented incorrectly; expected at least 8 spaces, found 2
(#85) Spaces must be used to indent lines; tabs are not allowed
(#85) Tab found within whitespace
(#85) Line indented incorrectly; expected at least 8 spaces, found 2
(#87) Spaces must be used to indent lines; tabs are not allowed
(#87) Tab found within whitespace
(#87) Line indented incorrectly; expected 8 spaces, found 2
(#87) Expected "foreach (...) {\n"; found "foreach (...)\n\t\t{\n"
(#88) Spaces must be used to indent lines; tabs are not allowed
(#88) Tab found within whitespace
(#88) Line indented incorrectly; expected at least 8 spaces, found 2
(#89) Spaces must be used to indent lines; tabs are not allowed
(#89) Tab found within whitespace
(#89) Line indented incorrectly; expected at least 12 spaces, found 3
(#89) Inline control structures are not allowed
(#90) Spaces must be used to indent lines; tabs are not allowed
(#90) Tab found within whitespace
(#90) Line indented incorrectly; expected at least 12 spaces, found 4
(#91) Spaces must be used to indent lines; tabs are not allowed
(#91) Tab found within whitespace
(#91) Line indented incorrectly; expected 8 spaces, found 2
(#93) Spaces must be used to indent lines; tabs are not allowed
(#93) Tab found within whitespace
(#93) Line indented incorrectly; expected at least 8 spaces, found 2
(#95) Spaces must be used to indent lines; tabs are not allowed
(#95) Tab found within whitespace
(#95) Line indented incorrectly; expected at least 8 spaces, found 2
(#95) Inline control structures are not allowed
(#96) Spaces must be used to indent lines; tabs are not allowed
(#96) Tab found within whitespace
(#96) Line indented incorrectly; expected at least 8 spaces, found 3
(#97) Spaces must be used to indent lines; tabs are not allowed
(#97) Tab found within whitespace
(#97) Line indented incorrectly; expected at least 8 spaces, found 2
(#99) Spaces must be used to indent lines; tabs are not allowed
(#99) Tab found within whitespace
(#99) Line indented incorrectly; expected at least 8 spaces, found 2
(#100) Spaces must be used to indent lines; tabs are not allowed
(#100) Tab found within whitespace
(#100) Line indented incorrectly; expected 4 spaces, found 1
enrol/signup/settings.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#32) Inline comments must start with a capital letter, digit or 3-dots sequence
(#32) Inline comments must end in full-stops, exclamation marks, or question marks
(#32) No space found before comment text; expected "// --- enrol instance defaults ----------------------------------------------------------------------------" but found "//--- enrol instance defaults ----------------------------------------------------------------------------"
enrol/signup/version.php
(#30) 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 csslint [More info]


PHPDocs style problems

(30 errors, 6 warnings)

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

enrol/signup/db/access.php
(#2) Empty line found after PHP open tag
(#18) File-level phpdocs block does not have @copyright tag
(#21) Package enrol is not valid
enrol/signup/db/events.php
(#2) Empty line found after PHP open tag
(#6) Package signup_joomdle is not valid
enrol/signup/db/install.php
(#2) Empty line found after PHP open tag
(#30) Function xmldb_enrol_signup_install is not documented
(#21) Package enrol is not valid
enrol/signup/db/upgrade.php
(#2) File-level phpdocs block is not found
(#2) Function xmldb_enrol_signup_upgrade is not documented
(#2) Package is not specified for function xmldb_enrol_signup_upgrade. It is also not specified in file-level phpdocs
enrol/signup/edit.php
(#2) Empty line found after PHP open tag
(#18) No one-line description found in phpdocs for file
(#22) Package enrol is not valid
enrol/signup/edit_form.php
(#2) Empty line found after PHP open tag
(#14) Class enrol_signup_edit_form is not documented
(#16) Function enrol_signup_edit_form::definition is not documented
(#61) Function enrol_signup_edit_form::validation is not documented
(#3) No one-line description found in phpdocs for file
(#4) Package enrol is not valid
enrol/signup/lang/en/enrol_signup.php
(#2) File-level phpdocs block is not found
enrol/signup/lib.php
(#31) Class enrol_signup_plugin is not documented
(#33) Function enrol_signup_plugin::roles_protected is not documented
(#38) Function enrol_signup_plugin::allow_unenrol is not documented
(#42) Function enrol_signup_plugin::allow_manage is not documented
(#46) Function enrol_signup_plugin::show_enrolme_link is not documented
(#53) Phpdocs for function enrol_signup_plugin::add_course_navigation has incomplete parameters list
(#17) File-level phpdocs block does not have @copyright tag
(#22) Package enrol is not valid
enrol/signup/locallib.php
(#34) Function enrol_signup_handler::user_created is not documented
(#48) Function enrol_signup_handler::signup_enrol_user is not documented
(#29) Class enrol_signup_handler does not have @copyright tag
(#29) Class enrol_signup_handler does not have @license tag
enrol/signup/settings.php
(#2) Empty line found after PHP open tag
(#21) Package enrol is not valid
enrol/signup/version.php
(#20) Package enrol is not valid

Update savepoints problems

(2 errors, 0 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]

enrol/signup/db/upgrade.php
Detected more 'if' blocks (1) than 'savepoint' calls (0)
version 2011111506 is missing corresponding savepoint call

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]