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

(53 errors, 33 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
(#222) Inline comments must start with a capital letter, digit or 3-dots sequence
(#222) Inline comments must end in full-stops, exclamation marks, or question marks
(#231) Visibility must be declared on method "is_captcha_enabled"
(#233) Line exceeds 132 characters; contains 136 characters
(#243) Visibility must be declared on method "send_confirmation_email_support"
(#245) Whitespace found at end of line
(#248) Whitespace found at end of line
(#248) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#256) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#257) Spaces must be used for alignment; tabs are not allowed
(#257) Tab found within whitespace
(#260) Inline comments must end in full-stops, exclamation marks, or question marks
(#262) Whitespace found at end of line
(#264) Whitespace found at end of line
(#266) Inline comments must start with a capital letter, digit or 3-dots sequence
(#266) Inline comments must end in full-stops, exclamation marks, or question marks
(#270) Whitespace found at end of line
(#271) Inline comments must end in full-stops, exclamation marks, or question marks
(#272) Whitespace found at end of line
(#273) Inline comments must start with a capital letter, digit or 3-dots sequence
(#273) Inline comments must end in full-stops, exclamation marks, or question marks
(#273) 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"
(#277) Inline comments must end in full-stops, exclamation marks, or question marks
(#291) Visibility must be declared on method "list_custom_fields"
(#296) 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 jshint [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]


Mustache template problems

(0 errors, 0 warnings)

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