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

(5 errors, 2 warnings)

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

mod/publication/db/access.php
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
mod/publication/db/upgrade.php
(#28) Expected MOODLE_INTERNAL check or config.php inclusion
mod/publication/locallib.php
(#261) Expected 1 space after "?"; newline found
(#493) This comment is 86% valid code; is this commented out code?
(#1063) Empty CATCH statement detected
mod/publication/upload_form.php
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
mod/publication/version.php
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.

Javascript coding style problems

(0 errors, 8 warnings)

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

mod/publication/publication.js
(#17) 'toggle_available_options' was used before it was defined.
(#24) Expected '===' and instead saw '=='.
(#44) Missing semicolon.
(#49) Expected '===' and instead saw '=='.
(#59) Missing semicolon.
(#3) 'atts' is defined but never used.
(#46) 'Y' is defined but never used.
(#48) 'e' is defined but never used.

CSS problems

(0 errors, 2 warnings)

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

mod/publication/styles.css
(#87) Use of !important
(#131) Use of !important

PHPDocs style problems

(41 errors, 0 warnings)

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

mod/publication/backup/moodle2/backup_publication_activity_task.class.php
(#33) Class backup_publication_activity_task is not documented
mod/publication/backup/moodle2/backup_publication_stepslib.php
(#30) Class backup_publication_activity_structure_step is not documented
mod/publication/backup/moodle2/restore_publication_activity_task.class.php
(#32) Class restore_publication_activity_task is not documented
mod/publication/backup/moodle2/restore_publication_stepslib.php
(#30) Class restore_publication_activity_structure_step is not documented
(#149) Function restore_publication_activity_structure_step::after_restore is not documented
mod/publication/classes/event/course_module_instance_list_viewed.php
(#30) Class course_module_instance_list_viewed is not documented
mod/publication/classes/event/course_module_viewed.php
(#30) Class course_module_viewed is not documented
(#31) Function course_module_viewed::init is not documented
mod/publication/db/upgrade.php
(#28) Function xmldb_publication_upgrade is not documented
mod/publication/lib.php
(#166) Function publication_reset_course_form_definition is not documented
(#171) Function publication_reset_userdata is not documented
(#140) There is no description in phpdocs for function publication_get_coursemodule_info
mod/publication/locallib.php
(#33) Class publication is not documented
(#40) Function publication::__construct is not documented
(#51) Function publication::show_intro is not documented
(#59) Function publication::display_intro is not documented
(#80) Function publication::display_availability is not documented
(#175) Function publication::user_extensionduedate is not documented
(#189) Function publication::is_open is not documented
(#211) Function publication::get_instance is not documented
(#215) Function publication::get_context is not documented
(#219) Function publication::get_coursemodule is not documented
(#222) Function publication::display_allfilesform is not documented
(#798) Function publication::download_file is not documented
(#966) Function publication::pack_files is not documented
(#35) Variable publication::$instance is not documented
(#36) Variable publication::$context is not documented
(#37) Variable publication::$course is not documented
(#38) Variable publication::$coursemodule is not documented
mod/publication/mod_form.php
(#203) Function mod_publication_mod_form::data_preprocessing is not documented
(#33) Class mod_publication_mod_form does not have @copyright tag
(#33) Class mod_publication_mod_form does not have @license tag
mod/publication/mod_publication_files_form.php
(#39) Function mod_publication_files_form::definition is not documented
(#33) Class mod_publication_files_form does not have @copyright tag
(#33) Class mod_publication_files_form does not have @license tag
mod/publication/mod_publication_grantextension_form.php
(#42) Function mod_publication_grantextension_form::definition is not documented
(#40) Variable mod_publication_grantextension_form::$instance is not documented
(#33) Class mod_publication_grantextension_form does not have @copyright tag
(#33) Class mod_publication_grantextension_form does not have @license tag
mod/publication/upload_form.php
(#30) Class mod_publication_upload_form is not documented
(#32) Function mod_publication_upload_form::definition is not documented

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]