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

(99 errors, 40 warnings)

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

auth/emailadmin/auth.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#16) Inline comments must end in full-stops, exclamation marks, or question marks
(#16) 3 slashes comments are not allowed; use "// Comment." instead
(#16) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#31) PHP4 style constructors are not allowed; use "__construct()" instead
(#31) Visibility must be declared on method "auth_plugin_emailadmin"
(#44) Visibility must be declared on method "user_login"
(#46) Expected 1 space before "=>"; 0 found
(#46) Expected 1 space after "=>"; 0 found
(#46) Expected 1 space before "=>"; 0 found
(#46) Expected 1 space after "=>"; 0 found
(#62) Visibility must be declared on method "user_update_password"
(#67) Visibility must be declared on method "can_signup"
(#78) Visibility must be declared on method "user_signup"
(#86) Inline comments must end in full-stops, exclamation marks, or question marks
(#86) 3 slashes comments are not allowed; use "// Comment." instead
(#89) Expected 1 space before "=>"; 0 found
(#89) Expected 1 space after "=>"; 0 found
(#90) Inline comments must start with a capital letter, digit or 3-dots sequence
(#90) Inline comments must end in full-stops, exclamation marks, or question marks
(#90) This comment is 75% valid code; is this commented out code?
(#90) No space found before comment text; expected "// events_trigger('user_created', $user);" but found "//events_trigger('user_created', $user);"
(#100) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#103) Commas (,) must be followed by white space.
(#124) Visibility must be declared on method "can_confirm"
(#134) Visibility must be declared on method "user_confirm"
(#146) Inline comments must end in full-stops, exclamation marks, or question marks
(#147) Expected 1 space before "=>"; 0 found
(#147) Expected 1 space after "=>"; 0 found
(#149) Expected 1 space before "=>"; 0 found
(#149) Expected 1 space after "=>"; 0 found
(#159) Visibility must be declared on method "prevent_local_passwords"
(#168) Visibility must be declared on method "is_internal"
(#178) Visibility must be declared on method "can_change_password"
(#188) Visibility must be declared on method "change_password_url"
(#189) Inline comments must start with a capital letter, digit or 3-dots sequence
(#189) Inline comments must end in full-stops, exclamation marks, or question marks
(#197) Visibility must be declared on method "can_reset_password"
(#209) Visibility must be declared on method "config_form"
(#209) Variable "user_fields" must not contain underscores.
(#210) "include" must be immediately followed by an open parenthesis
(#216) Visibility must be declared on method "process_config"
(#217) Inline comments must start with a capital letter, digit or 3-dots sequence
(#217) Inline comments must end in full-stops, exclamation marks, or question marks
(#225) Whitespace found at end of line
(#228) Inline comments must end in full-stops, exclamation marks, or question marks
(#231) Inline comments must start with a capital letter, digit or 3-dots sequence
(#231) Inline comments must end in full-stops, exclamation marks, or question marks
(#241) Visibility must be declared on method "is_captcha_enabled"
(#243) Line exceeds 132 characters; contains 136 characters
(#253) Visibility must be declared on method "send_confirmation_email_support"
(#256) Whitespace found at end of line
(#259) Whitespace found at end of line
(#259) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#263) Inline comments must end in full-stops, exclamation marks, or question marks
(#266) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#267) Inline control structures are not allowed
(#275) Inline comments must end in full-stops, exclamation marks, or question marks
(#278) Whitespace found at end of line
(#279) Inline comments must start with a capital letter, digit or 3-dots sequence
(#279) Inline comments must end in full-stops, exclamation marks, or question marks
(#281) Variable "langHack" must be all lower-case
(#282) Variable "langHack" must be all lower-case
(#283) Variable "langHack" must be all lower-case
(#284) Variable "hackBackup" must be all lower-case
(#284) Expected 1 space before "=>"; 0 found
(#284) Expected 1 space after "=>"; 0 found
(#284) Commas (,) must be followed by white space.
(#284) Expected 1 space before "=>"; 0 found
(#284) Expected 1 space after "=>"; 0 found
(#284) Commas (,) must be followed by white space.
(#284) Expected 1 space before "=>"; 0 found
(#284) Expected 1 space after "=>"; 0 found
(#285) Variable "hackBackup" must be all lower-case
(#285) Variable "hackBackupKey" must be all lower-case
(#285) Variable "hackBackupValue" must be all lower-case
(#286) Variable "hackBackup" must be all lower-case
(#286) Variable "hackBackupKey" must be all lower-case
(#286) Variable "GLOBALS" must be all lower-case
(#286) Variable "hackBackupKey" must be all lower-case
(#287) Variable "GLOBALS" must be all lower-case
(#287) Variable "hackBackupKey" must be all lower-case
(#287) Variable "langHack" must be all lower-case
(#289) Variable "useLang" must be all lower-case
(#290) Variable "hackBackup" must be all lower-case
(#290) Variable "hackBackupKey" must be all lower-case
(#290) Variable "hackBackupValue" must be all lower-case
(#291) Variable "GLOBALS" must be all lower-case
(#291) Variable "hackBackupKey" must be all lower-case
(#291) Variable "hackBackupValue" must be all lower-case
(#293) Line exceeds 132 characters; contains 162 characters
(#293) Inline comments must start with a capital letter, digit or 3-dots sequence
(#294) Whitespace found at end of line
(#295) Variable "useLang" must be all lower-case
(#295) Line exceeds 132 characters; contains 151 characters
(#296) Whitespace found at end of line
(#298) Inline comments must start with a capital letter, digit or 3-dots sequence
(#298) Inline comments must end in full-stops, exclamation marks, or question marks
(#302) Whitespace found at end of line
(#303) Inline comments must end in full-stops, exclamation marks, or question marks
(#304) Whitespace found at end of line
(#305) Inline comments must start with a capital letter, digit or 3-dots sequence
(#305) Inline comments must end in full-stops, exclamation marks, or question marks
(#305) No space found before comment text; expected "// directly email rather than using the messaging system to ensure its not routed to a popup or jabber" but found "//directly email rather than using the messaging system to ensure its not routed to a popup or jabber"
(#308) Variable "admin_found" must not contain underscores.
(#310) Inline comments must end in full-stops, exclamation marks, or question marks
(#311) The use of function error_log() is forbidden
(#311) The use of function print_r() is forbidden
(#313) Variable "send_list" must not contain underscores.
(#315) The use of function error_log() is forbidden
(#315) The use of function print_r() is forbidden
(#317) Variable "admin_found" must not contain underscores.
(#319) Variable "admin_found" must not contain underscores.
(#320) Variable "send_list" must not contain underscores.
(#328) Variable "send_list" must not contain underscores.
(#337) Variable "admin_found" must not contain underscores.
(#343) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#349) The use of function error_log() is forbidden
(#353) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#359) Whitespace found at end of line
(#368) Visibility must be declared on method "list_custom_fields"
(#373) Expected "foreach (...) {\n"; found "foreach(...) {\n"
auth/emailadmin/confirm.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#28) Expected login check (require_login, require_course_login, admin_externalpage_setup) following config inclusion. None found.
(#45) Inline comments must start with a capital letter, digit or 3-dots sequence
(#45) Inline comments must end in full-stops, exclamation marks, or question marks
(#51) Inline comments must end in full-stops, exclamation marks, or question marks
(#53) Inline comments must start with a capital letter, digit or 3-dots sequence
(#53) Inline comments must end in full-stops, exclamation marks, or question marks
(#53) No space found before comment text; expected "// directly email rather than using the messaging system to ensure its not routed to a popup or jabber" but found "//directly email rather than using the messaging system to ensure its not routed to a popup or jabber"
(#58) Inline comments must end in full-stops, exclamation marks, or question marks
(#61) Inline comments must end in full-stops, exclamation marks, or question marks
(#64) Inline comments must start with a capital letter, digit or 3-dots sequence
(#64) Inline comments must end in full-stops, exclamation marks, or question marks
(#64) This comment is 70% valid code; is this commented out code?
(#64) No space found before comment text; expected "// $PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));" but found "//$PAGE->set_context(get_context_instance(CONTEXT_SYSTEM));"
(#79) Inline comments must end in full-stops, exclamation marks, or question marks
auth/emailadmin/lang/en/auth_emailadmin.php
(#2) The opening <?php tag must be followed by exactly one newline.
auth/emailadmin/version.php
(#31) 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

(16 errors, 3 warnings)

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

auth/emailadmin/auth.php
(#2) Empty line found after PHP open tag
(#67) Function auth_plugin_emailadmin::can_signup is not documented
(#159) Function auth_plugin_emailadmin::prevent_local_passwords is not documented
(#16) Found comment starting with three or more slashes
(#86) Found comment starting with three or more slashes
(#207) Phpdocs for function auth_plugin_emailadmin::config_form has incomplete parameters list
(#213) Phpdocs for function auth_plugin_emailadmin::process_config has incomplete parameters list
(#3) File-level phpdocs block does not have @copyright tag
(#23) Class auth_plugin_emailadmin does not have @copyright tag
(#23) Class auth_plugin_emailadmin does not have @license tag
(#6) Package moodle multiauth is not valid
auth/emailadmin/confirm.php
(#2) Empty line found after PHP open tag
(#31) Function send_confirmation_email_user is not documented
(#18) No one-line description found in phpdocs for file
(#22) Package core is not valid
auth/emailadmin/lang/en/auth_emailadmin.php
(#2) Empty line found after PHP open tag
(#18) No one-line description found in phpdocs for file
auth/emailadmin/version.php
(#17) No one-line description found in phpdocs for file
(#21) Package auth is not valid

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]