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

(152 errors, 8 warnings)

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

local/resetpassword/index.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#26) Expected login check (require_login, require_course_login, admin_externalpage_setup) following config inclusion. None found.
(#28) Expected "if (...) {\n"; found "if(...){\n"
(#29) Spaces must be used to indent lines; tabs are not allowed
(#29) Tab found within whitespace
(#29) Line indented incorrectly; expected at least 4 spaces, found 1
(#29) Expected 1 space before "=>"; 0 found
(#29) Expected 1 space after "=>"; 0 found
(#30) Expected "} else {\n"; found "}else{\n"
(#31) Spaces must be used to indent lines; tabs are not allowed
(#31) Tab found within whitespace
(#31) Line indented incorrectly; expected at least 4 spaces, found 1
local/resetpassword/lang/en/local_resetpassword.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
local/resetpassword/lib.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#28) Spaces must be used to indent lines; tabs are not allowed
(#28) Tab found within whitespace
(#29) Spaces must be used to indent lines; tabs are not allowed
(#29) Expected 2 space(s) before asterisk; 1 found
(#29) Spaces must be used for alignment; tabs are not allowed
(#30) Spaces must be used for alignment; tabs are not allowed
(#30) Expected 2 space(s) before asterisk; 1 found
(#30) Spaces must be used for alignment; tabs are not allowed
(#31) Spaces must be used for alignment; tabs are not allowed
(#31) Expected 2 space(s) before asterisk; 1 found
(#31) Expected 1 space after asterisk; 2 found
(#31) Spaces must be used for alignment; tabs are not allowed
(#32) Spaces must be used for alignment; tabs are not allowed
(#32) Expected 2 space(s) before asterisk; 1 found
(#32) Expected 1 space after asterisk; 2 found
(#32) Spaces must be used for alignment; tabs are not allowed
(#33) Spaces must be used for alignment; tabs are not allowed
(#33) Expected 2 space(s) before asterisk; 1 found
(#33) Expected 1 space after asterisk; 1 found
(#33) Spaces must be used for alignment; tabs are not allowed
(#34) Spaces must be used for alignment; tabs are not allowed
(#34) Expected 2 space(s) before asterisk; 1 found
(#34) Expected 1 space after asterisk; 1 found
(#34) Spaces must be used for alignment; tabs are not allowed
(#35) Spaces must be used for alignment; tabs are not allowed
(#35) Expected 2 space(s) before asterisk; 1 found
(#36) Expected MOODLE_INTERNAL check or config.php inclusion
(#36) Expected 1 space after closing parenthesis; found 0
(#37) Spaces must be used for alignment; tabs are not allowed
(#37) Tab found within whitespace
(#37) Line indented incorrectly; expected at least 4 spaces, found 1
(#37) Variable "tempKey" must be all lower-case
(#38) Spaces must be used for alignment; tabs are not allowed
(#38) Tab found within whitespace
(#38) Line indented incorrectly; expected at least 4 spaces, found 1
(#38) Variable "tempKey" must be all lower-case
(#38) Variable "tempKey" must be all lower-case
(#40) Spaces must be used for alignment; tabs are not allowed
(#40) Tab found within whitespace
(#40) Line indented incorrectly; expected 4 spaces, found 1
(#40) Expected "if (...) {\n"; found "if(...){\n"
(#40) Variable "tempKey" must be all lower-case
(#41) Spaces must be used for alignment; tabs are not allowed
(#41) Tab found within whitespace
(#41) Line indented incorrectly; expected at least 8 spaces, found 2
(#42) Spaces must be used for alignment; tabs are not allowed
(#42) Tab found within whitespace
(#42) Line indented incorrectly; expected 4 spaces, found 1
(#44) Spaces must be used for alignment; tabs are not allowed
(#44) Tab found within whitespace
(#44) Line indented incorrectly; expected at least 4 spaces, found 1
(#47) Spaces must be used for alignment; tabs are not allowed
(#47) Tab found within whitespace
(#48) Spaces must be used for alignment; tabs are not allowed
(#48) Expected 2 space(s) before asterisk; 1 found
(#48) Spaces must be used for alignment; tabs are not allowed
(#49) Spaces must be used for alignment; tabs are not allowed
(#49) Expected 2 space(s) before asterisk; 1 found
(#49) Spaces must be used for alignment; tabs are not allowed
(#50) Spaces must be used for alignment; tabs are not allowed
(#50) Expected 2 space(s) before asterisk; 1 found
(#50) Spaces must be used for alignment; tabs are not allowed
(#50) Whitespace found at end of line
(#51) Spaces must be used for alignment; tabs are not allowed
(#51) Expected 2 space(s) before asterisk; 1 found
(#51) Spaces must be used for alignment; tabs are not allowed
(#51) Whitespace found at end of line
(#52) Spaces must be used for alignment; tabs are not allowed
(#52) Expected 2 space(s) before asterisk; 1 found
(#53) Spaces must be used for alignment; tabs are not allowed
(#53) Expected 2 space(s) before asterisk; 1 found
(#53) Expected 1 space after asterisk; 2 found
(#53) Spaces must be used for alignment; tabs are not allowed
(#54) Spaces must be used for alignment; tabs are not allowed
(#54) Expected 2 space(s) before asterisk; 1 found
(#54) Expected 1 space after asterisk; 1 found
(#54) Spaces must be used for alignment; tabs are not allowed
(#55) Spaces must be used for alignment; tabs are not allowed
(#55) Expected 2 space(s) before asterisk; 1 found
(#56) Expected 1 space after closing parenthesis; found 0
(#57) Spaces must be used for alignment; tabs are not allowed
(#57) Tab found within whitespace
(#57) Line indented incorrectly; expected at least 4 spaces, found 1
(#59) Spaces must be used for alignment; tabs are not allowed
(#59) Tab found within whitespace
(#59) Line indented incorrectly; expected at least 4 spaces, found 1
(#59) Expected 1 space before "=>"; 0 found
(#59) Expected 1 space after "=>"; 0 found
(#59) Expected 1 space before "=>"; 0 found
(#59) Expected 1 space after "=>"; 0 found
(#60) Spaces must be used for alignment; tabs are not allowed
(#60) Tab found within whitespace
(#60) Line indented incorrectly; expected 4 spaces, found 1
(#60) Expected "if (...) {\n"; found "if(...){\n"
(#61) Spaces must be used for alignment; tabs are not allowed
(#61) Tab found within whitespace
(#61) Line indented incorrectly; expected at least 8 spaces, found 2
(#62) Spaces must be used for alignment; tabs are not allowed
(#62) Tab found within whitespace
(#62) Line indented incorrectly; expected 4 spaces, found 1
(#64) Spaces must be used for alignment; tabs are not allowed
(#64) Tab found within whitespace
(#64) Line indented incorrectly; expected at least 4 spaces, found 1
(#66) Spaces must be used for alignment; tabs are not allowed
(#66) Tab found within whitespace
(#66) Inline comments must start with a capital letter, digit or 3-dots sequence
(#66) Line indented incorrectly; expected at least 4 spaces, found 1
(#67) Spaces must be used for alignment; tabs are not allowed
(#67) Tab found within whitespace
(#67) Inline comments must end in full-stops, exclamation marks, or question marks
(#67) Line indented incorrectly; expected at least 4 spaces, found 1
local/resetpassword/reset.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#24) Expected login check (require_login, require_course_login, admin_externalpage_setup) following config inclusion. None found.
(#34) Expected "if (...) {\n"; found "if(...){\n"
(#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
(#38) Expected "if (...) {\n"; found "if(...){\n"
(#39) Spaces must be used to indent lines; tabs are not allowed
(#39) Tab found within whitespace
(#39) Line indented incorrectly; expected at least 4 spaces, found 1
(#43) Expected "if (...) {\n"; found "if(...){\n"
(#44) Spaces must be used to indent lines; tabs are not allowed
(#44) Tab found within whitespace
(#44) Line indented incorrectly; expected at least 4 spaces, found 1
(#47) Expected "if (...) {\n"; found "if(...){\n"
(#48) Spaces must be used to indent lines; tabs are not allowed
(#48) Tab found within whitespace
(#48) Line indented incorrectly; expected at least 4 spaces, found 1
(#51) Inline comments must start with a capital letter, digit or 3-dots sequence
(#51) Inline comments must end in full-stops, exclamation marks, or question marks
(#51) No space found before comment text; expected "// send password reset email" but found "//send password reset email"
(#55) Expected "if (...) {\n"; found "if(...){\n"
(#56) Spaces must be used to indent lines; tabs are not allowed
(#56) Tab found within whitespace
(#56) Line indented incorrectly; expected at least 4 spaces, found 1
(#57) Expected "} else {\n"; found "}else{\n"
(#58) Spaces must be used to indent lines; tabs are not allowed
(#58) Tab found within whitespace
(#58) Line indented incorrectly; expected at least 4 spaces, found 1
local/resetpassword/settings.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#39) Whitespace found at end of line
(#46) Whitespace found at end of line
local/resetpassword/version.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#27) 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

(10 errors, 0 warnings)

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

local/resetpassword/index.php
(#20) Package local is not valid
local/resetpassword/lang/en/local_resetpassword.php
(#18) No one-line description found in phpdocs for file
(#20) Package local is not valid
local/resetpassword/lib.php
(#31) Phpdocs for function local_resetpassword_valid_key has incomplete parameters list
(#53) Phpdocs for function local_resetpassword_get_user_id has incomplete parameters list
(#20) Package local is not valid
local/resetpassword/reset.php
(#17) No one-line description found in phpdocs for file
(#18) Package local is not valid
local/resetpassword/settings.php
(#21) Package local is not valid
local/resetpassword/version.php
(#20) Package local 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]