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

(243 errors, 23 warnings)

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

mod/playlist/backup/moodle2/backup_playlist_activity_task.class.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#37) Line indented incorrectly; expected 0 spaces, found 4
(#52) Line indented incorrectly; expected 4 spaces, found 8
(#53) Opening brace should be on the same line as the declaration
(#54) Line indented incorrectly; expected 4 spaces, found 8
(#65) Line indented incorrectly; expected 4 spaces, found 8
(#66) Opening brace should be on the same line as the declaration
(#68) Line indented incorrectly; expected 4 spaces, found 8
(#88) Line indented incorrectly; expected 4 spaces, found 8
(#89) Opening brace should be on the same line as the declaration
(#91) Line indented incorrectly; expected 4 spaces, found 8
(#93) Line indented incorrectly; expected 0 spaces, found 4
mod/playlist/backup/moodle2/backup_playlist_stepslib.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#35) Line indented incorrectly; expected 0 spaces, found 4
(#38) Line indented incorrectly; expected 4 spaces, found 8
(#39) Opening brace should be on the same line as the declaration
(#41) Inline comments must end in full-stops, exclamation marks, or question marks
(#44) Inline comments must end in full-stops, exclamation marks, or question marks
(#48) Inline comments must end in full-stops, exclamation marks, or question marks
(#51) Line indented incorrectly; expected 4 spaces, found 8
(#53) Line indented incorrectly; expected 0 spaces, found 4
mod/playlist/backup/moodle2/restore_playlist_activity_task.class.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#37) Line indented incorrectly; expected 0 spaces, found 4
(#43) Line indented incorrectly; expected 4 spaces, found 8
(#44) Opening brace should be on the same line as the declaration
(#45) Line indented incorrectly; expected 4 spaces, found 8
(#52) Line indented incorrectly; expected 4 spaces, found 8
(#53) Opening brace should be on the same line as the declaration
(#55) Line indented incorrectly; expected 4 spaces, found 8
(#63) Line indented incorrectly; expected 4 spaces, found 8
(#64) Opening brace should be on the same line as the declaration
(#66) Line indented incorrectly; expected 4 spaces, found 8
(#74) Line indented incorrectly; expected 4 spaces, found 8
(#75) Opening brace should be on the same line as the declaration
(#77) Line indented incorrectly; expected 4 spaces, found 8
(#87) Line indented incorrectly; expected 4 spaces, found 8
(#88) Opening brace should be on the same line as the declaration
(#96) Line indented incorrectly; expected 4 spaces, found 8
(#111) Line indented incorrectly; expected 4 spaces, found 8
(#112) Opening brace should be on the same line as the declaration
(#118) Line indented incorrectly; expected 4 spaces, found 8
(#120) Line indented incorrectly; expected 0 spaces, found 4
mod/playlist/backup/moodle2/restore_playlist_stepslib.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#35) Line indented incorrectly; expected 0 spaces, found 4
(#38) Line indented incorrectly; expected 4 spaces, found 8
(#39) Opening brace should be on the same line as the declaration
(#47) Line indented incorrectly; expected 4 spaces, found 8
(#51) Line indented incorrectly; expected 4 spaces, found 8
(#52) Opening brace should be on the same line as the declaration
(#54) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#64) Line indented incorrectly; expected 4 spaces, found 8
(#68) Line indented incorrectly; expected 4 spaces, found 8
(#69) Opening brace should be on the same line as the declaration
(#70) Line indented incorrectly; expected 4 spaces, found 8
(#72) Line indented incorrectly; expected 0 spaces, found 4
mod/playlist/db/access.php
(#2) The opening <?php tag must be followed by exactly one newline.
mod/playlist/db/log.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#36) Expected 1 space before "=>"; 0 found
(#36) Expected 1 space after "=>"; 0 found
(#36) Expected 1 space before "=>"; 0 found
(#36) Expected 1 space after "=>"; 0 found
(#36) Expected 1 space before "=>"; 0 found
(#36) Expected 1 space after "=>"; 0 found
(#36) Expected 1 space before "=>"; 0 found
(#36) Expected 1 space after "=>"; 0 found
(#37) Expected 1 space before "=>"; 0 found
(#37) Expected 1 space after "=>"; 0 found
(#37) Expected 1 space before "=>"; 0 found
(#37) Expected 1 space after "=>"; 0 found
(#37) Expected 1 space before "=>"; 0 found
(#37) Expected 1 space after "=>"; 0 found
(#37) Expected 1 space before "=>"; 0 found
(#37) Expected 1 space after "=>"; 0 found
(#38) Expected 1 space before "=>"; 0 found
(#38) Expected 1 space after "=>"; 0 found
(#38) Expected 1 space before "=>"; 0 found
(#38) Expected 1 space after "=>"; 0 found
(#38) Expected 1 space before "=>"; 0 found
(#38) Expected 1 space after "=>"; 0 found
(#38) Expected 1 space before "=>"; 0 found
(#38) Expected 1 space after "=>"; 0 found
(#39) Expected 1 space before "=>"; 0 found
(#39) Expected 1 space after "=>"; 0 found
(#39) Expected 1 space before "=>"; 0 found
(#39) Expected 1 space after "=>"; 0 found
(#39) Expected 1 space before "=>"; 0 found
(#39) Expected 1 space after "=>"; 0 found
(#39) Expected 1 space before "=>"; 0 found
(#39) Expected 1 space after "=>"; 0 found
(#40) Expected 1 space before "=>"; 0 found
(#40) Expected 1 space after "=>"; 0 found
(#40) Expected 1 space before "=>"; 0 found
(#40) Expected 1 space after "=>"; 0 found
(#40) Commas (,) must be followed by white space.
(#40) Expected 1 space before "=>"; 0 found
(#40) Expected 1 space after "=>"; 0 found
(#40) Expected 1 space before "=>"; 0 found
(#40) Expected 1 space after "=>"; 0 found
mod/playlist/db/upgrade.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#35) Line indented incorrectly; expected 0 spaces, found 4
(#36) Opening brace should be on the same line as the declaration
(#38) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#44) Line indented incorrectly; expected 0 spaces, found 4
mod/playlist/index.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
(#37) Inline comments must end in full-stops, exclamation marks, or question marks
(#44) Variable "lbl_playlists" must not contain underscores.
(#45) Variable "lbl_name" must not contain underscores.
(#46) Variable "lbl_intro" must not contain underscores.
(#53) Variable "lbl_playlists" must not contain underscores.
(#57) Line indented incorrectly; expected 0 spaces, found 4
(#58) Inline comments must start with a capital letter, digit or 3-dots sequence
(#58) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) Variable "lbl_playlists" must not contain underscores.
(#61) Line indented incorrectly; expected 0 spaces, found 4
(#69) Line indented incorrectly; expected 0 spaces, found 4
(#70) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) Variable "lbl_name" must not contain underscores.
(#74) Line indented incorrectly; expected 0 spaces, found 4
(#75) Inline comments must end in full-stops, exclamation marks, or question marks
(#76) Variable "lbl_name" must not contain underscores.
(#78) Line indented incorrectly; expected 0 spaces, found 4
(#82) Variable "last_section" must not contain underscores.
(#83) Line indented incorrectly; expected 0 spaces, found 4
(#87) Line indented incorrectly; expected 4 spaces, found 8
(#89) Inline comments must end in full-stops, exclamation marks, or question marks
(#90) Variable "section_label" must not contain underscores.
(#91) Line indented incorrectly; expected 8 spaces, found 12
(#91) Variable "last_section" must not contain underscores.
(#92) Variable "section_label" must not contain underscores.
(#93) Variable "last_section" must not contain underscores.
(#94) Line indented incorrectly; expected 8 spaces, found 12
(#96) Variable "section_label" must not contain underscores.
(#98) Line indented incorrectly; expected 4 spaces, found 8
(#100) Inline comments must end in full-stops, exclamation marks, or question marks
(#103) Line indented incorrectly; expected 4 spaces, found 8
(#105) Line indented incorrectly; expected 0 spaces, found 4
(#105) This comment is 50% valid code; is this commented out code?
(#109) Variable "lbl_playlists" must not contain underscores.
mod/playlist/lang/en/playlist.php
(#2) The opening <?php tag must be followed by exactly one newline.
mod/playlist/lib.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#39) Line indented incorrectly; expected 0 spaces, found 4
(#40) Opening brace should be on the same line as the declaration
(#42) Line indented incorrectly; expected 4 spaces, found 8
(#44) Line indented incorrectly; expected 8 spaces, found 12
(#44) Closing brace must be on a line by itself
(#45) Line indented incorrectly; expected 8 spaces, found 12
(#45) Closing brace must be on a line by itself
(#46) Line indented incorrectly; expected 8 spaces, found 12
(#46) Closing brace must be on a line by itself
(#47) Line indented incorrectly; expected 8 spaces, found 12
(#47) Closing brace must be on a line by itself
(#48) Line indented incorrectly; expected 8 spaces, found 12
(#48) Closing brace must be on a line by itself
(#49) Line indented incorrectly; expected 8 spaces, found 12
(#49) Closing brace must be on a line by itself
(#50) Line indented incorrectly; expected 8 spaces, found 12
(#50) Closing brace must be on a line by itself
(#51) Line indented incorrectly; expected 8 spaces, found 12
(#51) Closing brace must be on a line by itself
(#52) Line indented incorrectly; expected 8 spaces, found 12
(#52) Closing brace must be on a line by itself
(#53) Line indented incorrectly; expected 8 spaces, found 12
(#53) Closing brace must be on a line by itself
(#54) Line indented incorrectly; expected 8 spaces, found 12
(#54) Closing brace must be on a line by itself
(#56) Line indented incorrectly; expected 8 spaces, found 12
(#56) Closing brace must be on a line by itself
(#58) Line indented incorrectly; expected 4 spaces, found 8
(#60) Line indented incorrectly; expected 0 spaces, found 4
(#64) Line indented incorrectly; expected 0 spaces, found 4
(#65) Opening brace should be on the same line as the declaration
(#67) Line indented incorrectly; expected 0 spaces, found 4
(#71) Line indented incorrectly; expected 0 spaces, found 4
(#72) Opening brace should be on the same line as the declaration
(#74) Line indented incorrectly; expected 0 spaces, found 4
(#78) Line indented incorrectly; expected 0 spaces, found 4
(#79) Opening brace should be on the same line as the declaration
(#81) Line indented incorrectly; expected 0 spaces, found 4
(#85) Line indented incorrectly; expected 0 spaces, found 4
(#86) Opening brace should be on the same line as the declaration
(#88) Line indented incorrectly; expected 0 spaces, found 4
(#99) Line indented incorrectly; expected 0 spaces, found 4
(#100) Opening brace should be on the same line as the declaration
(#102) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#107) Line indented incorrectly; expected 0 spaces, found 4
(#118) Line indented incorrectly; expected 0 spaces, found 4
(#119) Opening brace should be on the same line as the declaration
(#121) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#127) Line indented incorrectly; expected 0 spaces, found 4
(#138) Line indented incorrectly; expected 0 spaces, found 4
(#139) Opening brace should be on the same line as the declaration
(#141) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#145) Line indented incorrectly; expected 0 spaces, found 4
(#153) Line indented incorrectly; expected 0 spaces, found 4
(#153) Variable "list_text" must not contain underscores.
(#154) Opening brace should be on the same line as the declaration
(#157) Variable "list_text" must not contain underscores.
(#158) Line indented incorrectly; expected 4 spaces, found 8
(#159) Inline control structures are not allowed
(#163) Inline control structures are not allowed
(#169) Line indented incorrectly; expected 4 spaces, found 8
(#169) This comment is 50% valid code; is this commented out code?
(#173) Line indented incorrectly; expected 0 spaces, found 4
mod/playlist/mod_form.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#33) "require_once" must be immediately followed by an open parenthesis
(#37) Line indented incorrectly; expected 0 spaces, found 4
(#40) Line indented incorrectly; expected 4 spaces, found 8
(#40) Visibility must be declared on method "definition"
(#41) Opening brace should be on the same line as the declaration
(#46) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#50) Expected 1 space before "=>"; 0 found
(#50) Expected 1 space after "=>"; 0 found
(#54) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#62) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#67) Inline comments must end in full-stops, exclamation marks, or question marks
(#69) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#75) Line indented incorrectly; expected 4 spaces, found 8
(#83) Line indented incorrectly; expected 4 spaces, found 8
(#83) Visibility must be declared on method "data_preprocessing"
(#83) Variable "default_values" must not contain underscores.
(#84) Opening brace should be on the same line as the declaration
(#86) Variable "default_values" must not contain underscores.
(#87) Variable "default_values" must not contain underscores.
(#89) Line indented incorrectly; expected 4 spaces, found 8
(#97) Line indented incorrectly; expected 4 spaces, found 8
(#97) Visibility must be declared on method "validation"
(#98) Opening brace should be on the same line as the declaration
(#100) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#102) Inline comments must end in full-stops, exclamation marks, or question marks
(#104) Line indented incorrectly; expected 8 spaces, found 12
(#106) Line indented incorrectly; expected 8 spaces, found 12
(#108) Inline comments must end in full-stops, exclamation marks, or question marks
(#110) Variable "playlist_rec" must not contain underscores.
(#111) Line indented incorrectly; expected 8 spaces, found 12
(#111) Variable "playlist_rec" must not contain underscores.
(#111) Variable "playlist_rec" must not contain underscores.
(#114) Line indented incorrectly; expected 8 spaces, found 12
(#117) Line indented incorrectly; expected 8 spaces, found 12
(#118) Inline control structures are not allowed
(#121) Inline control structures are not allowed
(#123) Line indented incorrectly; expected 12 spaces, found 16
(#126) Line indented incorrectly; expected 12 spaces, found 16
(#129) Inline comments must end in full-stops, exclamation marks, or question marks
(#132) Line indented incorrectly; expected 12 spaces, found 16
(#135) Line indented incorrectly; expected 12 spaces, found 16
(#137) Line indented incorrectly; expected 8 spaces, found 12
(#137) This comment is 50% valid code; is this commented out code?
(#139) Inline comments must end in full-stops, exclamation marks, or question marks
(#142) Line indented incorrectly; expected 4 spaces, found 8
(#144) Line indented incorrectly; expected 0 spaces, found 4
mod/playlist/version.php
(#2) The opening <?php tag must be followed by exactly one newline.
mod/playlist/view.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
(#36) Commas (,) must be followed by white space.
(#36) Commas (,) must be followed by white space.
(#38) Inline comments must end in full-stops, exclamation marks, or question marks
(#42) Line indented incorrectly; expected 0 spaces, found 4
(#44) Line indented incorrectly; expected 0 spaces, found 4
(#46) Inline comments must end in full-stops, exclamation marks, or question marks
(#49) Inline comments must end in full-stops, exclamation marks, or question marks
(#51) Line indented incorrectly; expected 0 spaces, found 4
(#53) Line indented incorrectly; expected 0 spaces, found 4
(#64) Line indented incorrectly; expected 0 spaces, found 4
(#67) Line indented incorrectly; expected 0 spaces, found 4
(#71) Line exceeds maximum limit of 180 characters; contains 193 characters

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

(34 errors, 13 warnings)

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

mod/playlist/backup/moodle2/backup_playlist_activity_task.class.php
(#2) Empty line found after PHP open tag
(#37) Class backup_playlist_activity_task is not documented
(#27) Package mod is not valid
mod/playlist/backup/moodle2/backup_playlist_stepslib.php
(#2) Empty line found after PHP open tag
(#35) Class backup_playlist_activity_structure_step is not documented
(#38) Function backup_playlist_activity_structure_step::define_structure is not documented
(#27) Package mod is not valid
mod/playlist/backup/moodle2/restore_playlist_activity_task.class.php
(#2) Empty line found after PHP open tag
(#37) Class restore_playlist_activity_task is not documented
(#27) Package mod is not valid
mod/playlist/backup/moodle2/restore_playlist_stepslib.php
(#2) Empty line found after PHP open tag
(#35) Class restore_playlist_activity_structure_step is not documented
(#38) Function restore_playlist_activity_structure_step::define_structure is not documented
(#51) Function restore_playlist_activity_structure_step::process_playlist is not documented
(#68) Function restore_playlist_activity_structure_step::after_execute is not documented
(#27) Package mod is not valid
mod/playlist/db/access.php
(#2) Empty line found after PHP open tag
(#27) Package mod is not valid
mod/playlist/db/log.php
(#2) Empty line found after PHP open tag
(#27) Package mod is not valid
mod/playlist/db/upgrade.php
(#2) Empty line found after PHP open tag
(#35) Function xmldb_playlist_upgrade is not documented
(#27) Package mod is not valid
mod/playlist/index.php
(#2) Empty line found after PHP open tag
(#27) Package mod is not valid
mod/playlist/lang/en/playlist.php
(#2) Empty line found after PHP open tag
(#27) Package mod is not valid
mod/playlist/lib.php
(#2) Empty line found after PHP open tag
(#64) Function playlist_page_type_list is not documented
(#71) Function playlist_get_view_actions is not documented
(#78) Function playlist_get_post_actions is not documented
(#85) Function playlist_reset_userdata is not documented
(#35) There is no description in phpdocs for function playlist_supports
(#95) Phpdocs for function playlist_add_instance has incomplete parameters list
(#114) Phpdocs for function playlist_update_instance has incomplete parameters list
(#149) Phpdocs for function playlist_clean_list has incomplete parameters list
(#27) Package mod is not valid
mod/playlist/mod_form.php
(#2) Empty line found after PHP open tag
(#37) Class mod_playlist_mod_form is not documented
(#40) Function mod_playlist_mod_form::definition is not documented
(#79) Phpdocs for function mod_playlist_mod_form::data_preprocessing has incomplete parameters list
(#93) Phpdocs for function mod_playlist_mod_form::validation has incomplete parameters list
(#27) Package mod is not valid
mod/playlist/version.php
(#2) Empty line found after PHP open tag
(#27) Package mod is not valid
mod/playlist/view.php
(#2) Empty line found after PHP open tag
(#27) Package mod is not valid

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]