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

(142 errors, 9 warnings)

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

blocks/rate_course/backup/moodle2/backup_rate_course_block_task.class.php
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/rate_course/backup/moodle2/backup_rate_course_stepslib.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion
(#35) Variable "rate_course" must not contain underscores.
(#37) Variable "rate_course" must not contain underscores.
(#52) Variable "rate_course" must not contain underscores.
blocks/rate_course/backup/moodle2/restore_rate_course_block_task.class.php
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/rate_course/backup/moodle2/restore_rate_course_stepslib.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion
blocks/rate_course/block_rate_course.php
(#31) Expected MOODLE_INTERNAL check or config.php inclusion
(#57) Expected 1 space before "=>"; 0 found
(#57) Expected 1 space after "=>"; 0 found
(#58) Expected 1 space before "=="; 0 found
(#58) Expected 1 space after "=="; 0 found
(#65) Expected 1 space before "=>"; 0 found
(#65) Expected 1 space after "=>"; 0 found
(#65) Expected 1 space before "=>"; 0 found
(#65) Expected 1 space after "=>"; 0 found
(#68) Expected 1 space before "=>"; 0 found
(#68) Expected 1 space after "=>"; 0 found
(#73) Expected 1 space before "=>"; 0 found
(#73) Expected 1 space after "=>"; 0 found
(#74) Expected 1 space before "=>"; 0 found
(#74) Expected 1 space after "=>"; 0 found
(#119) Expected 1 space before "=>"; 0 found
(#119) Expected 1 space after "=>"; 0 found
(#131) Expected 1 space before "/"; 0 found
(#131) Expected 1 space after "/"; 0 found
(#149) Expected 1 space before "=>"; 0 found
(#149) Expected 1 space after "=>"; 0 found
blocks/rate_course/check_db_syntax.php
(#30) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#55) Line exceeds maximum limit of 180 characters; contains 203 characters
(#109) Variable "dml_megarule" must not contain underscores.
(#110) Variable "helper_megarule" must not contain underscores.
(#111) Variable "ddl_megarule" must not contain underscores.
(#112) Variable "coreonly_megarule" must not contain underscores.
(#113) Variable "internal_megarule" must not contain underscores.
(#114) Variable "unsupported_megarule" must not contain underscores.
(#114) Expected 1 space before "="; 0 found
(#115) Variable "other_megarule" must not contain underscores.
(#118) Line exceeds maximum limit of 180 characters; contains 337 characters
(#121) Variable "all_megarules" must not contain underscores.
(#122) Expected 1 space before "=>"; 0 found
(#122) Expected 1 space after "=>"; 0 found
(#122) Variable "dml_megarule" must not contain underscores.
(#123) Expected 1 space before "=>"; 0 found
(#123) Expected 1 space after "=>"; 0 found
(#123) Variable "helper_megarule" must not contain underscores.
(#124) Expected 1 space before "=>"; 0 found
(#124) Expected 1 space after "=>"; 0 found
(#124) Variable "ddl_megarule" must not contain underscores.
(#125) Expected 1 space before "=>"; 0 found
(#125) Expected 1 space after "=>"; 0 found
(#125) Variable "coreonly_megarule" must not contain underscores.
(#126) Expected 1 space before "=>"; 0 found
(#126) Expected 1 space after "=>"; 0 found
(#126) Variable "internal_megarule" must not contain underscores.
(#127) Expected 1 space before "=>"; 0 found
(#127) Expected 1 space after "=>"; 0 found
(#127) Variable "unsupported_megarule" must not contain underscores.
(#128) Expected 1 space before "=>"; 0 found
(#128) Expected 1 space after "=>"; 0 found
(#128) Variable "other_megarule" must not contain underscores.
(#152) Variable "all_megarules" must not contain underscores.
(#222) Expected 1 space before "="; 0 found
(#222) Expected 1 space after "="; 0 found
(#226) Expected 1 space before "=="; 0 found
(#226) Expected 1 space after "=="; 0 found
(#226) Expected 1 space before "=="; 0 found
(#226) Expected 1 space after "=="; 0 found
(#235) Expected 1 space before "!=="; 0 found
(#235) Expected 1 space after "!=="; 0 found
(#239) Expected 1 space before "!=="; 0 found
(#239) Expected 1 space after "!=="; 0 found
(#240) Expected 1 space before "!=="; 0 found
(#240) Expected 1 space after "!=="; 0 found
(#241) Expected 1 space before "!=="; 0 found
(#241) Expected 1 space after "!=="; 0 found
(#242) Expected 1 space before "!=="; 0 found
(#242) Expected 1 space after "!=="; 0 found
(#243) Expected 1 space before "!=="; 0 found
(#243) Expected 1 space after "!=="; 0 found
(#244) Expected 1 space before "!=="; 0 found
(#244) Expected 1 space after "!=="; 0 found
(#245) Expected 1 space before "!=="; 0 found
(#245) Expected 1 space after "!=="; 0 found
(#246) Expected 1 space before "!=="; 0 found
(#246) Expected 1 space after "!=="; 0 found
(#246) Line exceeds 132 characters; contains 174 characters
(#250) Expected 1 space before "==="; 0 found
(#250) Expected 1 space after "==="; 0 found
(#250) Expected 1 space before "==="; 0 found
(#250) Expected 1 space after "==="; 0 found
blocks/rate_course/db/access.php
(#1) File has mixed line endings; this may cause incorrect results
(#28) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#43) Whitespace found at end of line
(#44) Whitespace found at end of line
(#45) Whitespace found at end of line
(#46) Whitespace found at end of line
(#47) Whitespace found at end of line
(#48) Whitespace found at end of line
(#49) Whitespace found at end of line
(#50) Whitespace found at end of line
blocks/rate_course/db/events.php
(#32) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/rate_course/db/upgrade.php
(#28) Expected MOODLE_INTERNAL check or config.php inclusion
(#32) Expected 1 space before "=>"; 0 found
(#32) Expected 1 space after "=>"; 0 found
(#33) Expected 1 space before "=>"; 0 found
(#33) Expected 1 space after "=>"; 0 found
(#49) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#51) Expected 1 space before "=>"; 0 found
(#51) Expected 1 space after "=>"; 0 found
(#59) Expected 1 space before "=>"; 0 found
(#59) Expected 1 space after "=>"; 0 found
(#68) Expected 1 space before "=>"; 0 found
(#68) Expected 1 space after "=>"; 0 found
blocks/rate_course/lang/en/block_rate_course.php
(#40) Expected 1 space after "="; 0 found
(#41) Expected 1 space after "="; 0 found
(#42) Expected 1 space after "="; 0 found
(#43) Expected 1 space after "="; 0 found
blocks/rate_course/lib.php
(#35) Expected MOODLE_INTERNAL check or config.php inclusion
(#38) Expected 1 space before "=>"; 0 found
(#38) Expected 1 space after "=>"; 0 found
blocks/rate_course/pix/rating_graphic.php
(#33) Expected login check (require_login, require_course_login, admin_externalpage_setup) following config inclusion. None found.
blocks/rate_course/rate.php
(#30) Expected login check (require_login, require_course_login, admin_externalpage_setup) following config inclusion. None found.
(#34) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#35) Expected 1 space before "=>"; 0 found
(#35) Expected 1 space after "=>"; 0 found
(#40) Expected 1 space before "=>"; 0 found
(#40) Expected 1 space after "=>"; 0 found
(#46) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#59) Variable "existing_answer" must not contain underscores.
(#60) Expected 1 space before "=>"; 0 found
(#60) Expected 1 space after "=>"; 0 found
(#60) Expected 1 space before "=>"; 0 found
(#60) Expected 1 space after "=>"; 0 found
(#61) Variable "existing_answer" must not contain underscores.
(#62) Variable "rate_text" must not contain underscores.
(#64) Variable "rate_text" must not contain underscores.
(#66) Variable "rate_text" must not contain underscores.
(#75) Variable "existing_answer" must not contain underscores.
(#75) Variable "existing_answer" must not contain underscores.
(#76) Variable "existing_answer" must not contain underscores.
(#82) Variable "existing_answer" must not contain underscores.
(#89) Variable "existing_answer" must not contain underscores.
blocks/rate_course/settings.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/rate_course/update.php
(#35) Expected 1 space before "=>"; 0 found
(#35) Expected 1 space after "=>"; 0 found
(#49) Expected 1 space before "=>"; 0 found
(#49) Expected 1 space after "=>"; 0 found
(#49) Expected 1 space before "=>"; 0 found
(#49) Expected 1 space after "=>"; 0 found
blocks/rate_course/version.php
(#30) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.

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

(49 errors, 0 warnings)

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

blocks/rate_course/backup/moodle2/backup_rate_course_block_task.class.php
(#28) Class backup_rate_course_block_task is not documented
(#30) Function backup_rate_course_block_task::define_my_settings is not documented
(#33) Function backup_rate_course_block_task::define_my_steps is not documented
(#38) Function backup_rate_course_block_task::get_fileareas is not documented
(#42) Function backup_rate_course_block_task::get_configdata_encoded_attributes is not documented
(#46) Function backup_rate_course_block_task::encode_content_links is not documented
(#20) Package blocks is not valid
blocks/rate_course/backup/moodle2/backup_rate_course_stepslib.php
(#31) Function backup_rate_course_block_structure_step::define_structure is not documented
(#26) Class backup_rate_course_block_structure_step does not have @copyright tag
(#26) Class backup_rate_course_block_structure_step does not have @license tag
(#20) Package blocks is not valid
blocks/rate_course/backup/moodle2/restore_rate_course_block_task.class.php
(#28) Class restore_rate_course_block_task is not documented
(#29) Function restore_rate_course_block_task::define_my_settings is not documented
(#32) Function restore_rate_course_block_task::define_my_steps is not documented
(#37) Function restore_rate_course_block_task::get_fileareas is not documented
(#41) Function restore_rate_course_block_task::get_configdata_encoded_attributes is not documented
(#45) Function restore_rate_course_block_task::define_decode_contents is not documented
(#49) Function restore_rate_course_block_task::define_decode_rules is not documented
(#20) Package blocks is not valid
blocks/rate_course/backup/moodle2/restore_rate_course_stepslib.php
(#31) Function restore_rate_course_block_structure_step::define_structure is not documented
(#40) Function restore_rate_course_block_structure_step::process_block is not documented
(#43) Function restore_rate_course_block_structure_step::process_item is not documented
(#26) Class restore_rate_course_block_structure_step does not have @copyright tag
(#26) Class restore_rate_course_block_structure_step does not have @license tag
(#20) Package blocks is not valid
blocks/rate_course/block_rate_course.php
(#31) Class block_rate_course is not documented
(#33) Function block_rate_course::init is not documented
(#37) Function block_rate_course::applicable_formats is not documented
(#41) Function block_rate_course::has_config is not documented
(#45) Function block_rate_course::get_content is not documented
(#144) Function block_rate_course::show_rating is not documented
(#17) No one-line description found in phpdocs for file
(#21) Package block is not valid
blocks/rate_course/check_db_syntax.php
(#185) Phpdocs for function calculate_megarule has incomplete parameters list
(#213) Phpdocs for function files_to_check has incomplete parameters list
(#19) Package block is not valid
blocks/rate_course/db/access.php
(#18) Package block is not valid
blocks/rate_course/db/events.php
(#20) Package block is not valid
blocks/rate_course/db/upgrade.php
(#28) Function xmldb_block_rate_course_upgrade is not documented
(#18) Package block is not valid
blocks/rate_course/lang/en/block_rate_course.php
(#20) Package block is not valid
blocks/rate_course/lib.php
(#32) Phpdocs for function course_delete has incomplete parameters list
(#20) Package block is not valid
blocks/rate_course/pix/rating_graphic.php
(#17) No one-line description found in phpdocs for file
(#23) Package block is not valid
blocks/rate_course/rate.php
(#20) Package block is not valid
blocks/rate_course/settings.php
(#19) Package block is not valid
blocks/rate_course/update.php
(#20) Package block is not valid
blocks/rate_course/version.php
(#20) Package block is not valid

Update savepoints problems

(2 errors, 0 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]

blocks/rate_course/db/upgrade.php
Detected more 'if' blocks (1) than 'savepoint' calls (0)
version 2009020307 is missing corresponding savepoint call

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]