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

(71 errors, 30 warnings)

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

blocks/spam_deletion/block_spam_deletion.php
(#47) Visibility must be declared on method "init"
(#56) Visibility must be declared on method "instance_allow_multiple"
(#63) Visibility must be declared on method "has_config"
(#72) Visibility must be declared on method "applicable_formats"
(#81) Visibility must be declared on method "get_content"
(#84) TRUE, FALSE and NULL must be lowercase; expected "null" but found "NULL"
(#111) Inline comments must end in full-stops, exclamation marks, or question marks
(#129) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#133) Expected 1 space before ".="; 0 found
(#141) Expected 1 space before ".="; 0 found
(#165) Visibility must be declared on method "cron"
blocks/spam_deletion/classes/akismet.php
(#88) The use of function error_log() is forbidden
(#136) The use of function error_log() is forbidden
blocks/spam_deletion/classes/event/spammer_deleted.php
(#70) Expected 1 space before "=>"; 0 found
blocks/spam_deletion/confirmdelete.php
(#28) Inline doc block comments are not allowed; use "// Comment." instead
(#30) Inline doc block comments are not allowed; use "// Comment." instead
(#46) Inline doc block comments are not allowed; use "// Comment." instead
(#51) Inline comments must end in full-stops, exclamation marks, or question marks
(#77) Line exceeds 132 characters; contains 135 characters
blocks/spam_deletion/db/access.php
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/spam_deletion/db/messages.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/spam_deletion/db/upgrade.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#18) Expected MOODLE_INTERNAL check or config.php inclusion
(#25) Inline comments must end in full-stops, exclamation marks, or question marks
(#29) Inline comments must end in full-stops, exclamation marks, or question marks
(#35) Inline comments must end in full-stops, exclamation marks, or question marks
(#41) Inline comments must end in full-stops, exclamation marks, or question marks
(#47) Inline comments must end in full-stops, exclamation marks, or question marks
(#52) Inline comments must start with a capital letter, digit or 3-dots sequence
(#52) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/spam_deletion/detect.php
(#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
(#231) This comment is 80% valid code; is this commented out code?
(#231) No space found before comment text; expected "// debugging("Input: $text \nOutput (via $oldcharset): $output \nSummary: $percentagemissing %)");" but found "//debugging("Input: $text \nOutput (via $oldcharset): $output \nSummary: $percentagemissing %)");"
(#251) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/spam_deletion/lib.php
(#111) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#116) Inline comments must start with a capital letter, digit or 3-dots sequence
(#116) Inline comments must end in full-stops, exclamation marks, or question marks
(#238) Inline comments must end in full-stops, exclamation marks, or question marks
(#238) No space found before comment text; expected "// Make sure deletion should only happen for recently created account" but found "//Make sure deletion should only happen for recently created account"
(#267) Line exceeds 132 characters; contains 154 characters
(#268) Line exceeds 132 characters; contains 157 characters
(#272) Line exceeds 132 characters; contains 137 characters
(#390) Line exceeds 132 characters; contains 156 characters
(#517) Expected 1 space before ".="; 0 found
(#518) Expected 1 space before ".="; 0 found
(#530) Line indented incorrectly; expected 12 spaces, found 8
(#531) Line indented incorrectly; expected at least 16 spaces, found 12
(#533) Line indented incorrectly; expected 12 spaces, found 8
(#534) Line indented incorrectly; expected at least 16 spaces, found 12
(#536) Line indented incorrectly; expected 12 spaces, found 8
(#537) Line indented incorrectly; expected at least 16 spaces, found 12
(#539) Line indented incorrectly; expected 12 spaces, found 8
(#540) Line indented incorrectly; expected at least 16 spaces, found 12
(#542) Line indented incorrectly; expected 12 spaces, found 8
(#543) Line indented incorrectly; expected at least 16 spaces, found 12
(#545) Line indented incorrectly; expected 12 spaces, found 8
(#546) Line indented incorrectly; expected at least 16 spaces, found 12
(#548) Line indented incorrectly; expected 12 spaces, found 8
(#549) Line indented incorrectly; expected at least 16 spaces, found 12
(#551) Line indented incorrectly; expected 12 spaces, found 8
(#613) Line exceeds 132 characters; contains 137 characters
(#670) Line exceeds 132 characters; contains 137 characters
(#724) Line exceeds 132 characters; contains 137 characters
(#776) Line exceeds 132 characters; contains 137 characters
(#808) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#833) Line exceeds 132 characters; contains 141 characters
blocks/spam_deletion/reportspam.php
(#68) Expected "} else if (...) {\n"; found "}else if (...) {\n"
(#72) Expected "} else if (...) {\n"; found "}else if (...) {\n"
(#95) Line exceeds 132 characters; contains 150 characters
blocks/spam_deletion/settings.php
(#29) Commas (,) must be followed by white space.
(#34) Commas (,) must be followed by white space.
(#35) Commas (,) must be followed by white space.
(#40) Commas (,) must be followed by white space.
(#41) Commas (,) must be followed by white space.
(#42) Expected 1 space before "*"; 0 found
(#42) Expected 1 space after "*"; 0 found
(#42) Expected 1 space before "*"; 0 found
(#42) Expected 1 space after "*"; 0 found
(#45) Commas (,) must be followed by white space.
(#49) Commas (,) must be followed by white space.
(#50) Commas (,) must be followed by white space.
(#54) Commas (,) must be followed by white space.
(#55) Commas (,) must be followed by white space.
blocks/spam_deletion/tests/detect_test.php
(#2) The opening <?php tag must be followed by exactly one newline.
blocks/spam_deletion/tests/lib_test.php
(#140) Expected 1 space before "="; 0 found
(#140) Expected 1 space after "="; 0 found
(#140) Expected 1 space before "<"; 0 found
(#140) Expected 1 space after "<"; 0 found
(#150) Expected 1 space before "=>"; 0 found
(#150) Expected 1 space after "=>"; 0 found
(#152) Expected 1 space before "=>"; 0 found
(#152) Expected 1 space after "=>"; 0 found
(#159) Expected 1 space before "=>"; 0 found
(#159) Expected 1 space after "=>"; 0 found
(#161) Expected 1 space before "=>"; 0 found
(#161) Expected 1 space after "=>"; 0 found
blocks/spam_deletion/version.php
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/spam_deletion/viewvotes.php
(#32) Expected 1 space before "="; 0 found
(#43) Space found before object operator

Javascript coding style problems

(0 errors, 3 warnings)

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

blocks/spam_deletion/module.js
(#14) Expected a conditional expression and instead saw an assignment.
(#39) Expected a conditional expression and instead saw an assignment.
(#52) Missing semicolon.

CSS problems

(0 errors, 0 warnings)

This section shows CSS problems detected by csslint [More info]


PHPDocs style problems

(97 errors, 3 warnings)

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

blocks/spam_deletion/block_spam_deletion.php
(#165) Function block_spam_deletion::cron is not documented
(#17) No one-line description found in phpdocs for file
(#37) Category spam_deletion is not valid
blocks/spam_deletion/classes/akismet.php
(#32) Class akismet is not documented
(#35) Variable akismet::$commentverifyurl is not documented
(#36) Variable akismet::$submitspamurl is not documented
(#37) Variable akismet::$testingstr is not documented
(#38) Variable akismet::$apikey is not documented
(#39) Variable akismet::$apikeyvalid is not documented
(#34) Constant akismet::VERIFY_KEY_URL is not documented
blocks/spam_deletion/confirmdelete.php
(#17) No one-line description found in phpdocs for file
blocks/spam_deletion/db/access.php
(#20) Package block_spamdeletion is not valid
(#21) Category spam_deletion is not valid
blocks/spam_deletion/db/messages.php
(#2) Empty line found after PHP open tag
blocks/spam_deletion/db/upgrade.php
(#2) Empty line found after PHP open tag
(#18) File-level phpdocs block is not found
(#18) Function xmldb_block_spam_deletion_upgrade is not documented
(#18) Package is not specified for function xmldb_block_spam_deletion_upgrade. It is also not specified in file-level phpdocs
blocks/spam_deletion/detect.php
(#28) Phpdocs for function block_spam_deletion_message_is_spammy has incomplete parameters list
blocks/spam_deletion/improveakismet.php
(#17) File-level phpdocs block is not found
blocks/spam_deletion/lang/en/block_spam_deletion.php
(#21) Category spam_deletion is not valid
blocks/spam_deletion/lib.php
(#33) Class spammerlib is not documented
(#282) Class spam_report is not documented
(#334) Class forum_post_spam is not documented
(#448) Class comment_spam is not documented
(#561) Class spam_report_table is not documented
(#574) Class forum_spam_report_table is not documented
(#633) Class forum_deleted_spam_report_table is not documented
(#684) Class comment_spam_report_table is not documented
(#744) Class comment_deleted_spam_report_table is not documented
(#795) Class user_profile_spam_table is not documented
(#853) Class akismet_table is not documented
(#277) Function spammerlib::get_user is not documented
(#289) Function spam_report::register_vote is not documented
(#290) Function spam_report::has_voted is not documented
(#291) Function spam_report::has_permission is not documented
(#292) Function spam_report::content_html is not documented
(#293) Function spam_report::return_url is not documented
(#295) Function spam_report::get_vote_weighting is not documented
(#303) Function spam_report::notify_spam is not documented
(#341) Function forum_post_spam::__construct is not documented
(#356) Function forum_post_spam::return_url is not documented
(#360) Function forum_post_spam::has_permission is not documented
(#364) Function forum_post_spam::register_vote is not documented
(#380) Function forum_post_spam::has_voted is not documented
(#387) Function forum_post_spam::content_html is not documented
(#454) Function comment_spam::__construct is not documented
(#474) Function comment_spam::return_url is not documented
(#478) Function comment_spam::has_permission is not documented
(#482) Function comment_spam::register_vote is not documented
(#496) Function comment_spam::has_voted is not documented
(#503) Function comment_spam::content_html is not documented
(#523) Function comment_spam::get_component_from_commentarea is not documented
(#564) Function spam_report_table::col_spammer is not documented
(#568) Function spam_report_table::print_nothing_to_display is not documented
(#578) Function forum_spam_report_table::__construct is not documented
(#596) Function forum_spam_report_table::query_db is not documented
(#601) Function forum_spam_report_table::col_votecount is not documented
(#620) Function forum_spam_report_table::col_postlink is not documented
(#626) Function forum_spam_report_table::col_actions is not documented
(#636) Function forum_deleted_spam_report_table::__construct is not documented
(#653) Function forum_deleted_spam_report_table::query_db is not documented
(#658) Function forum_deleted_spam_report_table::col_votecount is not documented
(#677) Function forum_deleted_spam_report_table::col_actions is not documented
(#687) Function comment_spam_report_table::__construct is not documented
(#707) Function comment_spam_report_table::query_db is not documented
(#712) Function comment_spam_report_table::col_votecount is not documented
(#731) Function comment_spam_report_table::col_postlink is not documented
(#737) Function comment_spam_report_table::col_actions is not documented
(#746) Function comment_deleted_spam_report_table::__construct is not documented
(#764) Function comment_deleted_spam_report_table::col_votecount is not documented
(#783) Function comment_deleted_spam_report_table::query_db is not documented
(#788) Function comment_deleted_spam_report_table::col_actions is not documented
(#798) Function user_profile_spam_table::__construct is not documented
(#816) Function user_profile_spam_table::col_votecount is not documented
(#841) Function user_profile_spam_table::query_db is not documented
(#846) Function user_profile_spam_table::col_actions is not documented
(#856) Function akismet_table::__construct is not documented
(#866) Function akismet_table::col_actions is not documented
(#876) Function akismet_table::print_nothing_to_display is not documented
(#285) Variable spam_report::$course is not documented
(#286) Variable spam_report::$cm is not documented
(#287) Variable spam_report::$context is not documented
(#337) Variable forum_post_spam::$post is not documented
(#338) Variable forum_post_spam::$discussion is not documented
(#339) Variable forum_post_spam::$forum is not documented
(#451) Variable comment_spam::$comment is not documented
(#452) Variable comment_spam::$commentlib is not documented
(#577) Variable forum_spam_report_table::$query is not documented
(#17) No one-line description found in phpdocs for file
(#22) Category spam_deletion is not valid
blocks/spam_deletion/marknotspam.php
(#17) File-level phpdocs block is not found
blocks/spam_deletion/reportspam.php
(#17) File-level phpdocs block is not found
blocks/spam_deletion/tests/detect_test.php
(#2) Empty line found after PHP open tag
(#32) Class block_spam_deletion_detect_testcase is not documented
(#22) Category phpunit is not valid
blocks/spam_deletion/tests/lib_test.php
(#31) Class block_spam_deletion_lib_testcase is not documented
(#21) Category phpunit is not valid
blocks/spam_deletion/version.php
(#21) Category spam_deletion is not valid
blocks/spam_deletion/viewvotes.php
(#17) File-level phpdocs block is not found

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]