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

(195 errors, 12 warnings)

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

mod/engagement/db/install.php
(#17) Expected MOODLE_INTERNAL check or config.php inclusion
mod/engagement/db/upgrade.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion
mod/engagement/index.php
(#20) Expected login check (require_login, require_course_login, admin_externalpage_setup) following config inclusion. None found.
mod/engagement/indicator/assessment/db/install.php
(#17) Expected MOODLE_INTERNAL check or config.php inclusion
mod/engagement/indicator/assessment/indicator.class.php
(#42) Variable "ignored_startdate" must not contain underscores.
(#42) Variable "ignored_enddate" must not contain underscores.
(#51) Variable "grade_items" must not contain underscores.
(#56) Variable "grade_items" must not contain underscores.
(#92) Variable "grade_items" must not contain underscores.
(#96) Variable "grade_items" must not contain underscores.
(#97) Variable "assignment_ids" must not contain underscores.
(#100) Variable "assignment_ids" must not contain underscores.
(#120) Variable "assignment_ids" must not contain underscores.
(#125) Variable "grade_items" must not contain underscores.
(#129) Variable "grade_items" must not contain underscores.
(#130) Variable "assignment_ids" must not contain underscores.
(#133) Variable "assignment_ids" must not contain underscores.
(#154) Variable "assignment_ids" must not contain underscores.
(#155) Line exceeds 132 characters; contains 134 characters
(#159) Variable "grade_items" must not contain underscores.
(#163) Variable "grade_items" must not contain underscores.
(#164) Variable "quiz_ids" must not contain underscores.
(#167) Variable "quiz_ids" must not contain underscores.
(#189) Variable "group_overrides" must not contain underscores.
(#195) Variable "group_overrides" must not contain underscores.
(#200) Variable "group_overrides" must not contain underscores.
(#201) Variable "group_overrides" must not contain underscores.
(#202) Variable "group_members" must not contain underscores.
(#208) Variable "group_members" must not contain underscores.
(#210) Variable "group_members" must not contain underscores.
(#215) Variable "group_overrides" must not contain underscores.
(#215) Variable "override_quizzes" must not contain underscores.
(#219) Variable "override_quizzes" must not contain underscores.
(#237) Variable "quiz_ids" must not contain underscores.
(#273) Variable "from_object" must not contain underscores.
(#274) Variable "from_object" must not contain underscores.
(#285) Variable "total_assessment_value" must not contain underscores.
(#301) Variable "num_days_late" must not contain underscores.
(#302) Variable "days_late_weighting" must not contain underscores.
(#302) Variable "num_days_late" must not contain underscores.
(#302) Expected 1 space after "/"; newline found
(#304) Variable "days_late_weighting" must not contain underscores.
(#304) Variable "days_late_weighting" must not contain underscores.
(#305) Variable "assessment_value_weighting" must not contain underscores.
(#305) Variable "total_assessment_value" must not contain underscores.
(#306) Variable "assessment_value_weighting" must not contain underscores.
(#306) Expected 1 space before "*"; 0 found
(#306) Expected 1 space after "*"; 0 found
(#311) Variable "num_days_late" must not contain underscores.
(#312) Variable "num_days_late" must not contain underscores.
(#314) Variable "local_risk" must not contain underscores.
(#314) Variable "days_late_weighting" must not contain underscores.
(#315) Variable "risk_contribution" must not contain underscores.
(#315) Variable "assessment_value_weighting" must not contain underscores.
(#315) Variable "local_risk" must not contain underscores.
(#316) Variable "risk_contribution" must not contain underscores.
(#317) Variable "risk_contribution" must not contain underscores.
(#317) Expected 1 space before "*"; 0 found
(#317) Expected 1 space after "*"; 0 found
(#318) Variable "local_risk" must not contain underscores.
(#318) Expected 1 space before "*"; 0 found
(#318) Expected 1 space after "*"; 0 found
(#323) Variable "local_risk" must not contain underscores.
(#323) Variable "days_late_weighting" must not contain underscores.
(#324) Variable "risk_contribution" must not contain underscores.
(#324) Variable "assessment_value_weighting" must not contain underscores.
(#324) Variable "local_risk" must not contain underscores.
(#325) Variable "risk_contribution" must not contain underscores.
(#326) Variable "risk_contribution" must not contain underscores.
(#326) Expected 1 space before "*"; 0 found
(#326) Expected 1 space after "*"; 0 found
(#327) Variable "local_risk" must not contain underscores.
(#327) Expected 1 space before "*"; 0 found
(#327) Expected 1 space after "*"; 0 found
mod/engagement/indicator/assessment/thresholds_form.php
(#61) Expected 1 space before "*"; 0 found
(#61) Expected 1 space after "*"; 0 found
(#70) Expected 1 space before "*"; 0 found
(#70) Expected 1 space after "*"; 0 found
mod/engagement/indicator/forum/db/install.php
(#17) Expected MOODLE_INTERNAL check or config.php inclusion
mod/engagement/indicator/forum/indicator.class.php
(#124) Expected 1 space after "+"; newline found
(#125) Expected 1 space after "+"; newline found
(#126) Expected 1 space after "+"; newline found
(#140) Variable "local_risk" must not contain underscores.
(#141) Variable "risk_contribution" must not contain underscores.
(#141) Variable "local_risk" must not contain underscores.
(#143) Expected 1 space before "*"; 0 found
(#143) Expected 1 space after "*"; 0 found
(#144) Variable "local_risk" must not contain underscores.
(#144) Expected 1 space before "*"; 0 found
(#144) Expected 1 space after "*"; 0 found
(#147) Variable "risk_contribution" must not contain underscores.
(#147) Expected 1 space before "*"; 0 found
(#147) Expected 1 space after "*"; 0 found
(#150) Variable "risk_contribution" must not contain underscores.
(#152) Variable "local_risk" must not contain underscores.
(#153) Variable "risk_contribution" must not contain underscores.
(#153) Variable "local_risk" must not contain underscores.
(#155) Expected 1 space before "*"; 0 found
(#155) Expected 1 space after "*"; 0 found
(#156) Variable "local_risk" must not contain underscores.
(#156) Expected 1 space before "*"; 0 found
(#156) Expected 1 space after "*"; 0 found
(#159) Variable "risk_contribution" must not contain underscores.
(#159) Expected 1 space before "*"; 0 found
(#159) Expected 1 space after "*"; 0 found
(#162) Variable "risk_contribution" must not contain underscores.
(#164) Variable "local_risk" must not contain underscores.
(#165) Variable "risk_contribution" must not contain underscores.
(#165) Variable "local_risk" must not contain underscores.
(#167) Expected 1 space before "*"; 0 found
(#167) Expected 1 space after "*"; 0 found
(#168) Variable "local_risk" must not contain underscores.
(#168) Expected 1 space before "*"; 0 found
(#168) Expected 1 space after "*"; 0 found
(#171) Variable "risk_contribution" must not contain underscores.
(#171) Expected 1 space before "*"; 0 found
(#171) Expected 1 space after "*"; 0 found
(#174) Variable "risk_contribution" must not contain underscores.
(#176) Variable "local_risk" must not contain underscores.
(#177) Variable "risk_contribution" must not contain underscores.
(#177) Variable "local_risk" must not contain underscores.
(#179) Expected 1 space before "*"; 0 found
(#179) Expected 1 space after "*"; 0 found
(#180) Variable "local_risk" must not contain underscores.
(#180) Expected 1 space before "*"; 0 found
(#180) Expected 1 space after "*"; 0 found
(#183) Variable "risk_contribution" must not contain underscores.
(#183) Expected 1 space before "*"; 0 found
(#183) Expected 1 space after "*"; 0 found
(#186) Variable "risk_contribution" must not contain underscores.
mod/engagement/indicator/forum/renderer.php
(#42) Line exceeds 132 characters; contains 136 characters
mod/engagement/indicator/forum/thresholds_form.php
(#62) Expected 1 space before "*"; 0 found
(#62) Expected 1 space after "*"; 0 found
mod/engagement/indicator/indicator.class.php
(#34) Variable "_config" must not contain underscores.
(#51) Variable "_config" must not contain underscores.
(#52) Variable "_config" must not contain underscores.
mod/engagement/indicator/login/db/install.php
(#17) Expected MOODLE_INTERNAL check or config.php inclusion
mod/engagement/indicator/login/indicator.class.php
(#71) Expected 1 space after "="; newline found
(#117) Expected 1 space after "+"; newline found
(#118) Expected 1 space after "+"; newline found
(#119) Expected 1 space after "+"; newline found
(#133) Variable "local_risk" must not contain underscores.
(#134) Variable "risk_contribution" must not contain underscores.
(#134) Variable "local_risk" must not contain underscores.
(#136) Expected 1 space before "*"; 0 found
(#136) Expected 1 space after "*"; 0 found
(#137) Variable "local_risk" must not contain underscores.
(#137) Expected 1 space before "*"; 0 found
(#137) Expected 1 space after "*"; 0 found
(#139) Variable "risk_contribution" must not contain underscores.
(#139) Expected 1 space before "*"; 0 found
(#139) Expected 1 space after "*"; 0 found
(#142) Variable "risk_contribution" must not contain underscores.
(#150) Variable "local_risk" must not contain underscores.
(#151) Variable "risk_contribution" must not contain underscores.
(#151) Variable "local_risk" must not contain underscores.
(#153) Expected 1 space before "*"; 0 found
(#153) Expected 1 space after "*"; 0 found
(#154) Variable "local_risk" must not contain underscores.
(#154) Expected 1 space before "*"; 0 found
(#154) Expected 1 space after "*"; 0 found
(#156) Variable "risk_contribution" must not contain underscores.
(#156) Expected 1 space before "*"; 0 found
(#156) Expected 1 space after "*"; 0 found
(#159) Variable "risk_contribution" must not contain underscores.
(#167) Variable "local_risk" must not contain underscores.
(#168) Variable "risk_contribution" must not contain underscores.
(#168) Variable "local_risk" must not contain underscores.
(#170) Expected 1 space before "*"; 0 found
(#170) Expected 1 space after "*"; 0 found
(#171) Variable "local_risk" must not contain underscores.
(#171) Expected 1 space before "*"; 0 found
(#171) Expected 1 space after "*"; 0 found
(#173) Variable "risk_contribution" must not contain underscores.
(#173) Expected 1 space before "*"; 0 found
(#173) Expected 1 space after "*"; 0 found
(#176) Variable "risk_contribution" must not contain underscores.
(#180) Variable "local_risk" must not contain underscores.
(#181) Variable "risk_contribution" must not contain underscores.
(#181) Variable "local_risk" must not contain underscores.
(#183) Expected 1 space before "*"; 0 found
(#183) Expected 1 space after "*"; 0 found
(#184) Variable "local_risk" must not contain underscores.
(#184) Expected 1 space before "*"; 0 found
(#184) Expected 1 space after "*"; 0 found
(#185) Line exceeds 132 characters; contains 137 characters
(#186) Variable "risk_contribution" must not contain underscores.
(#186) Expected 1 space before "*"; 0 found
(#186) Expected 1 space after "*"; 0 found
(#189) Variable "risk_contribution" must not contain underscores.
(#219) Expected 1 space before "*"; 0 found
(#219) Expected 1 space after "*"; 0 found
(#222) Expected 1 space before "*"; 0 found
(#222) Expected 1 space after "*"; 0 found
(#222) Expected 1 space before "*"; 0 found
(#222) Expected 1 space after "*"; 0 found
(#222) Expected 1 space before "*"; 0 found
(#222) Expected 1 space after "*"; 0 found
(#225) Expected 1 space before "*"; 0 found
(#225) Expected 1 space after "*"; 0 found
mod/engagement/indicator/login/renderer.php
(#42) Line exceeds 132 characters; contains 136 characters
mod/engagement/indicator/login/thresholds_form.php
(#52) Expected 1 space before "*"; 0 found
(#52) Expected 1 space after "*"; 0 found
mod/engagement/lib.php
(#20) Expected MOODLE_INTERNAL check or config.php inclusion
mod/engagement/mod_form.php
(#25) "require_once" must be immediately followed by an open parenthesis
(#29) Visibility must be declared on method "definition"
mod/engagement/view.php
(#20) Expected login check (require_login, require_course_login, admin_externalpage_setup) following config inclusion. None found.

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

(86 errors, 15 warnings)

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

mod/engagement/classes/plugininfo/engagementindicator.php
(#31) Class engagementindicator is not documented
(#33) Function engagementindicator::is_enabled is not documented
(#39) Function engagementindicator::get_enabled_engagementindicators is not documented
mod/engagement/db/install.php
(#17) File-level phpdocs block is not found
(#17) Function xmldb_engagement_install is not documented
(#17) Package is not specified for function xmldb_engagement_install. It is also not specified in file-level phpdocs
mod/engagement/db/upgrade.php
(#25) Function xmldb_engagement_upgrade is not documented
mod/engagement/index.php
(#20) File-level phpdocs block is not found
mod/engagement/indicator/assessment/db/install.php
(#17) File-level phpdocs block is not found
(#17) Function xmldb_engagementindicator_assessment_install is not documented
(#17) Package is not specified for function xmldb_engagementindicator_assessment_install. It is also not specified in file-level phpdocs
mod/engagement/indicator/assessment/indicator.class.php
(#31) Class indicator_assessment is not documented
(#268) Class assessment_risk_calculator is not documented
(#83) Function indicator_assessment::calculate_risks is not documented
(#92) Function indicator_assessment::add_assignments is not documented
(#125) Function indicator_assessment::add_assignments_old is not documented
(#159) Function indicator_assessment::add_quizzes is not documented
(#244) Function indicator_assessment::load_config is not documented
(#256) Function indicator_assessment::get_defaults is not documented
(#273) Function assessment_risk_calculator::__construct is not documented
(#277) Function assessment_risk_calculator::add_assessment is not documented
(#285) Function assessment_risk_calculator::get_risks is not documented
(#344) Function assessment_risk_calculator::as_object is not documented
(#270) Variable assessment_risk_calculator::$assessments is not documented
(#35) Phpdocs for function indicator_assessment::get_rawdata has incomplete parameters list
(#39) Not recommended phpdocs tag @access used
mod/engagement/indicator/assessment/lang/en/engagementindicator_assessment.php
(#20) Package engagementindicator_login is not valid
mod/engagement/indicator/assessment/renderer.php
(#27) Class engagementindicator_assessment_renderer is not documented
(#28) Function engagementindicator_assessment_renderer::user_report is not documented
(#20) Package mod_engagement is not valid
mod/engagement/indicator/assessment/thresholds_form.php
(#31) Class engagementindicator_assessment_thresholds_form is not documented
(#36) Phpdocs for function engagementindicator_assessment_thresholds_form::definition_inner has incomplete parameters list
(#37) Not recommended phpdocs tag @access used
mod/engagement/indicator/assessment/version.php
(#23) Package engagementindicator_login is not valid
mod/engagement/indicator/forum/db/install.php
(#17) File-level phpdocs block is not found
(#17) Function xmldb_engagementindicator_forum_install is not documented
(#17) Package is not specified for function xmldb_engagementindicator_forum_install. It is also not specified in file-level phpdocs
mod/engagement/indicator/forum/indicator.class.php
(#29) Class indicator_forum is not documented
(#107) Function indicator_forum::calculate_risks is not documented
(#197) Function indicator_forum::calculate is not documented
(#213) Function indicator_forum::load_config is not documented
(#225) Function indicator_forum::get_defaults is not documented
(#30) Variable indicator_forum::$currweek is not documented
(#35) Phpdocs for function indicator_forum::get_rawdata has incomplete parameters list
(#39) Not recommended phpdocs tag @access used
mod/engagement/indicator/forum/renderer.php
(#27) Class engagementindicator_forum_renderer is not documented
(#28) Function engagementindicator_forum_renderer::user_report is not documented
(#20) Package mod_engagement is not valid
mod/engagement/indicator/forum/thresholds_form.php
(#31) Class engagementindicator_forum_thresholds_form is not documented
(#36) Phpdocs for function engagementindicator_forum_thresholds_form::definition_inner has incomplete parameters list
(#37) Not recommended phpdocs tag @access used
mod/engagement/indicator/indicator.class.php
(#17) File-level phpdocs block is not found
(#34) Function indicator::__construct is not documented
(#114) Function indicator::get_risk_for_users is not documented
(#144) Function indicator::get_cache is not documented
(#162) Function indicator::set_cache is not documented
(#28) Variable indicator::$config is not documented
(#29) Variable indicator::$context is not documented
(#30) Variable indicator::$courseid is not documented
(#31) Variable indicator::$instance is not documented
(#32) Variable indicator::$rawdata is not documented
(#75) Phpdocs for function indicator::get_course_risks has incomplete parameters list
(#175) Phpdocs for function indicator::get_rawdata has incomplete parameters list
(#187) Phpdocs for function indicator::calculate_risks has incomplete parameters list
(#65) Not recommended phpdocs tag @access used
(#78) Not recommended phpdocs tag @access used
(#178) Not recommended phpdocs tag @abstract used
(#179) Not recommended phpdocs tag @access used
(#188) Not recommended phpdocs tag @abstract used
(#189) Not recommended phpdocs tag @access used
(#197) Not recommended phpdocs tag @access used
(#209) Not recommended phpdocs tag @access used
(#228) Not recommended phpdocs tag @access used
(#19) Package is not specified for class indicator. It is also not specified in file-level phpdocs
mod/engagement/indicator/login/db/install.php
(#17) File-level phpdocs block is not found
(#17) Function xmldb_engagementindicator_login_install is not documented
(#17) Package is not specified for function xmldb_engagementindicator_login_install. It is also not specified in file-level phpdocs
mod/engagement/indicator/login/indicator.class.php
(#29) Class indicator_login is not documented
(#93) Function indicator_login::calculate_risk is not documented
(#101) Function indicator_login::calculate_risks is not documented
(#199) Function indicator_login::load_config is not documented
(#211) Function indicator_login::get_defaults is not documented
(#36) Not recommended phpdocs tag @access used
mod/engagement/indicator/login/renderer.php
(#27) Class engagementindicator_login_renderer is not documented
(#28) Function engagementindicator_login_renderer::user_report is not documented
(#20) Package mod_engagement is not valid
mod/engagement/indicator/login/thresholds_form.php
(#31) Class engagementindicator_login_thresholds_form is not documented
(#36) Phpdocs for function engagementindicator_login_thresholds_form::definition_inner has incomplete parameters list
(#37) Not recommended phpdocs tag @access used
mod/engagement/indicator/rendererbase.php
(#34) Class engagementindicator_renderer is not documented
(#35) Function engagementindicator_renderer::user_report is not documented
mod/engagement/lang/en/engagement.php
(#20) Package mod is not valid
mod/engagement/lib.php
(#20) File-level phpdocs block is not found
(#20) Function engagement_add_instance is not documented
(#24) Function engagement_update_instance is not documented
(#20) Package is not specified for function engagement_add_instance. It is also not specified in file-level phpdocs
(#24) Package is not specified for function engagement_update_instance. It is also not specified in file-level phpdocs
mod/engagement/mod_form.php
(#27) Class mod_engagement_mod_form is not documented
(#29) Function mod_engagement_mod_form::definition is not documented
(#17) No one-line description found in phpdocs for file
mod/engagement/view.php
(#20) 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]