Prechecker results: error


Overview

(0 errors, 0 warnings)

This section shows the general problems detected when processing the code [More info]


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

(357 errors, 133 warnings)

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

public/mod/moochat/backup/moodle2/backup_moochat_activity_task.class.php
(#8) Comment does not contain full Moodle boilerplate
(#21) Missing docblock for class backup_moochat_activity_task
(#21) Opening brace must not be followed by a blank line
(#48) Expected at least 1 space before "."; 0 found
(#48) Expected at least 1 space after "."; 0 found
(#48) Expected at least 1 space before "."; 0 found
(#48) Expected at least 1 space after "."; 0 found
(#52) Expected at least 1 space before "."; 0 found
(#52) Expected at least 1 space after "."; 0 found
(#52) Expected at least 1 space before "."; 0 found
(#52) Expected at least 1 space after "."; 0 found
public/mod/moochat/backup/moodle2/backup_moochat_stepslib.php
(#8) Comment does not contain full Moodle boilerplate
(#17) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#19) Missing docblock for class backup_moochat_activity_structure_step
(#19) Opening brace must not be followed by a blank line
(#37) There should be a comma after the last array item in a multi-line array.
(#43) There should be a comma after the last array item in a multi-line array.
public/mod/moochat/backup/moodle2/restore_moochat_activity_task.class.php
(#8) Comment does not contain full Moodle boilerplate
(#21) Missing docblock for class restore_moochat_activity_task
(#21) Opening brace must not be followed by a blank line
(#62) Function closing brace must go on the next line following the body; found 1 blank lines before brace
public/mod/moochat/backup/moodle2/restore_moochat_stepslib.php
(#8) Comment does not contain full Moodle boilerplate
(#17) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#19) Missing docblock for class restore_moochat_activity_structure_step
(#19) Opening brace must not be followed by a blank line
public/mod/moochat/chat_service.php
(#8) Comment does not contain full Moodle boilerplate
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
(#31) Short array syntax must be used to define arrays
(#35) Inline comments must end in full-stops, exclamation marks, or question marks
(#38) Inline comments must end in full-stops, exclamation marks, or question marks
(#40) Short array syntax must be used to define arrays
(#42) Inline comments must end in full-stops, exclamation marks, or question marks
(#43) Variable "ratelimit_enabled" must not contain underscores.
(#44) Variable "ratelimit_enabled" must not contain underscores.
(#45) Variable "ratelimit_period" must not contain underscores.
(#46) Variable "ratelimit_count" must not contain underscores.
(#47) Whitespace found at end of line
(#48) Inline comments must end in full-stops, exclamation marks, or question marks
(#49) Opening parenthesis of a multi-line function call must be the last content on the line
(#49) Whitespace found at end of line
(#50) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#50) Short array syntax must be used to define arrays
(#50) Closing parenthesis of a multi-line function call must be on a line by itself
(#51) Whitespace found at end of line
(#53) Variable "period_seconds" must not contain underscores.
(#53) Variable "ratelimit_period" must not contain underscores.
(#54) Whitespace found at end of line
(#56) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) Variable "period_seconds" must not contain underscores.
(#58) Inline comments must end in full-stops, exclamation marks, or question marks
(#64) Inline comments must end in full-stops, exclamation marks, or question marks
(#65) Variable "ratelimit_count" must not contain underscores.
(#66) Variable "period_string" must not contain underscores.
(#66) Variable "ratelimit_period" must not contain underscores.
(#67) Short array syntax must be used to define arrays
(#68) Opening parenthesis of a multi-line function call must be the last content on the line
(#68) Only one argument is allowed per line in a multi-line function call
(#68) Whitespace found at end of line
(#69) Multi-line function call not indented correctly; expected 20 spaces but found 24
(#69) Short array syntax must be used to define arrays
(#69) Variable "ratelimit_count" must not contain underscores.
(#69) Variable "period_string" must not contain underscores.
(#69) Closing parenthesis of a multi-line function call must be on a line by itself
(#70) There should be a comma after the last array item in a multi-line array.
(#76) Inline comments must end in full-stops, exclamation marks, or question marks
(#87) Inline comments must end in full-stops, exclamation marks, or question marks
(#88) Short array syntax must be used to define arrays
(#92) Short array syntax must be used to define arrays
(#96) Inline comments must end in full-stops, exclamation marks, or question marks
(#99) Short array syntax must be used to define arrays
(#103) Inline comments must end in full-stops, exclamation marks, or question marks
(#107) Inline comments must end in full-stops, exclamation marks, or question marks
(#109) Inline comments must end in full-stops, exclamation marks, or question marks
(#110) Short array syntax must be used to define arrays
(#112) Whitespace found at end of line
(#113) Variable "include_hidden" must not contain underscores.
(#114) Variable "include_hidden" must not contain underscores.
(#115) Whitespace found at end of line
(#120) Whitespace found at end of line
(#124) Inline comments must end in full-stops, exclamation marks, or question marks
(#133) Inline comments must end in full-stops, exclamation marks, or question marks
(#137) Inline comments must end in full-stops, exclamation marks, or question marks
(#143) Whitespace found at end of line
(#144) Inline comments must end in full-stops, exclamation marks, or question marks
(#147) Whitespace found at end of line
(#150) Whitespace found at end of line
(#151) Inline comments must end in full-stops, exclamation marks, or question marks
(#152) Variable "ratelimit_enabled" must not contain underscores.
(#156) Whitespace found at end of line
(#157) Variable "ratelimit_count" must not contain underscores.
(#159) Inline comments must end in full-stops, exclamation marks, or question marks
(#161) Whitespace found at end of line
(#162) Inline comments must end in full-stops, exclamation marks, or question marks
(#163) Short array syntax must be used to define arrays
(#166) There should be a comma after the last array item in a multi-line array.
(#169) Inline comments must end in full-stops, exclamation marks, or question marks
(#170) Short array syntax must be used to define arrays
(#171) There should be a comma after the last array item in a multi-line array.
(#174) Blank line found at end of control structure
(#174) Whitespace found at end of line
(#176) Short array syntax must be used to define arrays
(#177) There should be a comma after the last array item in a multi-line array.
public/mod/moochat/classes/event/course_module_viewed.php
(#8) Comment does not contain full Moodle boilerplate
(#19) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#21) Missing docblock for class course_module_viewed
(#21) Opening brace must not be followed by a blank line
(#54) Missing docblock for function get_objectid_mapping
(#55) Short array syntax must be used to define arrays
public/mod/moochat/classes/external/send_message.php
(#8) Comment does not contain full Moodle boilerplate
(#30) Missing docblock for class send_message
(#30) Opening brace must not be followed by a blank line
(#88) Opening parenthesis of a multi-line function call must be the last content on the line
(#89) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#89) Closing parenthesis of a multi-line function call must be on a line by itself
(#108) Opening parenthesis of a multi-line function call must be the last content on the line
(#108) Only one argument is allowed per line in a multi-line function call
(#109) Multi-line function call not indented correctly; expected 28 spaces but found 32
(#109) Closing parenthesis of a multi-line function call must be on a line by itself
(#212) Blank line found at end of control structure
public/mod/moochat/classes/output/chat_interface.php
(#8) Comment does not contain full Moodle boilerplate
(#24) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#26) Missing docblock for class chat_interface
(#26) Opening brace must not be followed by a blank line
(#53) Whitespace found at end of line
(#59) Whitespace found at end of line
(#60) Inline comments must end in full-stops, exclamation marks, or question marks
(#65) Whitespace found at end of line
public/mod/moochat/classes/output/renderer.php
(#8) Comment does not contain full Moodle boilerplate
(#21) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#23) Missing docblock for class renderer
(#23) Opening brace must not be followed by a blank line
public/mod/moochat/classes/privacy/provider.php
(#8) Comment does not contain full Moodle boilerplate
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#28) Missing docblock for class provider
(#28) The interface names in a "class implements" statement should be ordered alphabetically. Expected: \core_privacy\local\request\core_userlist_provider, \core_privacy\local\metadata\provider, \core_privacy\local\request\plugin\provider; Found: \core_privacy\local\metadata\provider, \core_privacy\local\request\plugin\provider, \core_privacy\local\request\core_userlist_provider
(#31) Opening brace must not be followed by a blank line
(#122) Long list syntax is not allowed
(#223) Long list syntax is not allowed
public/mod/moochat/db/access.php
(#8) Comment does not contain full Moodle boilerplate
(#19) Short array syntax must be used to define arrays
(#21) Short array syntax must be used to define arrays
(#25) Short array syntax must be used to define arrays
(#27) There should be a comma after the last array item in a multi-line array.
(#29) There should be a comma after the last array item in a multi-line array.
(#32) Short array syntax must be used to define arrays
(#35) Short array syntax must be used to define arrays
(#40) There should be a comma after the last array item in a multi-line array.
(#41) There should be a comma after the last array item in a multi-line array.
(#44) Short array syntax must be used to define arrays
(#48) Short array syntax must be used to define arrays
(#52) There should be a comma after the last array item in a multi-line array.
(#53) There should be a comma after the last array item in a multi-line array.
public/mod/moochat/db/services.php
(#8) Comment does not contain full Moodle boilerplate
(#26) Expected at least 1 space before "=>"; 0 found
(#26) Expected 1 space before "=>"; 0 found
public/mod/moochat/db/upgrade.php
(#1) End of line character is invalid; expected "\n" but found "\r\n"
(#3) Line 2 of the opening comment must start "//".
(#8) Comment does not contain full Moodle boilerplate
(#17) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
(#34) Whitespace found at end of line
(#38) Whitespace found at end of line
(#42) Inline comments must end in full-stops, exclamation marks, or question marks
(#45) Whitespace found at end of line
(#50) Whitespace found at end of line
(#51) Line exceeds 132 characters; contains 144 characters
(#55) Whitespace found at end of line
(#59) Inline comments must end in full-stops, exclamation marks, or question marks
(#63) Whitespace found at end of line
(#67) Whitespace found at end of line
(#72) Expected 1 newline at end of file; 0 found
public/mod/moochat/index.php
(#8) Comment does not contain full Moodle boilerplate
(#20) Inline comments must end in full-stops, exclamation marks, or question marks
(#22) Short array syntax must be used to define arrays
(#27) Short array syntax must be used to define arrays
(#29) Expected at least 1 space before "."; 0 found
(#29) Expected at least 1 space after "."; 0 found
(#29) Expected at least 1 space before "."; 0 found
(#29) Expected at least 1 space after "."; 0 found
(#37) Opening parenthesis of a multi-line function call must be the last content on the line
(#38) Multi-line function call not indented correctly; expected 4 spaces but found 11
(#38) Short array syntax must be used to define arrays
(#38) Closing parenthesis of a multi-line function call must be on a line by itself
(#48) Expected at least 1 space before "."; 0 found
(#48) Expected at least 1 space after "."; 0 found
(#49) Short array syntax must be used to define arrays
(#50) Short array syntax must be used to define arrays
(#52) Short array syntax must be used to define arrays
(#53) Short array syntax must be used to define arrays
(#59) Whitespace found at end of line
(#62) Short array syntax must be used to define arrays
(#64) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#64) Short array syntax must be used to define arrays
(#64) Closing parenthesis of a multi-line function call must be on a line by itself
(#67) Short array syntax must be used to define arrays
(#68) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#68) Closing parenthesis of a multi-line function call must be on a line by itself
(#72) Short array syntax must be used to define arrays
(#74) Short array syntax must be used to define arrays
public/mod/moochat/lang/en/moochat.php
(#8) Comment does not contain full Moodle boilerplate
(#20) The string key "modulename" is not in the correct order, it should be before "pluginname"
(#22) The string key "modulename_help" is not in the correct order, it should be before "modulenameplural"
(#25) The string key "moochat:submit" is not in the correct order, it should be before "moochat:view"
(#27) Unexpected comment found. Auto-fixing will not work after this comment
(#27) Inline comments must end in full-stops, exclamation marks, or question marks
(#28) The string key "chatname" is not in the correct order, it should be before "moochat:submit"
(#35) The string key "display_inline" is not in the correct order, it should be before "display_page"
(#36) The string key "chatsize" is not in the correct order, it should be before "display_inline"
(#39) The string key "chatsize_medium" is not in the correct order, it should be before "chatsize_small"
(#40) The string key "chatsize_large" is not in the correct order, it should be before "chatsize_medium"
(#43) The string key "include_hidden_content" is not in the correct order, it should be before "include_section_content_help"
(#45) The string key "avatar" is not in the correct order, it should be before "include_hidden_content_help"
(#51) The string key "defaultprompt" is not in the correct order, it should be before "systemprompt_help"
(#53) Unexpected comment found. Auto-fixing will not work after this comment
(#53) Inline comments must end in full-stops, exclamation marks, or question marks
(#55) The string key "ratelimit_enable" is not in the correct order, it should be before "ratelimiting"
(#59) The string key "ratelimit_count" is not in the correct order, it should be before "ratelimit_period_help"
(#61) The string key "period_hour" is not in the correct order, it should be before "ratelimit_count_help"
(#62) The string key "period_day" is not in the correct order, it should be before "period_hour"
(#66) The string key "ratelimitreached_day" is not in the correct order, it should be before "ratelimitreached_hour"
(#68) Unexpected comment found. Auto-fixing will not work after this comment
(#68) Inline comments must end in full-stops, exclamation marks, or question marks
(#69) The string key "advancedsettings" is not in the correct order, it should be before "ratelimitreached_day"
(#72) The string key "maxmessages" is not in the correct order, it should be before "modelselection_help"
(#77) Unexpected comment found. Auto-fixing will not work after this comment
(#77) Inline comments must end in full-stops, exclamation marks, or question marks
(#78) The string key "startchat" is not in the correct order, it should be before "temperature_help"
(#80) The string key "send" is not in the correct order, it should be before "typemessage"
(#81) The string key "clear" is not in the correct order, it should be before "send"
(#84) The string key "missingidandcmid" is not in the correct order, it should be before "thinking"
(#85) Unexpected comment found. Auto-fixing will not work after this comment
(#85) Inline comments must end in full-stops, exclamation marks, or question marks
(#88) The string key "privacy:metadata:moochat_usage:messagecount" is not in the correct order, it should be before "privacy:metadata:moochat_usage:userid"
(#89) The string key "privacy:metadata:moochat_usage:firstmessage" is not in the correct order, it should be before "privacy:metadata:moochat_usage:messagecount"
(#91) Unexpected comment found. Auto-fixing will not work after this comment
(#91) Inline comments must end in full-stops, exclamation marks, or question marks
(#94) The string key "ratelimitreached_title" is not in the correct order, it should be before "thinking_js"
(#95) The string key "error_title" is not in the correct order, it should be before "ratelimitreached_title"
(#96) The string key "connectionerror" is not in the correct order, it should be before "error_title"
(#97) The string key "chatcleared" is not in the correct order, it should be before "connectionerror"
public/mod/moochat/lib.php
(#8) Comment does not contain full Moodle boilerplate
(#17) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#24) Whitespace found at end of line
(#27) Whitespace found at end of line
(#29) Whitespace found at end of line
(#38) Whitespace found at end of line
(#41) Whitespace found at end of line
(#50) Whitespace found at end of line
(#51) Short array syntax must be used to define arrays
(#54) Whitespace found at end of line
(#55) Inline comments must end in full-stops, exclamation marks, or question marks
(#56) Short array syntax must be used to define arrays
(#57) Whitespace found at end of line
(#58) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) Short array syntax must be used to define arrays
(#60) Whitespace found at end of line
(#68) Expected 1 space after SWITCH keyword; 0 found
(#75) Spaces must be used to indent lines; tabs are not allowed
(#75) Inline comments must start with a capital letter, digit or 3-dots sequence
(#75) Line indented incorrectly; expected at least 8 spaces, found 4
(#75) No space found before comment text; expected "// case FEATURE_MOD_ARCHETYPE:" but found "//case FEATURE_MOD_ARCHETYPE:"
(#76) Inline comments must end in full-stops, exclamation marks, or question marks
(#76) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#85) Short array syntax must be used to define arrays
(#86) Whitespace found at end of line
(#90) Whitespace found at end of line
(#94) Whitespace found at end of line
(#96) Whitespace found at end of line
(#100) Whitespace found at end of line
(#102) Whitespace found at end of line
(#106) Whitespace found at end of line
(#114) Whitespace found at end of line
(#115) Short array syntax must be used to define arrays
(#116) Whitespace found at end of line
(#119) Whitespace found at end of line
(#121) Inline comments must end in full-stops, exclamation marks, or question marks
(#123) Whitespace found at end of line
(#124) Inline comments must end in full-stops, exclamation marks, or question marks
(#139) Whitespace found at end of line
(#140) Inline comments must end in full-stops, exclamation marks, or question marks
(#144) Whitespace found at end of line
(#147) Whitespace found at end of line
(#155) Whitespace found at end of line
(#156) Short array syntax must be used to define arrays
(#157) Whitespace found at end of line
(#159) Inline comments must end in full-stops, exclamation marks, or question marks
(#160) Short array syntax must be used to define arrays
(#168) Whitespace found at end of line
(#170) Whitespace found at end of line
(#171) Inline comments must end in full-stops, exclamation marks, or question marks
(#174) Whitespace found at end of line
(#178) Whitespace found at end of line
(#180) Whitespace found at end of line
(#183) Whitespace found at end of line
(#184) Inline comments must end in full-stops, exclamation marks, or question marks
(#188) Whitespace found at end of line
(#190) Whitespace found at end of line
(#191) Inline comments must end in full-stops, exclamation marks, or question marks
(#194) Short array syntax must be used to define arrays
(#198) Whitespace found at end of line
(#200) Short array syntax must be used to define arrays
(#201) Short array syntax must be used to define arrays
(#208) Whitespace found at end of line
(#210) Short array syntax must be used to define arrays
(#214) Whitespace found at end of line
(#216) Short array syntax must be used to define arrays
(#220) Whitespace found at end of line
(#222) Short array syntax must be used to define arrays
(#229) Whitespace found at end of line
(#231) Short array syntax must be used to define arrays
(#232) Short array syntax must be used to define arrays
(#241) Whitespace found at end of line
(#243) Whitespace found at end of line
public/mod/moochat/mod_form.php
(#8) Comment does not contain full Moodle boilerplate
(#19) Expected at least 1 space before "."; 0 found
(#19) Expected at least 1 space after "."; 0 found
(#21) Missing docblock for class mod_moochat_mod_form
(#21) Opening brace must not be followed by a blank line
(#23) Missing docblock for function definition
(#23) Visibility must be declared on method "definition"
(#25) Whitespace found at end of line
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
(#31) Inline comments must end in full-stops, exclamation marks, or question marks
(#32) Short array syntax must be used to define arrays
(#40) Whitespace found at end of line
(#41) Inline comments must end in full-stops, exclamation marks, or question marks
(#44) Spaces must be used to indent lines; tabs are not allowed
(#44) Inline comments must end in full-stops, exclamation marks, or question marks
(#44) Line indented incorrectly; expected at least 8 spaces, found 4
(#45) Short array syntax must be used to define arrays
(#54) Inline comments must end in full-stops, exclamation marks, or question marks
(#55) Short array syntax must be used to define arrays
(#63) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#64) Whitespace found at end of line
(#65) Spaces must be used to indent lines; tabs are not allowed
(#65) Inline comments must end in full-stops, exclamation marks, or question marks
(#65) Line indented incorrectly; expected at least 8 spaces, found 4
(#66) Opening parenthesis of a multi-line function call must be the last content on the line
(#66) Only one argument is allowed per line in a multi-line function call
(#66) Whitespace found at end of line
(#67) Multi-line function call not indented correctly; expected 8 spaces but found 26
(#67) Closing parenthesis of a multi-line function call must be on a line by itself
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#72) Opening parenthesis of a multi-line function call must be the last content on the line
(#72) Only one argument is allowed per line in a multi-line function call
(#72) Whitespace found at end of line
(#73) Multi-line function call not indented correctly; expected 8 spaces but found 26
(#73) Closing parenthesis of a multi-line function call must be on a line by itself
(#77) Inline comments must end in full-stops, exclamation marks, or question marks
(#78) Opening parenthesis of a multi-line function call must be the last content on the line
(#78) Only one argument is allowed per line in a multi-line function call
(#78) Whitespace found at end of line
(#79) Multi-line function call not indented correctly; expected 12 spaces but found 26
(#80) Multi-line function call not indented correctly; expected 12 spaces but found 26
(#81) Multi-line function call not indented correctly; expected 12 spaces but found 26
(#81) Short array syntax must be used to define arrays
(#81) Whitespace found at end of line
(#82) Multi-line function call not indented correctly; expected 8 spaces but found 32
(#82) Short array syntax must be used to define arrays
(#82) Closing parenthesis of a multi-line function call must be on a line by itself
(#84) Whitespace found at end of line
(#85) Inline comments must end in full-stops, exclamation marks, or question marks
(#86) Short array syntax must be used to define arrays
(#92) Opening parenthesis of a multi-line function call must be the last content on the line
(#92) Only one argument is allowed per line in a multi-line function call
(#92) Whitespace found at end of line
(#93) Multi-line function call not indented correctly; expected 12 spaces but found 26
(#93) Whitespace found at end of line
(#94) Multi-line function call not indented correctly; expected 8 spaces but found 26
(#94) Closing parenthesis of a multi-line function call must be on a line by itself
(#98) Inline comments must end in full-stops, exclamation marks, or question marks
(#99) Opening parenthesis of a multi-line function call must be the last content on the line
(#99) Only one argument is allowed per line in a multi-line function call
(#99) Whitespace found at end of line
(#100) Multi-line function call not indented correctly; expected 12 spaces but found 26
(#101) Multi-line function call not indented correctly; expected 8 spaces but found 26
(#101) Short array syntax must be used to define arrays
(#101) Closing parenthesis of a multi-line function call must be on a line by itself
(#106) Inline comments must end in full-stops, exclamation marks, or question marks
(#109) Inline comments must end in full-stops, exclamation marks, or question marks
(#110) Opening parenthesis of a multi-line function call must be the last content on the line
(#110) Only one argument is allowed per line in a multi-line function call
(#110) Whitespace found at end of line
(#111) Multi-line function call not indented correctly; expected 8 spaces but found 26
(#111) Closing parenthesis of a multi-line function call must be on a line by itself
(#115) Inline comments must end in full-stops, exclamation marks, or question marks
(#116) Short array syntax must be used to define arrays
(#120) Opening parenthesis of a multi-line function call must be the last content on the line
(#120) Only one argument is allowed per line in a multi-line function call
(#120) Whitespace found at end of line
(#121) Multi-line function call not indented correctly; expected 12 spaces but found 26
(#121) Whitespace found at end of line
(#122) Multi-line function call not indented correctly; expected 8 spaces but found 26
(#122) Closing parenthesis of a multi-line function call must be on a line by itself
(#127) Inline comments must end in full-stops, exclamation marks, or question marks
(#128) Opening parenthesis of a multi-line function call must be the last content on the line
(#128) Only one argument is allowed per line in a multi-line function call
(#128) Whitespace found at end of line
(#129) Multi-line function call not indented correctly; expected 8 spaces but found 26
(#129) Closing parenthesis of a multi-line function call must be on a line by itself
(#135) Inline comments must end in full-stops, exclamation marks, or question marks
(#139) Inline comments must end in full-stops, exclamation marks, or question marks
(#140) Opening parenthesis of a multi-line function call must be the last content on the line
(#140) Only one argument is allowed per line in a multi-line function call
(#140) Whitespace found at end of line
(#141) Multi-line function call not indented correctly; expected 8 spaces but found 26
(#141) Closing parenthesis of a multi-line function call must be on a line by itself
(#146) Inline comments must end in full-stops, exclamation marks, or question marks
(#147) Short array syntax must be used to define arrays
(#154) Opening parenthesis of a multi-line function call must be the last content on the line
(#154) Only one argument is allowed per line in a multi-line function call
(#154) Whitespace found at end of line
(#155) Multi-line function call not indented correctly; expected 12 spaces but found 26
(#155) Whitespace found at end of line
(#156) Multi-line function call not indented correctly; expected 8 spaces but found 26
(#156) Closing parenthesis of a multi-line function call must be on a line by itself
(#160) This comment is 63% valid code; is this commented out code?
(#167) Whitespace found at end of line
(#168) Whitespace found at end of line
(#173) Inline comments must end in full-stops, exclamation marks, or question marks
(#176) Inline comments must end in full-stops, exclamation marks, or question marks
(#179) Whitespace found at end of line
(#180) Missing docblock for function data_preprocessing
(#180) Visibility must be declared on method "data_preprocessing"
(#180) Variable "default_values" must not contain underscores.
(#181) Variable "default_values" must not contain underscores.
(#182) Whitespace found at end of line
(#183) Inline comments must end in full-stops, exclamation marks, or question marks
(#186) Opening parenthesis of a multi-line function call must be the last content on the line
(#186) Only one argument is allowed per line in a multi-line function call
(#186) Only one argument is allowed per line in a multi-line function call
(#186) Whitespace found at end of line
(#187) Multi-line function call not indented correctly; expected 12 spaces but found 36
(#187) Only one argument is allowed per line in a multi-line function call
(#187) Only one argument is allowed per line in a multi-line function call
(#187) Short array syntax must be used to define arrays
(#187) Closing parenthesis of a multi-line function call must be on a line by itself
(#188) Variable "default_values" must not contain underscores.
(#191) Whitespace found at end of line
(#192) Missing docblock for function data_postprocessing
(#192) Visibility must be declared on method "data_postprocessing"
(#194) Whitespace found at end of line
(#195) Inline comments must end in full-stops, exclamation marks, or question marks
(#198) Opening parenthesis of a multi-line function call must be the last content on the line
(#198) Only one argument is allowed per line in a multi-line function call
(#198) Only one argument is allowed per line in a multi-line function call
(#198) Whitespace found at end of line
(#199) Multi-line function call not indented correctly; expected 12 spaces but found 38
(#199) Only one argument is allowed per line in a multi-line function call
(#199) Only one argument is allowed per line in a multi-line function call
(#199) Short array syntax must be used to define arrays
(#199) Closing parenthesis of a multi-line function call must be on a line by itself
public/mod/moochat/version.php
(#8) Comment does not contain full Moodle boilerplate
(#17) Inline comments must end in full-stops, exclamation marks, or question marks
(#18) Inline comments must end in full-stops, exclamation marks, or question marks
public/mod/moochat/view.php
(#8) Comment does not contain full Moodle boilerplate
(#18) Expected at least 1 space before "."; 0 found
(#18) Expected at least 1 space after "."; 0 found
(#20) Inline comments must end in full-stops, exclamation marks, or question marks
(#24) Short array syntax must be used to define arrays
(#25) Short array syntax must be used to define arrays
(#35) Inline comments must end in full-stops, exclamation marks, or question marks
(#36) Short array syntax must be used to define arrays
(#44) Inline comments must end in full-stops, exclamation marks, or question marks
(#45) Short array syntax must be used to define arrays
(#50) Inline comments must end in full-stops, exclamation marks, or question marks
(#51) Short array syntax must be used to define arrays
(#53) Inline comments must end in full-stops, exclamation marks, or question marks
(#56) This comment is 46% valid code; is this commented out code?
(#57) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) No space found before comment text; expected "// echo $OUTPUT->heading(format_string($moochat->name));" but found "//echo $OUTPUT->heading(format_string($moochat->name));"
(#59) This comment is 66% valid code; is this commented out code?
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
(#79) Inline comments must end in full-stops, exclamation marks, or question marks
(#82) Inline comments must end in full-stops, exclamation marks, or question marks
(#86) Short array syntax must be used to define arrays
(#91) Inline comments must end in full-stops, exclamation marks, or question marks
(#94) Inline comments must end in full-stops, exclamation marks, or question marks
(#96) Inline comments must end in full-stops, exclamation marks, or question marks
(#101) Inline comments must end in full-stops, exclamation marks, or question marks
(#106) Inline comments must end in full-stops, exclamation marks, or question marks
(#108) Whitespace found at end of line
(#111) Inline comments must end in full-stops, exclamation marks, or question marks
(#113) Whitespace found at end of line
(#115) Whitespace found at end of line
(#117) Inline comments must end in full-stops, exclamation marks, or question marks
(#119) Inline comments must end in full-stops, exclamation marks, or question marks
(#121) Inline comments must end in full-stops, exclamation marks, or question marks
(#122) Inline comments must end in full-stops, exclamation marks, or question marks
(#124) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(0 errors, 2 warnings)

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

public/mod/moochat/amd/src/chat.js
(#132) Each then() should return a value or throw (promise/always-return)
(#225) Unexpected confirm. (no-alert)

CSS problems

(15 errors, 0 warnings)

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

public/mod/moochat/styles.css
(#27) Expected single space after "," in a single-line function (function-comma-space-after)
(#27) Expected single space after "," in a single-line function (function-comma-space-after)
(#27) Expected single space after "," in a single-line function (function-comma-space-after)
(#211) Unexpected whitespace at end of line (no-eol-whitespace)
(#216) Unexpected whitespace at end of line (no-eol-whitespace)
(#182) Expected newline after "," (selector-list-comma-newline-after)
(#218) Expected indentation of 8 spaces (indentation)
(#219) Expected indentation of 8 spaces (indentation)
(#220) Expected indentation of 8 spaces (indentation)
(#221) Expected indentation of 8 spaces (indentation)
(#222) Expected indentation of 8 spaces (indentation)
(#223) Expected indentation of 8 spaces (indentation)
(#224) Expected indentation of 8 spaces (indentation)
(#225) Expected indentation of 8 spaces (indentation)
(#226) Expected indentation of 8 spaces (indentation)

PHPDocs style problems

(13 errors, 0 warnings)

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

public/mod/moochat/backup/moodle2/restore_moochat_activity_task.class.php
(#66) Inline phpdocs tag {@link restore_logs_processor} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#68) Inline phpdocs tag {@link restore_log_rule} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#82) Inline phpdocs tag {@link restore_logs_processor} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#84) Inline phpdocs tag {@link restore_log_rule} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
public/mod/moochat/backup/moodle2/restore_moochat_stepslib.php
(#24) Inline phpdocs tag {@link restore_path_element} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
public/mod/moochat/lib.php
(#19) Phpdocs for function moochat_add_instance has incomplete parameters list
(#33) Phpdocs for function moochat_update_instance has incomplete parameters list
(#45) Phpdocs for function moochat_delete_instance has incomplete parameters list
(#64) Phpdocs for function moochat_supports has incomplete parameters list
(#82) Phpdocs for function mod_moochat_pluginfile has incomplete parameters list
(#109) Phpdocs for function moochat_get_coursemodule_info has incomplete parameters list
(#150) Phpdocs for function moochat_cm_info_view has incomplete parameters list
(#163) Phpdocs for function moochat_get_section_content has incomplete parameters list

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

(1 errors, 1 warnings)

This section shows files built by grunt and not commited [More info]

Problems running grunt
Task "stylelint:css" failed. Use --force to continue.

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]


Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]