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

(342 errors, 141 warnings)

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

mod/custommailing/backup/moodle2/backup_custommailing_activity_task.class.php
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#26) Inline comments must end in full-stops, exclamation marks, or question marks
(#27) Line exceeds 132 characters; contains 135 characters
(#27) Inline comments must end in full-stops, exclamation marks, or question marks
(#34) Opening brace should be on the same line as the declaration for class backup_custommailing_activity_task
(#40) Opening brace should be on the same line as the declaration
(#41) Inline comments must end in full-stops, exclamation marks, or question marks
(#48) Opening brace should be on the same line as the declaration
(#56) The static declaration must come after the visibility declaration
(#57) Opening brace should be on the same line as the declaration
(#60) Commas (,) must be followed by white space.
(#62) Inline comments must end in full-stops, exclamation marks, or question marks
(#63) Expected 1 space before "="; 0 found
(#63) Expected 1 space after "="; 0 found
(#64) Expected 1 space before "="; 0 found
(#66) Inline comments must end in full-stops, exclamation marks, or question marks
(#67) Expected 1 space before "="; 0 found
(#67) Expected 1 space after "="; 0 found
(#68) Expected 1 space before "="; 0 found
mod/custommailing/backup/moodle2/backup_custommailing_settingslib.php
(#28) Inline comments must end in full-stops, exclamation marks, or question marks
(#28) File must end with a newline character
mod/custommailing/backup/moodle2/backup_custommailing_stepslib.php
(#31) Missing docblock for function define_structure
(#33) Inline comments must end in full-stops, exclamation marks, or question marks
(#36) Inline comments must end in full-stops, exclamation marks, or question marks
(#37) Expected 1 space before "="; 0 found
(#37) Short array syntax must be used to define arrays
(#37) Short array syntax must be used to define arrays
(#40) Variable "custommailing_mailings" must not contain underscores.
(#42) Variable "custommailing_mailing" must not contain underscores.
(#42) Short array syntax must be used to define arrays
(#42) Short array syntax must be used to define arrays
(#45) Commas (,) must be followed by white space.
(#45) Commas (,) must be followed by white space.
(#48) Variable "custommailing_logs" must not contain underscores.
(#50) Variable "custommailing_log" must not contain underscores.
(#50) Short array syntax must be used to define arrays
(#50) Short array syntax must be used to define arrays
(#51) Commas (,) must be followed by white space.
(#53) Inline comments must end in full-stops, exclamation marks, or question marks
(#54) Variable "custommailing_mailings" must not contain underscores.
(#55) Variable "custommailing_mailings" must not contain underscores.
(#55) Variable "custommailing_mailing" must not contain underscores.
(#57) Variable "custommailing_logs" must not contain underscores.
(#58) Variable "custommailing_logs" must not contain underscores.
(#58) Variable "custommailing_log" must not contain underscores.
(#59) Inline comments must end in full-stops, exclamation marks, or question marks
(#60) Short array syntax must be used to define arrays
(#62) Variable "custommailing_mailing" must not contain underscores.
(#66) Short array syntax must be used to define arrays
(#68) Inline comments must end in full-stops, exclamation marks, or question marks
(#70) Variable "custommailing_log" must not contain underscores.
(#70) Short array syntax must be used to define arrays
(#72) Inline comments must end in full-stops, exclamation marks, or question marks
(#73) Variable "custommailing_log" must not contain underscores.
(#73) Commas (,) must be followed by white space.
(#75) Inline comments must end in full-stops, exclamation marks, or question marks
(#77) Inline comments must end in full-stops, exclamation marks, or question marks
(#80) File must end with a newline character
mod/custommailing/classes/Mailing.php
(#35) "require_once" must be immediately followed by an open parenthesis
(#65) No one-line description found in phpdocs for docblock of function create
(#77) No one-line description found in phpdocs for docblock of function get
(#81) Must use "self::" for local static member reference
(#82) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#92) No one-line description found in phpdocs for docblock of function getWithCourse
(#92) Public method name "Mailing::getWithCourse" must be in lower-case letters only
(#100) Must use "self::" for local static member reference
(#111) No one-line description found in phpdocs for docblock of function getAll
(#111) Public method name "Mailing::getAll" must be in lower-case letters only
(#111) Variable "custommailing_id" must not contain underscores.
(#115) Variable "custommailing_id" must not contain underscores.
(#117) Must use "self::" for local static member reference
(#130) No one-line description found in phpdocs for docblock of function update
(#142) No one-line description found in phpdocs for docblock of function delete
(#153) No one-line description found in phpdocs for docblock of function deleteAll
(#153) Public method name "Mailing::deleteAll" must be in lower-case letters only
(#153) Variable "custommailing_id" must not contain underscores.
(#154) Must use "self::" for local static member reference
(#154) Variable "custommailing_id" must not contain underscores.
(#155) Must use "self::" for local static member reference
(#163) No one-line description found in phpdocs for docblock of function getAllToSend
(#163) Public method name "Mailing::getAllToSend" must be in lower-case letters only
(#173) Must use "self::" for local static member reference
(#185) No one-line description found in phpdocs for docblock of function format
mod/custommailing/classes/MailingLog.php
(#36) "require_once" must be immediately followed by an open parenthesis
(#43) Opening brace should be on the same line as the declaration for class MailingLog
(#49) No one-line description found in phpdocs for docblock of function create
(#62) No one-line description found in phpdocs for docblock of function getAll
(#62) Public method name "MailingLog::getAll" must be in lower-case letters only
(#68) Must use "self::" for local static member reference
(#81) No one-line description found in phpdocs for docblock of function getAllForTable
(#81) Public method name "MailingLog::getAllForTable" must be in lower-case letters only
(#84) Variable "user_name_fields_raw" must not contain underscores.
(#85) Variable "user_name_fields_raw" must not contain underscores.
(#88) Variable "user_name_fields" must not contain underscores.
(#88) Variable "user_name_fields_raw" must not contain underscores.
(#90) Line exceeds 132 characters; contains 136 characters
(#90) Variable "user_name_fields" must not contain underscores.
(#90) Whitespace found at end of line within string
(#103) Commas (,) must be followed by white space.
(#103) Commas (,) must be followed by white space.
(#106) Expected "} else {\n"; found "}\n else {\n"
(#123) No one-line description found in phpdocs for docblock of function update
(#135) No one-line description found in phpdocs for docblock of function deleteByUser
(#135) Public method name "MailingLog::deleteByUser" must be in lower-case letters only
(#145) No one-line description found in phpdocs for docblock of function format
mod/custommailing/classes/event/course_module_instance_list_viewed.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#41) Possible useless method overriding detected
(#41) No one-line description found in phpdocs for docblock of function init
mod/custommailing/classes/event/course_module_viewed.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#39) No one-line description found in phpdocs for docblock of function init
mod/custommailing/classes/privacy/provider.php
(#40) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#52) Opening brace should be on the same line as the declaration for class provider
(#58) No one-line description found in phpdocs for docblock of function get_metadata
(#58) There must not be a space before the colon in a return type declaration
(#66) There should be a comma after the last array item in a multi-line array.
(#80) There must not be a space before the colon in a return type declaration
(#93) There should be a comma after the last array item in a multi-line array.
(#197) Line indented incorrectly; expected at least 8 spaces, found 7
(#204) Whitespace found at end of line within string
(#221) There should be a comma after the last array item in a multi-line array.
mod/custommailing/classes/task/cron_task.php
(#20) Incorrect @package tag for file cron_task.php. Expected mod_custommailing, found mod_reengagement.
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/custommailing/db/access.php
(#37) There should be a comma after the last array item in a multi-line array.
(#39) There should be a comma after the last array item in a multi-line array.
(#48) There should be a comma after the last array item in a multi-line array.
mod/custommailing/db/tasks.php
(#28) Short array syntax must be used to define arrays
(#29) Short array syntax must be used to define arrays
(#36) There should be a comma after the last array item in a multi-line array.
mod/custommailing/db/upgrade.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#38) No one-line description found in phpdocs for docblock of function xmldb_custommailing_upgrade
mod/custommailing/delete.php
(#29) "require_once" must be immediately followed by an open parenthesis
(#33) "require_once" must be immediately followed by an open parenthesis
(#36) Variable "mailing_id" must not contain underscores.
(#43) Variable "mailing_id" must not contain underscores.
(#48) Variable "mailing_id" must not contain underscores.
(#49) Variable "return_url" must not contain underscores.
(#56) Variable "mailing_id" must not contain underscores.
(#57) Variable "mailing_id" must not contain underscores.
(#58) Variable "return_url" must not contain underscores.
(#67) Variable "mailing_id" must not contain underscores.
(#71) Variable "return_url" must not contain underscores.
mod/custommailing/index.php
(#28) "require_once" must be immediately followed by an open parenthesis
(#32) "require_once" must be immediately followed by an open parenthesis
(#38) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#41) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#52) There should be a comma after the last array item in a multi-line array.
(#96) There should be a comma after the last array item in a multi-line array.
mod/custommailing/lang/en/custommailing.php
(#28) The string key "andtargetactivitynotcompleted" is not in the correct order, it should be before "pluginname"
(#68) The string key "mailinggroups" is not in the correct order, it should be before "mailingname"
(#70) The string key "mailinggroups_help" is not in the correct order, it should be before "mailingmailingcohorts"
(#71) The string key "mailingcohorts" is not in the correct order, it should be before "mailinggroups_help"
(#73) The string key "groupcohortscombination" is not in the correct order, it should be before "mailingcohorts_help"
(#76) The string key "usermemberofselectedgroupsandselectedcohorts" is not in the correct order, it should be before "usermemberofselectedgroupsorselectedcohorts"
(#77) The string key "mailingsubject" is not in the correct order, it should be before "usermemberofselectedgroupsandselectedcohorts"
(#98) The string key "privacy:metadata" is not in the correct order, it should be before "updatemailing"
(#102) The string key "privacy:metadata:emailstatus" is not in the correct order, it should be before "privacy:metadata:emailtouserid"
mod/custommailing/lang/fr/custommailing.php
(#28) The string key "andtargetactivitynotcompleted" is not in the correct order, it should be before "pluginname"
(#68) The string key "mailinggroups" is not in the correct order, it should be before "mailingname"
(#70) The string key "mailingcohorts" is not in the correct order, it should be before "mailinggroups_help"
(#72) The string key "groupcohortscombination" is not in the correct order, it should be before "mailingcohorts_help"
(#75) The string key "usermemberofselectedgroupsandselectedcohorts" is not in the correct order, it should be before "usermemberofselectedgroupsorselectedcohorts"
(#76) The string key "mailingsubject" is not in the correct order, it should be before "usermemberofselectedgroupsandselectedcohorts"
(#87) The string key "select" is not in the correct order, it should be before "sendmailing"
(#97) The string key "privacy:metadata" is not in the correct order, it should be before "updatemailing"
(#101) The string key "privacy:metadata:emailstatus" is not in the correct order, it should be before "privacy:metadata:emailtouserid"
(#103) Unexpected string end, it should be a line feed after a semicolon
(#103) File must end with a newline character
mod/custommailing/lib.php
(#58) No one-line description found in phpdocs for docblock of function custommailing_add_instance
(#64) Inline comments must end in full-stops, exclamation marks, or question marks
(#68) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#92) No one-line description found in phpdocs for docblock of function custommailing_update_instance
(#106) No one-line description found in phpdocs for docblock of function custommailing_delete_instance
(#129) No one-line description found in phpdocs for docblock of function custommailing_supports
(#175) No one-line description found in phpdocs for docblock of function custommailing_get_activities
(#177) Variable "course_module_context" must not contain underscores.
(#181) Variable "course_module_context" must not contain underscores.
(#196) No one-line description found in phpdocs for docblock of function custommailing_getcustomcertsfromcourse
(#197) Opening brace should be on the same line as the declaration
(#214) No one-line description found in phpdocs for docblock of function custommailing_getCmFromCustomcertInstance
(#214) function name "custommailing_getCmFromCustomcertInstance" must be lower-case letters only
(#215) Opening brace should be on the same line as the declaration
(#232) No one-line description found in phpdocs for docblock of function custommailing_getCustomcert
(#232) function name "custommailing_getCustomcert" must be lower-case letters only
(#233) Opening brace should be on the same line as the declaration
(#244) No one-line description found in phpdocs for docblock of function custommailing_logs_generate
(#245) Opening brace should be on the same line as the declaration
(#250) "require_once" must be immediately followed by an open parenthesis
(#251) "require_once" must be immediately followed by an open parenthesis
(#255) Commas (,) must be followed by white space.
(#257) Expected "if (...) {\n"; found "if(...) {\n"
(#261) Expected "if (...) {\n"; found "if(...) {\n"
(#269) Line exceeds 132 characters; contains 171 characters
(#273) Variable "group_ok" must not contain underscores.
(#274) Variable "cohort_ok" must not contain underscores.
(#277) Variable "group_ok" must not contain underscores.
(#278) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#279) Expected "if (...) {\n"; found "if(...) {\n"
(#280) Variable "group_ok" must not contain underscores.
(#285) Variable "cohort_ok" must not contain underscores.
(#286) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#287) Expected "if (...) {\n"; found "if(...) {\n"
(#288) Variable "cohort_ok" must not contain underscores.
(#293) Variable "group_ok" must not contain underscores.
(#293) Variable "cohort_ok" must not contain underscores.
(#295) Variable "group_ok" must not contain underscores.
(#295) Variable "cohort_ok" must not contain underscores.
(#298) Expected "if (...) {\n"; found "if(...) {\n"
(#321) No one-line description found in phpdocs for docblock of function custommailing_getsql
(#322) Opening brace should be on the same line as the declaration
(#328) Variable "delay_range" must not contain underscores.
(#330) Variable "delay_range" must not contain underscores.
(#333) Inline comments must start with a capital letter, digit or 3-dots sequence
(#333) Inline comments must end in full-stops, exclamation marks, or question marks
(#336) Variable "sql_where" must not contain underscores.
(#338) Variable "sql_where" must not contain underscores.
(#341) Variable "sql_where" must not contain underscores.
(#343) Inline comments must start with a capital letter, digit or 3-dots sequence
(#343) Inline comments must end in full-stops, exclamation marks, or question marks
(#347) Line exceeds 132 characters; contains 165 characters
(#350) Usage of ELSEIF not allowed; use ELSE IF instead
(#351) Inline comments must start with a capital letter, digit or 3-dots sequence
(#351) Inline comments must end in full-stops, exclamation marks, or question marks
(#353) Variable "sql_retro" must not contain underscores.
(#353) Line exceeds 132 characters; contains 163 characters
(#358) Variable "sql_retro" must not contain underscores.
(#363) Whitespace found at end of line within string
(#364) Variable "sql_retro" must not contain underscores.
(#367) Usage of ELSEIF not allowed; use ELSE IF instead
(#373) Usage of ELSEIF not allowed; use ELSE IF instead
(#374) Inline comments must start with a capital letter, digit or 3-dots sequence
(#374) Inline comments must end in full-stops, exclamation marks, or question marks
(#376) Variable "sql_retro" must not contain underscores.
(#376) Line exceeds 132 characters; contains 163 characters
(#381) Variable "sql_retro" must not contain underscores.
(#385) Variable "interval_duration" must not contain underscores.
(#386) Variable "delay_range" must not contain underscores.
(#387) Variable "interval_duration" must not contain underscores.
(#389) Variable "interval_duration" must not contain underscores.
(#394) Whitespace found at end of line within string
(#395) Variable "sql_retro" must not contain underscores.
(#398) Usage of ELSEIF not allowed; use ELSE IF instead
(#399) Inline comments must start with a capital letter, digit or 3-dots sequence
(#399) Inline comments must end in full-stops, exclamation marks, or question marks
(#401) Variable "sql_retro" must not contain underscores.
(#404) Variable "sql_retro" must not contain underscores.
(#408) Variable "interval_duration" must not contain underscores.
(#409) Variable "delay_range" must not contain underscores.
(#410) Variable "interval_duration" must not contain underscores.
(#412) Variable "interval_duration" must not contain underscores.
(#417) Line exceeds 132 characters; contains 145 characters
(#418) Variable "sql_retro" must not contain underscores.
(#422) Usage of ELSEIF not allowed; use ELSE IF instead
(#422) Line exceeds 132 characters; contains 144 characters
(#423) Inline comments must start with a capital letter, digit or 3-dots sequence
(#423) Inline comments must end in full-stops, exclamation marks, or question marks
(#427) Variable "sql_where" must not contain underscores.
(#430) Variable "sql_where" must not contain underscores.
(#430) Line exceeds 132 characters; contains 165 characters
(#437) Variable "interval_duration" must not contain underscores.
(#438) Variable "delay_range" must not contain underscores.
(#439) Variable "interval_duration" must not contain underscores.
(#441) Variable "interval_duration" must not contain underscores.
(#443) Inline comments must end in full-stops, exclamation marks, or question marks
(#443) No space found before comment text; expected "// ToDo : other modules than scorm" but found "//ToDo : other modules than scorm"
(#448) Line exceeds maximum limit of 180 characters; contains 191 characters
(#448) Whitespace found at end of line within string
(#450) Variable "sql_where" must not contain underscores.
(#456) Line exceeds maximum limit of 180 characters; contains 196 characters
(#456) Whitespace found at end of line within string
(#458) Variable "sql_where" must not contain underscores.
(#465) Usage of ELSEIF not allowed; use ELSE IF instead
(#465) Line exceeds 132 characters; contains 143 characters
(#466) Inline comments must start with a capital letter, digit or 3-dots sequence
(#466) Inline comments must end in full-stops, exclamation marks, or question marks
(#468) Variable "join_retro" must not contain underscores.
(#469) Whitespace found at end of line within string
(#471) Variable "sql_where" must not contain underscores.
(#471) Line exceeds maximum limit of 180 characters; contains 181 characters
(#477) Variable "join_retro" must not contain underscores.
(#481) Variable "interval_duration" must not contain underscores.
(#482) Variable "delay_range" must not contain underscores.
(#483) Variable "interval_duration" must not contain underscores.
(#485) Variable "interval_duration" must not contain underscores.
(#487) Inline comments must end in full-stops, exclamation marks, or question marks
(#487) No space found before comment text; expected "// ToDo : other modules than scorm" but found "//ToDo : other modules than scorm"
(#490) Variable "join_retro" must not contain underscores.
(#491) Line exceeds maximum limit of 180 characters; contains 194 characters
(#491) Whitespace found at end of line within string
(#493) Variable "sql_where" must not contain underscores.
(#499) Usage of ELSEIF not allowed; use ELSE IF instead
(#501) Inline comments must start with a capital letter, digit or 3-dots sequence
(#501) Inline comments must end in full-stops, exclamation marks, or question marks
(#503) Variable "join_retro" must not contain underscores.
(#506) Variable "sql_where" must not contain underscores.
(#506) Line exceeds maximum limit of 180 characters; contains 187 characters
(#512) Variable "join_retro" must not contain underscores.
(#513) Variable "sql_where" must not contain underscores.
(#517) Variable "join_retro" must not contain underscores.
(#519) Variable "sql_where" must not contain underscores.
(#525) There should be a comma after the last array item in a multi-line array.
(#542) Variable "ids_to_update" must not contain underscores.
(#544) Line exceeds 132 characters; contains 133 characters
(#546) Whitespace found at end of line within string
(#559) Line exceeds maximum limit of 180 characters; contains 185 characters
(#560) Variable "ids_to_update" must not contain underscores.
(#565) Inline comments must end in full-stops, exclamation marks, or question marks
(#566) Variable "ids_to_update" must not contain underscores.
(#566) Variable "ids_to_update" must not contain underscores.
(#567) Variable "ids_to_update" must not contain underscores.
(#628) No one-line description found in phpdocs for docblock of function custommailing_certifications
(#629) Opening brace should be on the same line as the declaration
(#652) No one-line description found in phpdocs for docblock of function custommailing_certification
(#653) Opening brace should be on the same line as the declaration
(#656) Whitespace found at end of line within string
(#663) Inline comments must start with a capital letter, digit or 3-dots sequence
(#663) This comment is 62% valid code; is this commented out code?
(#663) Line indented incorrectly; expected at least 4 spaces, found 0
(#663) Expected 1 space before comment text but found 4; use block comment if you need indentation
mod/custommailing/logs.php
(#28) "require_once" must be immediately followed by an open parenthesis
(#32) "require_once" must be immediately followed by an open parenthesis
(#68) Variable "string_statuses" must not contain underscores.
(#74) Variable "string_unknown_status" must not contain underscores.
(#84) Variable "string_statuses" must not contain underscores.
(#85) Variable "string_statuses" must not contain underscores.
(#87) Expected "} else {\n"; found "}\n else {\n"
(#88) Variable "string_unknown_status" must not contain underscores.
(#94) Line exceeds 132 characters; contains 141 characters
mod/custommailing/mailing_form.php
(#29) "require_once" must be immediately followed by an open parenthesis
(#30) "require_once" must be immediately followed by an open parenthesis
(#31) "require_once" must be immediately followed by an open parenthesis
(#36) Opening brace should be on the same line as the declaration for class mailing_form
(#42) No one-line description found in phpdocs for docblock of function definition
(#43) Opening brace should be on the same line as the declaration
(#48) Variable "course_module_context" must not contain underscores.
(#49) Variable "custom_cert" must not contain underscores.
(#79) Variable "custom_cert" must not contain underscores.
(#93) Inline comments must end in full-stops, exclamation marks, or question marks
(#96) Variable "course_module_context" must not contain underscores.
(#99) Inline comments must end in full-stops, exclamation marks, or question marks
(#105) Inline comments must end in full-stops, exclamation marks, or question marks
(#110) This comment is 58% valid code; is this commented out code?
(#111) Line exceeds 132 characters; contains 152 characters
(#111) Line indented incorrectly; expected at least 8 spaces, found 0
(#111) Expected 1 space before comment text but found 8; use block comment if you need indentation
(#112) Line indented incorrectly; expected at least 8 spaces, found 0
(#112) Expected 1 space before comment text but found 8; use block comment if you need indentation
(#113) Inline comments must end in full-stops, exclamation marks, or question marks
(#113) Line indented incorrectly; expected at least 8 spaces, found 0
(#113) Expected 1 space before comment text but found 8; use block comment if you need indentation
(#115) 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
(#127) Inline comments must end in full-stops, exclamation marks, or question marks
(#129) Line exceeds 132 characters; contains 154 characters
(#138) Inline comments must end in full-stops, exclamation marks, or question marks
(#139) Variable "mailing_mode_module" must not contain underscores.
(#141) Variable "mailing_mode_module" must not contain underscores.
(#142) Variable "mailing_mode_module" must not contain underscores.
(#143) Variable "mailing_mode_module" must not contain underscores.
(#149) Variable "mailing_mode_module" must not contain underscores.
(#149) Line exceeds 132 characters; contains 159 characters
(#150) Variable "mailing_mode_module" must not contain underscores.
(#150) Line exceeds 132 characters; contains 133 characters
(#164) Variable "mailing_mode" must not contain underscores.
(#165) Variable "mailing_mode" must not contain underscores.
(#166) Variable "mailing_mode" must not contain underscores.
(#172) Variable "mailing_mode" must not contain underscores.
(#173) Line exceeds 132 characters; contains 134 characters
(#189) Inline comments must end in full-stops, exclamation marks, or question marks
(#198) Inline comments must end in full-stops, exclamation marks, or question marks
(#199) Expected "if (...) {\n"; found "if(...) {\n"
(#200) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#201) Variable "course_module_context" must not contain underscores.
(#204) Expected "if (...) {\n"; found "if(...) {\n"
(#205) Line exceeds 132 characters; contains 138 characters
(#213) Variable "cohorts_name_by_ids" must not contain underscores.
(#215) Variable "cohorts_name_by_ids" must not contain underscores.
(#218) Variable "cohorts_name_by_ids" must not contain underscores.
(#218) Line exceeds 132 characters; contains 149 characters
(#220) Inline comments must start with a capital letter, digit or 3-dots sequence
(#220) This comment is 59% valid code; is this commented out code?
(#220) Line indented incorrectly; expected at least 8 spaces, found 0
(#220) Expected 1 space before comment text but found 8; use block comment if you need indentation
(#228) Line exceeds 132 characters; contains 134 characters
(#230) Inline comments must end in full-stops, exclamation marks, or question marks
(#235) Inline comments must end in full-stops, exclamation marks, or question marks
(#236) Line exceeds 132 characters; contains 146 characters
(#241) This comment is 64% valid code; is this commented out code?
(#241) No space found before comment text; expected "// Todo v2 : starttime" but found "//Todo v2 : starttime"
(#242) Line indented incorrectly; expected at least 8 spaces, found 0
(#242) Expected 1 space before comment text but found 8; use block comment if you need indentation
(#243) Line indented incorrectly; expected at least 8 spaces, found 0
(#243) Expected 1 space before comment text but found 8; use block comment if you need indentation
(#244) Line indented incorrectly; expected at least 8 spaces, found 0
(#244) Expected 1 space before comment text but found 8; use block comment if you need indentation
(#245) Line indented incorrectly; expected at least 8 spaces, found 0
(#245) Expected 1 space before comment text but found 8; use block comment if you need indentation
(#246) Line indented incorrectly; expected at least 8 spaces, found 0
(#246) Expected 1 space before comment text but found 8; use block comment if you need indentation
(#247) Inline comments must end in full-stops, exclamation marks, or question marks
(#247) Line indented incorrectly; expected at least 8 spaces, found 0
(#247) Expected 1 space before comment text but found 8; use block comment if you need indentation
(#249) Inline comments must end in full-stops, exclamation marks, or question marks
(#270) No one-line description found in phpdocs for docblock of function validation
(#271) Opening brace should be on the same line as the declaration
mod/custommailing/mod_form.php
(#28) "require_once" must be immediately followed by an open parenthesis
(#43) No one-line description found in phpdocs for docblock of function definition
(#57) Line exceeds maximum limit of 180 characters; contains 185 characters
(#73) No one-line description found in phpdocs for docblock of function set_data
(#73) Variable "default_values" must not contain underscores.
(#74) Variable "default_values" must not contain underscores.
(#74) Inline comments must end in full-stops, exclamation marks, or question marks
(#75) Variable "default_values" must not contain underscores.
mod/custommailing/upsert.php
(#29) "require_once" must be immediately followed by an open parenthesis
(#33) "require_once" must be immediately followed by an open parenthesis
(#34) "require_once" must be immediately followed by an open parenthesis
(#35) "require_once" must be immediately followed by an open parenthesis
(#38) Variable "mailing_id" must not contain underscores.
(#51) Variable "mailing_id" must not contain underscores.
(#53) Variable "mailing_id" must not contain underscores.
(#65) Usage of ELSEIF not allowed; use ELSE IF instead
(#72) Inline comments must start with a capital letter, digit or 3-dots sequence
(#72) Inline comments must end in full-stops, exclamation marks, or question marks
(#72) No space found before comment text; expected "// disabled in v1" but found "//disabled in v1"
(#89) Usage of ELSEIF not allowed; use ELSE IF instead
(#100) Inline comments must start with a capital letter, digit or 3-dots sequence
(#100) No space found before comment text; expected "// $data->starttimehour * 3600 + $data->starttimeminute * 60;" but found "//$data->starttimehour * 3600 + $data->starttimeminute * 60;"
(#109) Line exceeds 132 characters; contains 168 characters
(#112) Line exceeds 132 characters; contains 170 characters
(#124) There should be a comma after the last array item in a multi-line array.
(#127) Inline comments must end in full-stops, exclamation marks, or question marks
(#127) No space found before comment text; expected "// Todo v2 : starttime" but found "//Todo v2 : starttime"
(#128) Inline comments must start with a capital letter, digit or 3-dots sequence
(#128) Inline comments must end in full-stops, exclamation marks, or question marks
(#128) This comment is 50% valid code; is this commented out code?
(#128) No space found before comment text; expected "// floor($data->starttime / 3600);" but found "//floor($data->starttime / 3600);"
(#129) Inline comments must start with a capital letter, digit or 3-dots sequence
(#129) Inline comments must end in full-stops, exclamation marks, or question marks
(#129) This comment is 47% valid code; is this commented out code?
(#129) No space found before comment text; expected "// floor(($data->starttime / 60) % 60);" but found "//floor(($data->starttime / 60) % 60);"
(#130) Line exceeds maximum limit of 180 characters; contains 223 characters
(#136) Usage of ELSEIF not allowed; use ELSE IF instead
mod/custommailing/version.php
(#29) Inline comments must end in full-stops, exclamation marks, or question marks
mod/custommailing/view.php
(#28) "require_once" must be immediately followed by an open parenthesis
(#32) "require_once" must be immediately followed by an open parenthesis
(#33) "require_once" must be immediately followed by an open parenthesis
(#34) "require_once" must be immediately followed by an open parenthesis
(#59) Line exceeds maximum limit of 180 characters; contains 190 characters
(#66) Usage of ELSEIF not allowed; use ELSE IF instead
(#68) Usage of ELSEIF not allowed; use ELSE IF instead
(#70) Usage of ELSEIF not allowed; use ELSE IF instead
(#71) Line exceeds 132 characters; contains 170 characters
(#72) Usage of ELSEIF not allowed; use ELSE IF instead
(#73) Line exceeds 132 characters; contains 171 characters
(#74) Usage of ELSEIF not allowed; use ELSE IF instead
(#75) Line exceeds 132 characters; contains 166 characters
(#76) Usage of ELSEIF not allowed; use ELSE IF instead
(#77) Line exceeds 132 characters; contains 165 characters
(#80) Variable "groups_html" must not contain underscores.
(#81) Expected "if (...) {\n"; found "if(...) {\n"
(#83) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#84) Variable "group_name" must not contain underscores.
(#85) Expected "if (...) {\n"; found "if(...) {\n"
(#85) Variable "group_name" must not contain underscores.
(#86) Variable "groups_html" must not contain underscores.
(#86) Variable "group_name" must not contain underscores.
(#95) Line exceeds 132 characters; contains 170 characters
(#98) Line exceeds 132 characters; contains 148 characters
(#99) Line exceeds 132 characters; contains 164 characters
(#101) Line exceeds maximum limit of 180 characters; contains 202 characters
(#102) Line exceeds maximum limit of 180 characters; contains 206 characters
(#107) Whitespace found at end of line within string
(#108) Line exceeds 132 characters; contains 150 characters
(#112) Line exceeds 132 characters; contains 168 characters
(#114) Usage of ELSEIF not allowed; use ELSE IF instead
(#117) Line exceeds maximum limit of 180 characters; contains 207 characters
(#121) Expected "if (...) {\n"; found "if(...) {\n"
(#121) Variable "groups_html" must not contain underscores.
(#122) Variable "groups_html" must not contain underscores.
(#127) Line exceeds 132 characters; contains 134 characters
(#133) Inline comments must start with a capital letter, digit or 3-dots sequence
(#133) Inline comments must end in full-stops, exclamation marks, or question marks
(#135) Line exceeds 132 characters; contains 180 characters

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 stylelint [More info]


PHPDocs style problems

(5 errors, 0 warnings)

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

mod/custommailing/backup/moodle2/backup_custommailing_activity_task.class.php
(#52) Phpdocs for function backup_custommailing_activity_task::encode_content_links has incomplete parameters list
mod/custommailing/lib.php
(#53) Phpdocs for function custommailing_add_instance has incomplete parameters list
(#88) Phpdocs for function custommailing_update_instance has incomplete parameters list
(#102) Phpdocs for function custommailing_delete_instance has incomplete parameters list
(#126) Phpdocs for function custommailing_supports 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

(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]


Gherkin .feature problems

(0 errors, 0 warnings)

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