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

(257 errors, 292 warnings)

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

mod/certificate/backup/moodle2/backup_certificate_activity_task.class.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#26) Inline comments must end in full-stops, exclamation marks, or question marks
(#38) Inline comments must end in full-stops, exclamation marks, or question marks
(#45) Inline comments must end in full-stops, exclamation marks, or question marks
(#56) Commas (,) must be followed by white space.
(#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/certificate/backup/moodle2/backup_certificate_settingslib.php
(#1) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#2) The opening <?php tag must be followed by exactly one newline.
(#27) Inline comments must end in full-stops, exclamation marks, or question marks
mod/certificate/backup/moodle2/backup_certificate_stepslib.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#32) Expected MOODLE_INTERNAL check or config.php inclusion
(#36) Inline comments must end in full-stops, exclamation marks, or question marks
(#39) Inline comments must end in full-stops, exclamation marks, or question marks
(#52) Inline comments must end in full-stops, exclamation marks, or question marks
(#56) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) Inline comments must end in full-stops, exclamation marks, or question marks
(#68) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
mod/certificate/backup/moodle2/restore_certificate_activity_task.class.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#27) Inline comments must end in full-stops, exclamation marks, or question marks
(#39) Inline comments must end in full-stops, exclamation marks, or question marks
(#46) Inline comments must end in full-stops, exclamation marks, or question marks
(#107) Inline comments must end in full-stops, exclamation marks, or question marks
(#121) Inline comments must end in full-stops, exclamation marks, or question marks
(#127) Expected 1 space before "=>"; 0 found
(#127) Expected 1 space after "=>"; 0 found
(#128) 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
(#131) Line exceeds 132 characters; contains 136 characters
(#137) Line exceeds 132 characters; contains 137 characters
(#143) Inline comments must end in full-stops, exclamation marks, or question marks
mod/certificate/backup/moodle2/restore_certificate_stepslib.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#32) Expected MOODLE_INTERNAL check or config.php inclusion
(#45) Inline comments must end in full-stops, exclamation marks, or question marks
(#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
(#60) Inline comments must start with a capital letter, digit or 3-dots sequence
(#60) Inline comments must end in full-stops, exclamation marks, or question marks
(#81) Inline comments must end in full-stops, exclamation marks, or question marks
mod/certificate/classes/admin_setting_font.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#32) Line exceeds 132 characters; contains 145 characters
mod/certificate/classes/admin_setting_upload.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#38) Visibility must be declared on method "output_html"
mod/certificate/classes/event/course_module_instance_list_viewed.php
(#2) The opening <?php tag must be followed by exactly one newline.
mod/certificate/classes/event/course_module_viewed.php
(#2) The opening <?php tag must be followed by exactly one newline.
mod/certificate/db/access.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
mod/certificate/db/log.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#29) Expected 1 space before "=>"; 0 found
(#29) Expected 1 space after "=>"; 0 found
(#29) Expected 1 space before "=>"; 0 found
(#29) Expected 1 space after "=>"; 0 found
(#29) Expected 1 space before "=>"; 0 found
(#29) Expected 1 space after "=>"; 0 found
(#29) Expected 1 space before "=>"; 0 found
(#29) Expected 1 space after "=>"; 0 found
(#30) Expected 1 space before "=>"; 0 found
(#30) Expected 1 space after "=>"; 0 found
(#30) Expected 1 space before "=>"; 0 found
(#30) Expected 1 space after "=>"; 0 found
(#30) Expected 1 space before "=>"; 0 found
(#30) Expected 1 space after "=>"; 0 found
(#30) Expected 1 space before "=>"; 0 found
(#30) Expected 1 space after "=>"; 0 found
(#31) Expected 1 space before "=>"; 0 found
(#31) Expected 1 space after "=>"; 0 found
(#31) Expected 1 space before "=>"; 0 found
(#31) Expected 1 space after "=>"; 0 found
(#31) Expected 1 space before "=>"; 0 found
(#31) Expected 1 space after "=>"; 0 found
(#31) Expected 1 space before "=>"; 0 found
(#31) Expected 1 space after "=>"; 0 found
(#32) Expected 1 space before "=>"; 0 found
(#32) Expected 1 space after "=>"; 0 found
(#32) Expected 1 space before "=>"; 0 found
(#32) Expected 1 space after "=>"; 0 found
(#32) Expected 1 space before "=>"; 0 found
(#32) Expected 1 space after "=>"; 0 found
(#32) Expected 1 space before "=>"; 0 found
(#32) Expected 1 space after "=>"; 0 found
mod/certificate/db/upgrade.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#26) Expected MOODLE_INTERNAL check or config.php inclusion
(#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
(#33) 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
(#66) Inline comments must end in full-stops, exclamation marks, or question marks
(#75) Inline comments must end in full-stops, exclamation marks, or question marks
(#93) Inline comments must end in full-stops, exclamation marks, or question marks
(#98) Inline comments must end in full-stops, exclamation marks, or question marks
(#113) Inline comments must end in full-stops, exclamation marks, or question marks
(#118) Inline comments must end in full-stops, exclamation marks, or question marks
(#126) Inline comments must end in full-stops, exclamation marks, or question marks
(#131) Inline comments must end in full-stops, exclamation marks, or question marks
(#139) Inline comments must end in full-stops, exclamation marks, or question marks
(#143) Inline comments must start with a capital letter, digit or 3-dots sequence
(#143) Inline comments must end in full-stops, exclamation marks, or question marks
(#143) No space found before comment text; expected "// ===== 2.0 or older upgrade line ======//" but found "//===== 2.0 or older upgrade line ======//"
(#147) Inline comments must end in full-stops, exclamation marks, or question marks
(#164) Inline comments must end in full-stops, exclamation marks, or question marks
(#172) Inline comments must end in full-stops, exclamation marks, or question marks
(#180) Inline comments must start with a capital letter, digit or 3-dots sequence
(#180) Inline comments must end in full-stops, exclamation marks, or question marks
(#186) Inline comments must end in full-stops, exclamation marks, or question marks
(#190) Inline comments must end in full-stops, exclamation marks, or question marks
(#195) Inline comments must end in full-stops, exclamation marks, or question marks
(#210) Line exceeds 132 characters; contains 133 characters
(#212) Inline comments must end in full-stops, exclamation marks, or question marks
(#221) Inline comments must end in full-stops, exclamation marks, or question marks
(#224) Inline comments must end in full-stops, exclamation marks, or question marks
(#228) Inline comments must end in full-stops, exclamation marks, or question marks
(#232) Inline comments must end in full-stops, exclamation marks, or question marks
(#236) Inline comments must end in full-stops, exclamation marks, or question marks
(#239) Variable "condition_info" must not contain underscores.
(#240) Variable "condition_info" must not contain underscores.
(#244) Inline comments must end in full-stops, exclamation marks, or question marks
(#254) Inline comments must end in full-stops, exclamation marks, or question marks
(#258) Inline comments must end in full-stops, exclamation marks, or question marks
(#262) Inline comments must end in full-stops, exclamation marks, or question marks
(#264) Inline comments must end in full-stops, exclamation marks, or question marks
(#277) Expected 1 space before "=>"; 0 found
(#277) Expected 1 space after "=>"; 0 found
(#277) Expected 1 space before "=>"; 0 found
(#277) Expected 1 space after "=>"; 0 found
(#278) Inline comments must end in full-stops, exclamation marks, or question marks
(#281) Variable "condition_info" must not contain underscores.
(#282) Variable "condition_info" must not contain underscores.
(#286) Inline comments must end in full-stops, exclamation marks, or question marks
(#291) Inline comments must end in full-stops, exclamation marks, or question marks
(#303) Inline comments must end in full-stops, exclamation marks, or question marks
(#309) Inline comments must end in full-stops, exclamation marks, or question marks
(#317) Inline comments must end in full-stops, exclamation marks, or question marks
(#322) Inline comments must end in full-stops, exclamation marks, or question marks
(#328) Inline comments must end in full-stops, exclamation marks, or question marks
(#333) Inline comments must end in full-stops, exclamation marks, or question marks
(#347) Inline comments must end in full-stops, exclamation marks, or question marks
(#359) Inline comments must end in full-stops, exclamation marks, or question marks
(#362) Inline comments must end in full-stops, exclamation marks, or question marks
(#384) Inline comments must end in full-stops, exclamation marks, or question marks
(#389) Inline comments must end in full-stops, exclamation marks, or question marks
(#398) Inline comments must end in full-stops, exclamation marks, or question marks
(#401) Inline comments must end in full-stops, exclamation marks, or question marks
(#404) Inline comments must end in full-stops, exclamation marks, or question marks
(#406) Inline comments must end in full-stops, exclamation marks, or question marks
(#414) Inline comments must end in full-stops, exclamation marks, or question marks
(#419) Inline comments must end in full-stops, exclamation marks, or question marks
(#426) Inline comments must end in full-stops, exclamation marks, or question marks
(#439) Inline comments must end in full-stops, exclamation marks, or question marks
(#455) Inline comments must end in full-stops, exclamation marks, or question marks
(#467) Inline comments must end in full-stops, exclamation marks, or question marks
(#472) Inline comments must end in full-stops, exclamation marks, or question marks
mod/certificate/deprecatedlib.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#34) Expected MOODLE_INTERNAL check or config.php inclusion
(#40) 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
(#70) Expected 1 space after closing parenthesis; found 0
(#77) Variable "course_item" must not contain underscores.
(#78) Expected 1 space before "=>"; 0 found
(#78) Expected 1 space after "=>"; 0 found
(#78) Variable "course_item" must not contain underscores.
(#78) Expected 1 space before "=>"; 0 found
(#78) Expected 1 space after "=>"; 0 found
(#79) Variable "course_item" must not contain underscores.
(#81) Variable "course_item" must not contain underscores.
(#81) Expected 1 space before "="; 0 found
(#81) Expected 1 space after "="; 0 found
(#81) Line exceeds 132 characters; contains 133 characters
(#82) Variable "course_item" must not contain underscores.
(#82) Expected 1 space before "="; 0 found
(#82) Expected 1 space after "="; 0 found
(#82) Line exceeds 132 characters; contains 143 characters
(#83) Variable "course_item" must not contain underscores.
(#83) Expected 1 space before "="; 0 found
(#83) Expected 1 space after "="; 0 found
(#83) Line exceeds 132 characters; contains 135 characters
(#99) Expected 1 space after closing parenthesis; found 0
(#111) Expected 1 space(s) before asterisk; 0 found
(#112) Expected 1 space(s) before asterisk; 0 found
(#113) Expected 1 space(s) before asterisk; 0 found
(#114) Expected 1 space(s) before asterisk; 0 found
(#115) Expected 1 space(s) before asterisk; 0 found
(#116) Expected 1 space(s) before asterisk; 0 found
(#117) Expected 1 space(s) before asterisk; 0 found
mod/certificate/index.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#29) Inline comments must end in full-stops, exclamation marks, or question marks
(#31) Inline comments must end in full-stops, exclamation marks, or question marks
(#32) Expected 1 space before "=>"; 0 found
(#36) Inline comments must end in full-stops, exclamation marks, or question marks
(#39) 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
(#50) Inline comments must end in full-stops, exclamation marks, or question marks
(#52) Expected 1 space before "=>"; 0 found
(#52) Expected 1 space after "=>"; 0 found
(#57) Inline comments must end in full-stops, exclamation marks, or question marks
(#64) Inline comments must end in full-stops, exclamation marks, or question marks
(#84) Inline comments must end in full-stops, exclamation marks, or question marks
(#88) Inline comments must end in full-stops, exclamation marks, or question marks
(#104) Inline comments must end in full-stops, exclamation marks, or question marks
mod/certificate/lang/en/certificate.php
(#2) The opening <?php tag must be followed by exactly one newline.
mod/certificate/lib.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#76) Inline comments must end in full-stops, exclamation marks, or question marks
(#87) Inline comments must end in full-stops, exclamation marks, or question marks
(#131) Inline comments must end in full-stops, exclamation marks, or question marks
(#246) Closing brace must be on a line by itself
(#247) Closing brace must be on a line by itself
(#248) Closing brace must be on a line by itself
(#249) Closing brace must be on a line by itself
(#250) Closing brace must be on a line by itself
(#251) Closing brace must be on a line by itself
(#253) Closing brace must be on a line by itself
(#301) Inline comments must start with a capital letter, digit or 3-dots sequence
mod/certificate/locallib.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#70) Inline comments must end in full-stops, exclamation marks, or question marks
(#74) Inline comments must start with a capital letter, digit or 3-dots sequence
(#74) Inline comments must end in full-stops, exclamation marks, or question marks
(#82) Inline comments must start with a capital letter, digit or 3-dots sequence
(#82) Inline comments must end in full-stops, exclamation marks, or question marks
(#85) Inline comments must start with a capital letter, digit or 3-dots sequence
(#85) Inline comments must end in full-stops, exclamation marks, or question marks
(#87) Inline comments must start with a capital letter, digit or 3-dots sequence
(#87) Inline comments must end in full-stops, exclamation marks, or question marks
(#87) No space found before comment text; expected "// ugly hack" but found "//ugly hack"
(#95) Inline comments must start with a capital letter, digit or 3-dots sequence
(#95) Inline comments must end in full-stops, exclamation marks, or question marks
(#116) Inline comments must end in full-stops, exclamation marks, or question marks
(#127) Commas (,) must be followed by white space.
(#128) Commas (,) must be followed by white space.
(#222) Inline comments must end in full-stops, exclamation marks, or question marks
(#236) Inline comments must end in full-stops, exclamation marks, or question marks
(#249) Inline comments must end in full-stops, exclamation marks, or question marks
(#292) Inline comments must end in full-stops, exclamation marks, or question marks
(#303) Inline comments must end in full-stops, exclamation marks, or question marks
(#336) Line exceeds 132 characters; contains 137 characters
(#338) Line exceeds 132 characters; contains 159 characters
(#361) Inline comments must end in full-stops, exclamation marks, or question marks
(#366) Inline comments must end in full-stops, exclamation marks, or question marks
(#371) Expected 1 space after "="; 2 found
(#374) Inline comments must end in full-stops, exclamation marks, or question marks
(#447) Inline comments must end in full-stops, exclamation marks, or question marks
(#496) Inline comments must end in full-stops, exclamation marks, or question marks
(#508) Inline comments must end in full-stops, exclamation marks, or question marks
(#512) Inline comments must start with a capital letter, digit or 3-dots sequence
(#512) Inline comments must end in full-stops, exclamation marks, or question marks
(#573) Inline comments must end in full-stops, exclamation marks, or question marks
(#586) Inline comments must end in full-stops, exclamation marks, or question marks
(#608) Inline comments must end in full-stops, exclamation marks, or question marks
(#615) Inline comments must start with a capital letter, digit or 3-dots sequence
(#615) Inline comments must end in full-stops, exclamation marks, or question marks
(#637) Variable "grade_items" must not contain underscores.
(#638) Variable "mod_item" must not contain underscores.
(#639) Variable "mod_item" must not contain underscores.
(#640) Expected "if (...) {\n"; found "if (...){\n"
(#684) Variable "grade_category_options" must not contain underscores.
(#686) Variable "grade_categories" must not contain underscores.
(#687) Variable "grade_categories" must not contain underscores.
(#687) Variable "grade_category" must not contain underscores.
(#688) Variable "grade_category" must not contain underscores.
(#689) Variable "grade_category_options" must not contain underscores.
(#689) Variable "grade_category" must not contain underscores.
(#689) Variable "grade_category" must not contain underscores.
(#694) Variable "grade_category_options" must not contain underscores.
(#705) Inline comments must start with a capital letter, digit or 3-dots sequence
(#705) Inline comments must end in full-stops, exclamation marks, or question marks
(#706) Variable "grade_seq" must not contain underscores.
(#707) Variable "grade_items" must not contain underscores.
(#707) Variable "grade_seq" must not contain underscores.
(#708) Inline comments must start with a capital letter, digit or 3-dots sequence
(#708) Inline comments must end in full-stops, exclamation marks, or question marks
(#710) Variable "grade_items" must not contain underscores.
(#710) Variable "grade_item" must not contain underscores.
(#711) Expected "if (...) {\n"; found "if (...){\n"
(#711) Variable "grade_item" must not contain underscores.
(#712) Variable "grade_item" must not contain underscores.
(#713) Variable "grade_item" must not contain underscores.
(#713) Variable "grade_item" must not contain underscores.
(#777) Inline comments must end in full-stops, exclamation marks, or question marks
(#783) Inline comments must end in full-stops, exclamation marks, or question marks
(#786) Inline comments must end in full-stops, exclamation marks, or question marks
(#809) Variable "grade_item" must not contain underscores.
(#810) Variable "grade_item" must not contain underscores.
(#812) Variable "grade_item" must not contain underscores.
(#854) Inline comments must end in full-stops, exclamation marks, or question marks
(#858) Inline comments must end in full-stops, exclamation marks, or question marks
(#903) Inline comments must end in full-stops, exclamation marks, or question marks
(#904) Closing brace must be on a line by itself
(#905) Closing brace must be on a line by itself
(#906) Closing brace must be on a line by itself
(#930) Variable "course_item" must not contain underscores.
(#937) Variable "course_item" must not contain underscores.
(#938) Variable "course_item" must not contain underscores.
(#940) Variable "course_item" must not contain underscores.
(#940) Line exceeds 132 characters; contains 143 characters
(#941) Variable "course_item" must not contain underscores.
(#941) Line exceeds 132 characters; contains 153 characters
(#942) Variable "course_item" must not contain underscores.
(#942) Line exceeds 132 characters; contains 145 characters
(#954) Inline comments must end in full-stops, exclamation marks, or question marks
(#973) Variable "category_item" must not contain underscores.
(#974) Variable "category_item" must not contain underscores.
(#976) Variable "category_item" must not contain underscores.
(#978) Variable "category_grade" must not contain underscores.
(#979) Variable "category_grade" must not contain underscores.
(#979) Variable "category_item" must not contain underscores.
(#979) Line exceeds 132 characters; contains 144 characters
(#980) Variable "category_grade" must not contain underscores.
(#980) Variable "category_item" must not contain underscores.
(#980) Line exceeds 132 characters; contains 154 characters
(#981) Variable "category_grade" must not contain underscores.
(#981) Variable "category_item" must not contain underscores.
(#981) Line exceeds 132 characters; contains 146 characters
(#984) Variable "category_grade" must not contain underscores.
(#986) Variable "category_grade" must not contain underscores.
(#988) Variable "category_grade" must not contain underscores.
(#1009) Variable "grade_item" must not contain underscores.
(#1011) Variable "grade_item" must not contain underscores.
(#1012) Variable "grade_item" must not contain underscores.
(#1013) Variable "grade_item" must not contain underscores.
(#1065) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1065) Inline comments must end in full-stops, exclamation marks, or question marks
(#1068) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1068) Inline comments must end in full-stops, exclamation marks, or question marks
(#1071) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1071) Inline comments must end in full-stops, exclamation marks, or question marks
(#1074) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1074) Inline comments must end in full-stops, exclamation marks, or question marks
(#1078) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1078) Inline comments must end in full-stops, exclamation marks, or question marks
(#1081) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1081) Inline comments must end in full-stops, exclamation marks, or question marks
(#1084) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1084) Inline comments must end in full-stops, exclamation marks, or question marks
(#1089) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1089) Inline comments must end in full-stops, exclamation marks, or question marks
(#1092) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1092) Inline comments must end in full-stops, exclamation marks, or question marks
(#1095) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1095) Inline comments must end in full-stops, exclamation marks, or question marks
(#1111) Expected "if (...) {\n"; found "if (...) {\n"
(#1112) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1112) Inline comments must end in full-stops, exclamation marks, or question marks
(#1112) No space found before comment text; expected "// black" but found "//black"
(#1114) Expected "if (...) {\n"; found "if (...) {\n"
(#1115) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1115) Inline comments must end in full-stops, exclamation marks, or question marks
(#1115) No space found before comment text; expected "// brown" but found "//brown"
(#1117) Expected "if (...) {\n"; found "if (...) {\n"
(#1118) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1118) Inline comments must end in full-stops, exclamation marks, or question marks
(#1118) No space found before comment text; expected "// blue" but found "//blue"
(#1120) Expected "if (...) {\n"; found "if (...) {\n"
(#1121) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1121) Inline comments must end in full-stops, exclamation marks, or question marks
(#1121) No space found before comment text; expected "// green" but found "//green"
(#1125) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1125) Inline comments must end in full-stops, exclamation marks, or question marks
(#1128) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1128) Inline comments must end in full-stops, exclamation marks, or question marks
(#1131) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1131) Inline comments must end in full-stops, exclamation marks, or question marks
(#1136) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1136) Inline comments must end in full-stops, exclamation marks, or question marks
(#1139) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1139) Inline comments must end in full-stops, exclamation marks, or question marks
(#1142) Inline comments must start with a capital letter, digit or 3-dots sequence
(#1142) Inline comments must end in full-stops, exclamation marks, or question marks
(#1186) Inline comments must end in full-stops, exclamation marks, or question marks
(#1232) Inline comments must end in full-stops, exclamation marks, or question marks
(#1235) Inline comments must end in full-stops, exclamation marks, or question marks
mod/certificate/mod_form.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#19) Expected 1 space(s) before asterisk; 0 found
(#20) Expected 1 space(s) before asterisk; 0 found
(#21) Expected 1 space(s) before asterisk; 0 found
(#22) Expected 1 space(s) before asterisk; 0 found
(#23) Expected 1 space(s) before asterisk; 0 found
(#24) Expected 1 space(s) before asterisk; 0 found
(#27) Inline comments must end in full-stops, exclamation marks, or question marks
(#27) 3 slashes comments are not allowed; use "// Comment." instead
(#27) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#30) "require_once" must be immediately followed by an open parenthesis
(#35) Visibility must be declared on method "definition"
(#42) Expected 1 space before "=>"; 0 found
(#42) Expected 1 space after "=>"; 0 found
(#52) 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
(#59) Expected 1 space before "=>"; 0 found
(#59) Expected 1 space after "=>"; 0 found
(#63) Line exceeds 132 characters; contains 177 characters
(#79) Expected 1 space before "=>"; 0 found
(#79) Expected 1 space after "=>"; 0 found
(#83) Inline comments must end in full-stops, exclamation marks, or question marks
(#103) Commas (,) must be followed by white space.
(#114) Commas (,) must be followed by white space.
(#118) Expected 1 space before "=>"; 0 found
(#118) Expected 1 space after "=>"; 0 found
(#126) Expected 1 space before "=>"; 0 found
(#126) Expected 1 space after "=>"; 0 found
(#126) Expected 1 space before "=>"; 0 found
(#126) Expected 1 space after "=>"; 0 found
(#126) Expected 1 space before "=>"; 0 found
(#126) Expected 1 space after "=>"; 0 found
(#126) Line exceeds 132 characters; contains 147 characters
(#130) Inline comments must end in full-stops, exclamation marks, or question marks
(#141) Line exceeds 132 characters; contains 137 characters
(#145) Line exceeds 132 characters; contains 145 characters
(#151) Line exceeds 132 characters; contains 138 characters
(#155) Line exceeds 132 characters; contains 146 characters
(#178) Inline comments must end in full-stops, exclamation marks, or question marks
mod/certificate/report.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#29) Inline comments must end in full-stops, exclamation marks, or question marks
(#47) Expected 1 space before "=>"; 0 found
(#47) Expected 1 space after "=>"; 0 found
(#60) Expected 1 space before "=>"; 0 found
(#64) Expected 1 space before "=>"; 0 found
(#68) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#75) Inline comments must end in full-stops, exclamation marks, or question marks
(#80) Commas (,) must be followed by white space.
(#82) Expected 1 space before "="; 0 found
(#88) Inline comments must end in full-stops, exclamation marks, or question marks
(#94) Inline comments must end in full-stops, exclamation marks, or question marks
(#98) Inline comments must end in full-stops, exclamation marks, or question marks
(#113) Inline comments must end in full-stops, exclamation marks, or question marks
(#115) Inline comments must end in full-stops, exclamation marks, or question marks
(#117) Inline comments must end in full-stops, exclamation marks, or question marks
(#119) Inline comments must end in full-stops, exclamation marks, or question marks
(#122) Inline comments must end in full-stops, exclamation marks, or question marks
(#135) Inline comments must end in full-stops, exclamation marks, or question marks
(#161) Inline comments must end in full-stops, exclamation marks, or question marks
(#169) Inline comments must end in full-stops, exclamation marks, or question marks
(#171) Inline comments must end in full-stops, exclamation marks, or question marks
(#173) Inline comments must end in full-stops, exclamation marks, or question marks
(#175) Inline comments must end in full-stops, exclamation marks, or question marks
(#178) Inline comments must end in full-stops, exclamation marks, or question marks
(#191) Inline comments must end in full-stops, exclamation marks, or question marks
(#217) Inline comments must end in full-stops, exclamation marks, or question marks
(#231) Inline comments must end in full-stops, exclamation marks, or question marks
(#241) Inline comments must end in full-stops, exclamation marks, or question marks
(#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) Inline control structures are not allowed
(#267) Inline comments must end in full-stops, exclamation marks, or question marks
(#292) Inline comments must end in full-stops, exclamation marks, or question marks
(#295) Expected 1 space before "=>"; 0 found
(#295) Expected 1 space after "=>"; 0 found
(#295) Expected 1 space before "=>"; 0 found
(#295) Expected 1 space after "=>"; 0 found
(#295) Line exceeds 132 characters; contains 139 characters
(#296) Expected 1 space before "=>"; 0 found
(#296) Expected 1 space after "=>"; 0 found
(#296) Expected 1 space before "=>"; 0 found
(#296) Expected 1 space after "=>"; 0 found
(#296) Line exceeds 132 characters; contains 141 characters
(#297) Expected 1 space before "=>"; 0 found
(#297) Expected 1 space after "=>"; 0 found
(#297) Expected 1 space before "=>"; 0 found
(#297) Expected 1 space after "=>"; 0 found
(#297) Line exceeds 132 characters; contains 140 characters
mod/certificate/review.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#31) Inline comments must end in full-stops, exclamation marks, or question marks
(#38) Expected 1 space before "=>"; 0 found
(#42) Expected 1 space before "=>"; 0 found
(#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
(#53) Inline comments must end in full-stops, exclamation marks, or question marks
(#60) Inline comments must end in full-stops, exclamation marks, or question marks
(#66) Inline comments must end in full-stops, exclamation marks, or question marks
(#67) "require" must be immediately followed by an open parenthesis
(#95) Line exceeds 132 characters; contains 150 characters
mod/certificate/settings.php
(#2) The opening <?php tag must be followed by exactly one newline.
mod/certificate/tests/generator/lib.php
(#2) The opening <?php tag must be followed by exactly one newline.
mod/certificate/tests/generator_test.php
(#2) The opening <?php tag must be followed by exactly one newline.
mod/certificate/type/A4_embedded/certificate.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#38) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) Inline comments must end in full-stops, exclamation marks, or question marks
(#81) Inline comments must end in full-stops, exclamation marks, or question marks
(#84) Inline comments must end in full-stops, exclamation marks, or question marks
(#91) Inline comments must end in full-stops, exclamation marks, or question marks
(#103) Line exceeds 132 characters; contains 148 characters
(#109) Line exceeds 132 characters; contains 141 characters
mod/certificate/type/A4_non_embedded/certificate.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#38) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) Inline comments must end in full-stops, exclamation marks, or question marks
(#77) Inline comments must end in full-stops, exclamation marks, or question marks
(#80) Inline comments must end in full-stops, exclamation marks, or question marks
(#87) Inline comments must end in full-stops, exclamation marks, or question marks
(#99) Line exceeds 132 characters; contains 145 characters
(#105) Line exceeds 132 characters; contains 141 characters
mod/certificate/type/letter_embedded/certificate.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#38) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) Inline comments must end in full-stops, exclamation marks, or question marks
(#81) Inline comments must end in full-stops, exclamation marks, or question marks
(#84) Inline comments must end in full-stops, exclamation marks, or question marks
(#91) Inline comments must end in full-stops, exclamation marks, or question marks
(#103) Line exceeds 132 characters; contains 148 characters
(#109) Line exceeds 132 characters; contains 141 characters
mod/certificate/type/letter_non_embedded/certificate.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#38) Inline comments must end in full-stops, exclamation marks, or question marks
(#57) Inline comments must end in full-stops, exclamation marks, or question marks
(#77) Inline comments must end in full-stops, exclamation marks, or question marks
(#80) Inline comments must end in full-stops, exclamation marks, or question marks
(#87) Inline comments must end in full-stops, exclamation marks, or question marks
(#99) Line exceeds 132 characters; contains 145 characters
(#105) Line exceeds 132 characters; contains 141 characters
mod/certificate/upload_image.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#45) Variable "upload_form" must not contain underscores.
(#47) Variable "upload_form" must not contain underscores.
(#49) Variable "upload_form" must not contain underscores.
(#50) Inline comments must end in full-stops, exclamation marks, or question marks
(#52) Variable "upload_form" must not contain underscores.
(#55) Variable "upload_form" must not contain underscores.
(#63) Variable "upload_form" must not contain underscores.
mod/certificate/upload_image_form.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#27) Inline comments must end in full-stops, exclamation marks, or question marks
(#27) 3 slashes comments are not allowed; use "// Comment." instead
(#27) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#35) Visibility must be declared on method "definition"
(#58) Visibility must be declared on method "validation"
mod/certificate/version.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#30) Inline comments must end in full-stops, exclamation marks, or question marks
(#34) Inline comments must end in full-stops, exclamation marks, or question marks
mod/certificate/view.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#31) Inline comments must end in full-stops, exclamation marks, or question marks
(#38) Expected 1 space before "=>"; 0 found
(#41) Expected 1 space before "=>"; 0 found
(#57) Expected 1 space before "="; 0 found
(#57) Expected 1 space after "="; 0 found
(#60) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#79) Inline comments must end in full-stops, exclamation marks, or question marks
(#89) Inline comments must end in full-stops, exclamation marks, or question marks
(#97) Inline comments must end in full-stops, exclamation marks, or question marks
(#119) Expected "if (...) {\n"; found "if (...) {\n"
(#121) Usage of ELSEIF not allowed; use ELSE IF instead
(#123) Usage of ELSEIF not allowed; use ELSE IF instead
(#138) Inline comments must end in full-stops, exclamation marks, or question marks
(#157) Usage of ELSEIF not allowed; use ELSE IF instead
(#160) Usage of ELSEIF not allowed; use ELSE IF instead

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

(56 errors, 31 warnings)

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

mod/certificate/backup/moodle2/backup_certificate_activity_task.class.php
(#2) Empty line found after PHP open tag
(#18) No one-line description found in phpdocs for file
(#28) No one-line description found in phpdocs for class backup_certificate_activity_task
(#49) Phpdocs for function backup_certificate_activity_task::encode_content_links has incomplete parameters list
(#28) Class backup_certificate_activity_task does not have @copyright tag
(#28) Class backup_certificate_activity_task does not have @license tag
mod/certificate/backup/moodle2/backup_certificate_settingslib.php
(#2) Empty line found after PHP open tag
(#18) No one-line description found in phpdocs for file
mod/certificate/backup/moodle2/backup_certificate_stepslib.php
(#2) Empty line found after PHP open tag
(#34) Function backup_certificate_activity_structure_step::define_structure is not documented
(#18) No one-line description found in phpdocs for file
(#29) Class backup_certificate_activity_structure_step does not have @copyright tag
(#29) Class backup_certificate_activity_structure_step does not have @license tag
mod/certificate/backup/moodle2/restore_certificate_activity_task.class.php
(#2) Empty line found after PHP open tag
(#118) Function restore_certificate_activity_task::after_restore is not documented
(#18) No one-line description found in phpdocs for file
(#29) No one-line description found in phpdocs for class restore_certificate_activity_task
(#29) Class restore_certificate_activity_task does not have @copyright tag
(#29) Class restore_certificate_activity_task does not have @license tag
mod/certificate/backup/moodle2/restore_certificate_stepslib.php
(#2) Empty line found after PHP open tag
(#34) Function restore_certificate_activity_structure_step::define_structure is not documented
(#49) Function restore_certificate_activity_structure_step::process_certificate is not documented
(#64) Function restore_certificate_activity_structure_step::process_certificate_issue is not documented
(#80) Function restore_certificate_activity_structure_step::after_execute is not documented
(#18) No one-line description found in phpdocs for file
(#29) Class restore_certificate_activity_structure_step does not have @copyright tag
(#29) Class restore_certificate_activity_structure_step does not have @license tag
mod/certificate/classes/admin_setting_font.php
(#2) Empty line found after PHP open tag
(#29) Class mod_certificate_admin_setting_font is not documented
mod/certificate/classes/admin_setting_upload.php
(#2) Empty line found after PHP open tag
(#34) Function mod_certificate_admin_setting_upload::__construct is not documented
(#38) Function mod_certificate_admin_setting_upload::output_html is not documented
(#30) Class mod_certificate_admin_setting_upload does not have @copyright tag
(#30) Class mod_certificate_admin_setting_upload does not have @license tag
mod/certificate/classes/event/course_module_instance_list_viewed.php
(#2) Empty line found after PHP open tag
(#31) Class course_module_instance_list_viewed is not documented
(#21) Package mod is not valid
mod/certificate/classes/event/course_module_viewed.php
(#2) Empty line found after PHP open tag
(#31) Class course_module_viewed is not documented
(#32) Function course_module_viewed::init is not documented
(#21) Package mod is not valid
mod/certificate/db/access.php
(#2) Empty line found after PHP open tag
mod/certificate/db/log.php
(#2) Empty line found after PHP open tag
mod/certificate/db/upgrade.php
(#2) Empty line found after PHP open tag
(#26) Function xmldb_certificate_upgrade is not documented
mod/certificate/deprecatedlib.php
(#2) Empty line found after PHP open tag
(#114) Phpdocs for function certificate_print_outcome has incomplete parameters list
(#156) Phpdocs for function print_border has incomplete parameters list
(#174) Phpdocs for function print_watermark has incomplete parameters list
(#210) Phpdocs for function print_seal has incomplete parameters list
mod/certificate/index.php
(#2) Empty line found after PHP open tag
mod/certificate/lang/en/certificate.php
(#2) Empty line found after PHP open tag
mod/certificate/lib.php
(#2) Empty line found after PHP open tag
(#233) There is no description in phpdocs for function certificate_supports
(#102) Phpdocs for function certificate_reset_userdata has incomplete parameters list
(#146) Phpdocs for function certificate_reset_course_form_definition has incomplete parameters list
mod/certificate/locallib.php
(#2) Empty line found after PHP open tag
(#18) No one-line description found in phpdocs for file
(#184) Phpdocs for function certificate_email_teachers_text has incomplete parameters list
(#196) Phpdocs for function certificate_email_teachers_html has incomplete parameters list
(#897) Phpdocs for function certificate_get_ordinal_number_suffix has incomplete parameters list
(#1228) Phpdocs for function certificate_scan_image_dir has incomplete parameters list
mod/certificate/mod_form.php
(#2) Empty line found after PHP open tag
(#33) Class mod_certificate_mod_form is not documented
(#35) Function mod_certificate_mod_form::definition is not documented
(#27) Found comment starting with three or more slashes
(#171) Phpdocs for function mod_certificate_mod_form::validation has incomplete parameters list
mod/certificate/report.php
(#2) Empty line found after PHP open tag
mod/certificate/review.php
(#2) Empty line found after PHP open tag
mod/certificate/settings.php
(#2) Empty line found after PHP open tag
mod/certificate/tests/generator/lib.php
(#2) Empty line found after PHP open tag
(#28) Class mod_certificate_generator is not documented
(#32) Phpdocs for function mod_certificate_generator::create_instance has incomplete parameters list
mod/certificate/tests/generator_test.php
(#2) Empty line found after PHP open tag
(#28) Class mod_certificate_generator_testcase is not documented
mod/certificate/type/A4_embedded/certificate.php
(#2) Empty line found after PHP open tag
mod/certificate/type/A4_non_embedded/certificate.php
(#2) Empty line found after PHP open tag
mod/certificate/type/letter_embedded/certificate.php
(#2) Empty line found after PHP open tag
mod/certificate/type/letter_non_embedded/certificate.php
(#2) Empty line found after PHP open tag
mod/certificate/upload_image.php
(#2) Empty line found after PHP open tag
mod/certificate/upload_image_form.php
(#2) Empty line found after PHP open tag
(#33) Class mod_certificate_upload_image_form is not documented
(#35) Function mod_certificate_upload_image_form::definition is not documented
(#27) Found comment starting with three or more slashes
(#55) Phpdocs for function mod_certificate_upload_image_form::validation has incomplete parameters list
mod/certificate/version.php
(#2) Empty line found after PHP open tag
mod/certificate/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]


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]