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

(70 errors, 46 warnings)

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

mod/subcourse/backup/moodle2/backup_subcourse_activity_task.class.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#39) Inline comments must end in full-stops, exclamation marks, or question marks
(#58) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) Expected 1 space before "="; 0 found
(#59) Expected 1 space after "="; 0 found
(#60) Expected 1 space before "="; 0 found
(#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
mod/subcourse/backup/moodle2/backup_subcourse_stepslib.php
(#2) The opening <?php tag must be followed by exactly one newline.
mod/subcourse/backup/moodle2/restore_subcourse_activity_task.class.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#35) Inline comments must end in full-stops, exclamation marks, or question marks
(#42) Inline comments must end in full-stops, exclamation marks, or question marks
(#102) Inline comments must end in full-stops, exclamation marks, or question marks
mod/subcourse/backup/moodle2/restore_subcourse_stepslib.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#57) Inline comments must start with a capital letter, digit or 3-dots sequence
(#57) Inline comments must end in full-stops, exclamation marks, or question marks
(#62) Inline comments must end in full-stops, exclamation marks, or question marks
mod/subcourse/classes/event/subcourse_grades_fetched.php
(#31) Inline comments must start with a capital letter, digit or 3-dots sequence
(#31) Inline comments must end in full-stops, exclamation marks, or question marks
(#31) This comment is 48% valid code; is this commented out code?
(#41) Line exceeds maximum limit of 180 characters; contains 207 characters
mod/subcourse/classes/task/fetch_grades.php
(#67) Line exceeds 132 characters; contains 142 characters
mod/subcourse/db/access.php
(#2) The opening <?php tag must be followed by exactly one newline.
mod/subcourse/db/log.php
(#23) Expected 1 space before "=>"; 0 found
(#23) Expected 1 space after "=>"; 0 found
(#23) Expected 1 space before "=>"; 0 found
(#23) Expected 1 space after "=>"; 0 found
(#23) Expected 1 space before "=>"; 0 found
(#23) Expected 1 space after "=>"; 0 found
(#23) Expected 1 space before "=>"; 0 found
(#23) Expected 1 space after "=>"; 0 found
(#24) Expected 1 space before "=>"; 0 found
(#24) Expected 1 space after "=>"; 0 found
(#24) Expected 1 space before "=>"; 0 found
(#24) Expected 1 space after "=>"; 0 found
(#24) Expected 1 space before "=>"; 0 found
(#24) Expected 1 space after "=>"; 0 found
(#24) Expected 1 space before "=>"; 0 found
(#24) Expected 1 space after "=>"; 0 found
(#25) Expected 1 space before "=>"; 0 found
(#25) Expected 1 space after "=>"; 0 found
(#25) Expected 1 space before "=>"; 0 found
(#25) Expected 1 space after "=>"; 0 found
(#25) Expected 1 space before "=>"; 0 found
(#25) Expected 1 space after "=>"; 0 found
(#25) Expected 1 space before "=>"; 0 found
(#25) Expected 1 space after "=>"; 0 found
(#26) Expected 1 space before "=>"; 0 found
(#26) Expected 1 space after "=>"; 0 found
(#26) Expected 1 space before "=>"; 0 found
(#26) Expected 1 space after "=>"; 0 found
(#26) Expected 1 space before "=>"; 0 found
(#26) Expected 1 space after "=>"; 0 found
(#26) Expected 1 space before "=>"; 0 found
(#26) Expected 1 space after "=>"; 0 found
mod/subcourse/db/upgrade.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#41) Inline comments must start with a capital letter, digit or 3-dots sequence
(#41) Inline comments must end in full-stops, exclamation marks, or question marks
mod/subcourse/index.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#29) Inline comments must start with a capital letter, digit or 3-dots sequence
(#29) Inline comments must end in full-stops, exclamation marks, or question marks
mod/subcourse/lang/en/subcourse.php
(#2) The opening <?php tag must be followed by exactly one newline.
mod/subcourse/lib.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#30) 80 slashes comments are not allowed; use "// Comment." instead
(#32) Inline comments must end in full-stops, exclamation marks, or question marks
(#32) 80 slashes comments are not allowed; use "// Comment." instead
(#43) Closing brace must be on a line by itself
(#44) Closing brace must be on a line by itself
(#45) Closing brace must be on a line by itself
(#46) Closing brace must be on a line by itself
(#47) Closing brace must be on a line by itself
(#48) Closing brace must be on a line by itself
(#49) Closing brace must be on a line by itself
(#50) Closing brace must be on a line by itself
(#74) Inline comments must start with a capital letter, digit or 3-dots sequence
(#75) Inline comments must end in full-stops, exclamation marks, or question marks
(#130) Inline comments must end in full-stops, exclamation marks, or question marks
(#157) 80 slashes comments are not allowed; use "// Comment." instead
(#159) Inline comments must end in full-stops, exclamation marks, or question marks
(#159) 80 slashes comments are not allowed; use "// Comment." instead
(#206) Inline comments must end in full-stops, exclamation marks, or question marks
(#206) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#209) 80 slashes comments are not allowed; use "// Comment." instead
(#211) Inline comments must end in full-stops, exclamation marks, or question marks
(#211) 80 slashes comments are not allowed; use "// Comment." instead
(#267) 80 slashes comments are not allowed; use "// Comment." instead
(#269) Inline comments must end in full-stops, exclamation marks, or question marks
(#269) 80 slashes comments are not allowed; use "// Comment." instead
(#285) Inline comments must start with a capital letter, digit or 3-dots sequence
(#285) Inline comments must end in full-stops, exclamation marks, or question marks
(#337) Inline comments must start with a capital letter, digit or 3-dots sequence
(#337) Inline comments must end in full-stops, exclamation marks, or question marks
(#346) Inline comments must start with a capital letter, digit or 3-dots sequence
(#346) Inline comments must end in full-stops, exclamation marks, or question marks
(#354) Inline comments must start with a capital letter, digit or 3-dots sequence
(#354) Inline comments must end in full-stops, exclamation marks, or question marks
(#402) Inline comments must start with a capital letter, digit or 3-dots sequence
(#402) Inline comments must end in full-stops, exclamation marks, or question marks
(#443) Inline comments must start with a capital letter, digit or 3-dots sequence
(#443) Inline comments must end in full-stops, exclamation marks, or question marks
(#446) Inline comments must start with a capital letter, digit or 3-dots sequence
(#446) Inline comments must end in full-stops, exclamation marks, or question marks
(#498) Line exceeds 132 characters; contains 134 characters
mod/subcourse/mod_form.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#45) Comment separators are not allowed to contain other chars buy hyphens (-). Found: (Genral)
(#49) Expected 1 space before "=>"; 0 found
(#49) Expected 1 space after "=>"; 0 found
(#60) Comment separators are not allowed to contain other chars buy hyphens (-). Found: (Refrncd ous)
(#146) Comment separators are not allowed to contain other chars buy hyphens (-). Found: (Comn dulestig)
(#149) Inline comments must end in full-stops, exclamation marks, or question marks
mod/subcourse/version.php
(#2) The opening <?php tag must be followed by exactly one newline.
mod/subcourse/view.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#30) Inline comments must start with a capital letter, digit or 3-dots sequence
(#31) Inline comments must end in full-stops, exclamation marks, or question marks

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

(46 errors, 16 warnings)

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

mod/subcourse/backup/moodle2/backup_subcourse_activity_task.class.php
(#2) Empty line found after PHP open tag
(#18) No one-line description found in phpdocs for file
(#29) No one-line description found in phpdocs for class backup_subcourse_activity_task
(#49) Phpdocs for function backup_subcourse_activity_task::encode_content_links has incomplete parameters list
(#29) Class backup_subcourse_activity_task does not have @copyright tag
(#29) Class backup_subcourse_activity_task does not have @license tag
mod/subcourse/backup/moodle2/backup_subcourse_stepslib.php
(#2) Empty line found after PHP open tag
(#18) No one-line description found in phpdocs for file
(#27) Class backup_subcourse_activity_structure_step does not have @copyright tag
(#27) Class backup_subcourse_activity_structure_step does not have @license tag
mod/subcourse/backup/moodle2/restore_subcourse_activity_task.class.php
(#2) Empty line found after PHP open tag
(#29) Class restore_subcourse_activity_task is not documented
(#18) No one-line description found in phpdocs for file
mod/subcourse/backup/moodle2/restore_subcourse_stepslib.php
(#2) Empty line found after PHP open tag
(#32) Function restore_subcourse_activity_structure_step::define_structure is not documented
(#42) Function restore_subcourse_activity_structure_step::process_subcourse is not documented
(#61) Function restore_subcourse_activity_structure_step::after_execute is not documented
(#18) No one-line description found in phpdocs for file
(#27) Class restore_subcourse_activity_structure_step does not have @copyright tag
(#27) Class restore_subcourse_activity_structure_step does not have @license tag
mod/subcourse/classes/event/course_module_instance_list_viewed.php
(#28) Class course_module_instance_list_viewed is not documented
(#17) No one-line description found in phpdocs for file
mod/subcourse/classes/event/course_module_viewed.php
(#28) Class course_module_viewed is not documented
(#30) Function course_module_viewed::init is not documented
(#17) No one-line description found in phpdocs for file
mod/subcourse/classes/event/subcourse_grades_fetched.php
(#28) Class subcourse_grades_fetched is not documented
(#30) Function subcourse_grades_fetched::init is not documented
(#36) Function subcourse_grades_fetched::get_name is not documented
(#40) Function subcourse_grades_fetched::get_description is not documented
(#44) Function subcourse_grades_fetched::get_url is not documented
(#48) Function subcourse_grades_fetched::get_legacy_logdata is not documented
(#17) No one-line description found in phpdocs for file
mod/subcourse/classes/task/fetch_grades.php
(#17) No one-line description found in phpdocs for file
(#30) Class fetch_grades does not have @copyright tag
(#30) Class fetch_grades does not have @license tag
mod/subcourse/db/access.php
(#2) Empty line found after PHP open tag
mod/subcourse/db/log.php
(#19) File-level phpdocs block is not found
mod/subcourse/db/tasks.php
(#17) No one-line description found in phpdocs for file
mod/subcourse/db/upgrade.php
(#2) Empty line found after PHP open tag
mod/subcourse/index.php
(#2) Empty line found after PHP open tag
mod/subcourse/lang/en/subcourse.php
(#2) Empty line found after PHP open tag
mod/subcourse/lib.php
(#2) Empty line found after PHP open tag
(#30) Found comment starting with three or more slashes
(#32) Found comment starting with three or more slashes
(#157) Found comment starting with three or more slashes
(#159) Found comment starting with three or more slashes
(#209) Found comment starting with three or more slashes
(#211) Found comment starting with three or more slashes
(#267) Found comment starting with three or more slashes
(#269) Found comment starting with three or more slashes
(#168) Phpdocs for function subcourse_user_outline has incomplete parameters list
(#183) Phpdocs for function subcourse_user_complete has incomplete parameters list
(#199) Phpdocs for function subcourse_print_recent_activity has incomplete parameters list
(#318) Not recommended phpdocs tag @access used
(#376) Not recommended phpdocs tag @access used
(#432) Not recommended phpdocs tag @access used
(#456) Not recommended phpdocs tag @access used
mod/subcourse/mod_form.php
(#2) Empty line found after PHP open tag
(#32) Class mod_subcourse_mod_form does not have @copyright tag
(#32) Class mod_subcourse_mod_form does not have @license tag
mod/subcourse/version.php
(#2) Empty line found after PHP open tag
mod/subcourse/view.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]


Mustache template problems

(0 errors, 0 warnings)

This section shows problems detected in mustache templates [More info]