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

(10 errors, 22 warnings)

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

blocks/inactiveuseralert/alert.php
(#87) Line exceeds 132 characters; contains 139 characters
blocks/inactiveuseralert/backup/moodle2/backup_inactiveuseralert_block_task.class.php
(#27) Inline comments must start with a capital letter, digit or 3-dots sequence
(#27) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/inactiveuseralert/backup/moodle2/backup_inactiveuseralert_stepslib.php
(#17) Expected MOODLE_INTERNAL check or config.php inclusion
(#41) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/inactiveuseralert/backup/moodle2/restore_inactiveuseralert_stepslib.php
(#17) Expected MOODLE_INTERNAL check or config.php inclusion
blocks/inactiveuseralert/block_inactiveuseralert.php
(#27) Expected MOODLE_INTERNAL check or config.php inclusion
blocks/inactiveuseralert/classes/alert.php
(#19) Expected MOODLE_INTERNAL check or config.php inclusion
(#114) Expected 1 space after "="; 2 found
(#130) Expected 1 space after "<="; 0 found
blocks/inactiveuseralert/classes/form/alert.php
(#47) Line exceeds 132 characters; contains 138 characters
(#57) Line exceeds 132 characters; contains 134 characters
(#74) Line exceeds 132 characters; contains 141 characters
(#100) Expected 1 space after "<="; 0 found
(#106) Expected 1 space after "<="; 0 found
blocks/inactiveuseralert/classes/helper.php
(#19) Expected MOODLE_INTERNAL check or config.php inclusion
blocks/inactiveuseralert/classes/observer.php
(#30) Expected "if (...) {\n"; found "if (...){\n"
(#32) Inline comments must end in full-stops, exclamation marks, or question marks
(#35) Inline comments must end in full-stops, exclamation marks, or question marks
blocks/inactiveuseralert/classes/output/report/renderable.php
(#77) Expected 1 space after "?"; newline found
blocks/inactiveuseralert/classes/report.php
(#19) Expected MOODLE_INTERNAL check or config.php inclusion
(#71) Line exceeds 132 characters; contains 136 characters
blocks/inactiveuseralert/classes/task/sendalerts.php
(#21) Expected MOODLE_INTERNAL check or config.php inclusion
(#66) Line indented incorrectly; expected at least 12 spaces, found 11
(#67) Line indented incorrectly; expected at least 12 spaces, found 11
blocks/inactiveuseralert/db/upgrade.php
(#30) Expected MOODLE_INTERNAL check or config.php inclusion
blocks/inactiveuseralert/edit_form.php
(#28) Expected MOODLE_INTERNAL check or config.php inclusion
(#37) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#43) Line exceeds 132 characters; contains 139 characters
(#49) Line exceeds 132 characters; contains 135 characters
blocks/inactiveuseralert/renderer.php
(#88) Line exceeds 132 characters; contains 140 characters
blocks/inactiveuseralert/tests/inactiveuseralert_test.php
(#2) The opening <?php tag must be followed by exactly one newline.

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


PHPDocs style problems

(111 errors, 3 warnings)

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

blocks/inactiveuseralert/alert.php
(#17) File-level phpdocs block is not found
blocks/inactiveuseralert/backup/moodle2/backup_inactiveuseralert_block_task.class.php
(#17) File-level phpdocs block is not found
(#21) Class backup_inactiveuseralert_block_task is not documented
(#23) Function backup_inactiveuseralert_block_task::define_my_settings is not documented
(#26) Function backup_inactiveuseralert_block_task::define_my_steps is not documented
(#31) Function backup_inactiveuseralert_block_task::get_fileareas is not documented
(#35) Function backup_inactiveuseralert_block_task::get_configdata_encoded_attributes is not documented
(#39) Function backup_inactiveuseralert_block_task::encode_content_links is not documented
(#21) Package is not specified for class backup_inactiveuseralert_block_task. It is also not specified in file-level phpdocs
blocks/inactiveuseralert/backup/moodle2/backup_inactiveuseralert_stepslib.php
(#17) File-level phpdocs block is not found
(#17) Class backup_inactiveuseralert_block_structure_step is not documented
(#19) Function backup_inactiveuseralert_block_structure_step::define_structure is not documented
(#17) Package is not specified for class backup_inactiveuseralert_block_structure_step. It is also not specified in file-level phpdocs
blocks/inactiveuseralert/backup/moodle2/restore_inactiveuseralert_block_task.class.php
(#17) File-level phpdocs block is not found
(#21) Class restore_inactiveuseralert_block_task is not documented
(#23) Function restore_inactiveuseralert_block_task::define_my_settings is not documented
(#26) Function restore_inactiveuseralert_block_task::define_my_steps is not documented
(#30) Function restore_inactiveuseralert_block_task::get_fileareas is not documented
(#34) Function restore_inactiveuseralert_block_task::get_configdata_encoded_attributes is not documented
(#38) Function restore_inactiveuseralert_block_task::define_decode_contents is not documented
(#42) Function restore_inactiveuseralert_block_task::define_decode_rules is not documented
(#21) Package is not specified for class restore_inactiveuseralert_block_task. It is also not specified in file-level phpdocs
blocks/inactiveuseralert/backup/moodle2/restore_inactiveuseralert_stepslib.php
(#17) File-level phpdocs block is not found
(#17) Class restore_inactiveuseralert_block_structure_step is not documented
(#21) Function restore_inactiveuseralert_block_structure_step::define_structure is not documented
(#35) Function restore_inactiveuseralert_block_structure_step::process_inactiveuseralert is not documented
(#60) Function restore_inactiveuseralert_block_structure_step::process_track is not documented
(#76) Function restore_inactiveuseralert_block_structure_step::after_restore is not documented
(#19) Variable restore_inactiveuseralert_block_structure_step::$donotrestore is not documented
(#17) Package is not specified for class restore_inactiveuseralert_block_structure_step. It is also not specified in file-level phpdocs
blocks/inactiveuseralert/block_inactiveuseralert.php
(#17) File-level phpdocs block is not found
(#29) Function block_inactiveuseralert::init is not documented
(#94) Function block_inactiveuseralert::instance_allow_config is not documented
(#98) Function block_inactiveuseralert::instance_delete is not documented
blocks/inactiveuseralert/classes/alert.php
(#17) File-level phpdocs block is not found
(#19) Class alert is not documented
(#24) Function alert::__construct is not documented
(#46) Function alert::__get is not documented
(#53) Function alert::__isset is not documented
(#57) Function alert::__set is not documented
(#67) Function alert::data_for_form is not documented
(#71) Function alert::delete is not documented
(#77) Function alert::instance is not documented
(#83) Function alert::set_alert_time is not documented
(#95) Function alert::fetch_login_alert is not documented
(#109) Function alert::save is not documented
(#129) Function alert::set_sent_and_save is not documented
(#141) Function alert::track is not documented
(#172) Function alert::valid is not documented
(#21) Variable alert::$record is not documented
(#22) Variable alert::$altered is not documented
(#19) Package is not specified for class alert. It is also not specified in file-level phpdocs
blocks/inactiveuseralert/classes/form/alert.php
(#31) Class alert is not documented
(#32) Function alert::definition is not documented
(#95) Function alert::validation is not documented
blocks/inactiveuseralert/classes/helper.php
(#17) File-level phpdocs block is not found
(#19) Class helper is not documented
(#21) Function helper::load_alerts_with_track is not documented
(#45) Function helper::get_alerts is not documented
(#60) Function helper::get_pending_alert_info is not documented
(#107) Function helper::get_cms_without_alert is not documented
(#19) Package is not specified for class helper. It is also not specified in file-level phpdocs
blocks/inactiveuseralert/classes/observer.php
(#17) File-level phpdocs block is not found
(#19) Class block_inactiveuseralert_observer is not documented
(#19) Package is not specified for class block_inactiveuseralert_observer. It is also not specified in file-level phpdocs
blocks/inactiveuseralert/classes/output/alert/renderable.php
(#17) File-level phpdocs block is not found
(#59) Function renderable::__construct is not documented
(#57) Variable renderable::$courseid is not documented
(#34) Not recommended phpdocs tag @access used
(#53) Not recommended phpdocs tag @access used
blocks/inactiveuseralert/classes/output/report/renderable.php
(#17) File-level phpdocs block is not found
(#66) Function renderable::__construct is not documented
(#30) Variable renderable::$columns is not documented
(#32) Variable renderable::$count is not documented
(#34) Variable renderable::$page is not documented
(#36) Variable renderable::$perpage is not documented
(#38) Variable renderable::$url is not documented
(#40) Variable renderable::$userdata is not documented
(#62) Variable renderable::$type is not documented
(#64) Variable renderable::$sentcount is not documented
(#42) Phpdocs for variable renderable::$name does not contain @var or incorrect
(#47) Phpdocs for variable renderable::$alertlist does not contain @var or incorrect
(#52) Phpdocs for variable renderable::$selected does not contain @var or incorrect
(#57) Phpdocs for variable renderable::$modinfo does not contain @var or incorrect
blocks/inactiveuseralert/classes/report.php
(#17) File-level phpdocs block is not found
(#19) Class report is not documented
(#27) Function report::__construct is not documented
(#34) Function report::load_login_data is not documented
(#63) Function report::load_activity_data is not documented
(#22) Variable report::$offset is not documented
(#23) Variable report::$context is not documented
(#24) Variable report::$page is not documented
(#25) Variable report::$users is not documented
(#21) Constant report::PERPAGE is not documented
(#19) Package is not specified for class report. It is also not specified in file-level phpdocs
blocks/inactiveuseralert/classes/task/sendalerts.php
(#17) File-level phpdocs block is not found
(#21) Class sendalerts is not documented
(#32) Function sendalerts::execute is not documented
(#60) Function sendalerts::process_activity_alert is not documented
(#120) Function sendalerts::process_login_alert is not documented
(#21) Package is not specified for class sendalerts. It is also not specified in file-level phpdocs
blocks/inactiveuseralert/db/events.php
(#17) File-level phpdocs block is not found
blocks/inactiveuseralert/db/tasks.php
(#17) File-level phpdocs block is not found
blocks/inactiveuseralert/db/upgrade.php
(#30) Function xmldb_block_inactiveuseralert_upgrade is not documented
blocks/inactiveuseralert/edit_form.php
(#28) Class block_inactiveuseralert_edit_form is not documented
(#29) Function block_inactiveuseralert_edit_form::specific_definition is not documented
blocks/inactiveuseralert/index.php
(#17) File-level phpdocs block is not found
blocks/inactiveuseralert/lang/en/block_inactiveuseralert.php
(#17) File-level phpdocs block is not found
blocks/inactiveuseralert/renderer.php
(#26) Class block_inactiveuseralert_renderer is not documented
(#52) Function block_inactiveuseralert_renderer::alert_list is not documented
(#68) Function block_inactiveuseralert_renderer::render_report is not documented
(#115) Function block_inactiveuseralert_renderer::render_alert is not documented
(#30) Phpdocs for function block_inactiveuseralert_renderer::alerts has incomplete parameters list
blocks/inactiveuseralert/tests/inactiveuseralert_test.php
(#2) Empty line found after PHP open tag

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]