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

(198 errors, 401 warnings)

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

mod/hvp/ajax.php
(#81) Short array syntax must be used to define arrays
(#82) Short array syntax must be used to define arrays
(#86) There should be a comma after the last array item in a multi-line array.
(#420) Short array syntax must be used to define arrays
(#465) Short array syntax must be used to define arrays
(#479) Short array syntax must be used to define arrays
mod/hvp/autoloader.php
(#35) Short array syntax must be used to define arrays
mod/hvp/backup/moodle2/backup_hvp_activity_task.class.php
(#71) The static declaration must come after the visibility declaration
mod/hvp/backup/moodle2/backup_hvp_stepslib.php
(#49) Short array syntax must be used to define arrays
(#49) Short array syntax must be used to define arrays
(#72) There should be a comma after the last array item in a multi-line array.
(#77) Short array syntax must be used to define arrays
(#79) There should be a comma after the last array item in a multi-line array.
(#80) Short array syntax must be used to define arrays
(#122) Short array syntax must be used to define arrays
(#126) Short array syntax must be used to define arrays
(#189) Short array syntax must be used to define arrays
(#189) Short array syntax must be used to define arrays
(#205) There should be a comma after the last array item in a multi-line array.
(#210) Short array syntax must be used to define arrays
(#211) There should be a comma after the last array item in a multi-line array.
(#212) Short array syntax must be used to define arrays
(#213) There should be a comma after the last array item in a multi-line array.
(#218) Short array syntax must be used to define arrays
(#219) There should be a comma after the last array item in a multi-line array.
(#220) Short array syntax must be used to define arrays
(#221) There should be a comma after the last array item in a multi-line array.
(#235) Short array syntax must be used to define arrays
(#237) Short array syntax must be used to define arrays
(#239) Short array syntax must be used to define arrays
mod/hvp/backup/moodle2/restore_hvp_activity_task.class.php
(#60) The static declaration must come after the visibility declaration
(#61) Short array syntax must be used to define arrays
(#63) Short array syntax must be used to define arrays
(#72) The static declaration must come after the visibility declaration
(#73) Short array syntax must be used to define arrays
(#88) The static declaration must come after the visibility declaration
(#89) Short array syntax must be used to define arrays
(#108) The static declaration must come after the visibility declaration
(#109) Short array syntax must be used to define arrays
mod/hvp/backup/moodle2/restore_hvp_stepslib.php
(#43) Short array syntax must be used to define arrays
(#167) Short array syntax must be used to define arrays
(#236) Short array syntax must be used to define arrays
(#309) Short array syntax must be used to define arrays
(#320) Short array syntax must be used to define arrays
(#347) Short array syntax must be used to define arrays
(#362) Short array syntax must be used to define arrays
mod/hvp/classes/admin_setting_html.php
(#17) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#30) Line exceeds 132 characters; contains 145 characters
(#71) Line indented incorrectly; expected at least 12 spaces, found 10
(#76) File must end with a newline character
mod/hvp/classes/content_hub_service.php
(#21) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/hvp/classes/content_user_data.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#150) Short array syntax must be used to define arrays
(#154) There should be a comma after the last array item in a multi-line array.
(#184) Short array syntax must be used to define arrays
(#191) There should be a comma after the last array item in a multi-line array.
(#219) Short array syntax must be used to define arrays
(#223) There should be a comma after the last array item in a multi-line array.
(#238) Short array syntax must be used to define arrays
(#239) There should be a comma after the last array item in a multi-line array.
(#242) Short array syntax must be used to define arrays
(#246) There should be a comma after the last array item in a multi-line array.
mod/hvp/classes/curl.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#44) Short array syntax must be used to define arrays
(#53) Short array syntax must be used to define arrays
mod/hvp/classes/editor_ajax.php
(#95) Short array syntax must be used to define arrays
(#112) Short array syntax must be used to define arrays
(#119) Short array syntax must be used to define arrays
(#149) Public method name "editor_ajax::getTranslations" must be in lower-case letters only
(#149) Variable "language_code" must not contain underscores.
(#152) Short array syntax must be used to define arrays
(#155) Variable "parsedLib" must be all lower-case
(#166) Short array syntax must be used to define arrays
(#167) Variable "parsedLib" must be all lower-case
(#168) Variable "parsedLib" must be all lower-case
(#169) Variable "parsedLib" must be all lower-case
(#170) Variable "language_code" must not contain underscores.
mod/hvp/classes/editor_framework.php
(#67) Short array syntax must be used to define arrays
(#71) There should be a comma after the last array item in a multi-line array.
(#87) Short array syntax must be used to define arrays
(#88) There should be a comma after the last array item in a multi-line array.
(#115) Short array syntax must be used to define arrays
(#129) Short array syntax must be used to define arrays
(#132) There should be a comma after the last array item in a multi-line array.
(#151) Short array syntax must be used to define arrays
(#176) Line indented incorrectly; expected at least 16 spaces, found 15
(#224) Short array syntax must be used to define arrays
(#226) Short array syntax must be used to define arrays
(#228) There should be a comma after the last array item in a multi-line array.
(#279) Short array syntax must be used to define arrays
(#281) There should be a comma after the last array item in a multi-line array.
(#302) Short array syntax must be used to define arrays
(#303) There should be a comma after the last array item in a multi-line array.
(#331) Public method name "editor_framework::getAvailableLanguages" must be in lower-case letters only
(#331) Variable "machineName" must be all lower-case
(#331) Variable "majorVersion" must be all lower-case
(#331) Variable "minorVersion" must be all lower-case
(#342) Short array syntax must be used to define arrays
(#343) Variable "machineName" must be all lower-case
(#344) Variable "majorVersion" must be all lower-case
(#345) Variable "minorVersion" must be all lower-case
(#348) Short array syntax must be used to define arrays
mod/hvp/classes/event.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#77) Short array syntax must be used to define arrays
(#82) Short array syntax must be used to define arrays
(#86) There should be a comma after the last array item in a multi-line array.
(#94) Short array syntax must be used to define arrays
mod/hvp/classes/event/attempt_submitted.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#37) Opening brace should be on the same line as the declaration for class attempt_submitted
mod/hvp/classes/event/course_module_instance_list_viewed.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#37) Opening brace should be on the same line as the declaration for class course_module_instance_list_viewed
mod/hvp/classes/event/course_module_viewed.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#37) Opening brace should be on the same line as the declaration for class course_module_viewed
mod/hvp/classes/file_storage.php
(#52) Short array syntax must be used to define arrays
(#82) Short array syntax must be used to define arrays
(#173) Short array syntax must be used to define arrays
(#179) There should be a comma after the last array item in a multi-line array.
(#250) Short array syntax must be used to define arrays
(#275) Short array syntax must be used to define arrays
(#281) There should be a comma after the last array item in a multi-line array.
(#286) Short array syntax must be used to define arrays
(#286) Short array syntax must be used to define arrays
(#288) There should be a comma after the last array item in a multi-line array.
(#305) Short array syntax must be used to define arrays
(#309) Short array syntax must be used to define arrays
(#309) Short array syntax must be used to define arrays
(#311) There should be a comma after the last array item in a multi-line array.
(#317) Short array syntax must be used to define arrays
(#317) Short array syntax must be used to define arrays
(#319) There should be a comma after the last array item in a multi-line array.
(#338) Short array syntax must be used to define arrays
(#408) Line exceeds 132 characters; contains 134 characters
(#418) Short array syntax must be used to define arrays
(#424) There should be a comma after the last array item in a multi-line array.
(#746) Short array syntax must be used to define arrays
(#776) Short array syntax must be used to define arrays
(#782) There should be a comma after the last array item in a multi-line array.
(#786) Short array syntax must be used to define arrays
(#792) There should be a comma after the last array item in a multi-line array.
(#897) Short array syntax must be used to define arrays
(#908) Inline comments must start with a capital letter, digit or 3-dots sequence
(#909) Public method name "file_storage::deleteLibrary" must be in lower-case letters only
mod/hvp/classes/framework.php
(#137) Short array syntax must be used to define arrays
(#138) There should be a comma after the last array item in a multi-line array.
(#156) Short array syntax must be used to define arrays
(#171) Short array syntax must be used to define arrays
(#203) Short array syntax must be used to define arrays
(#238) Short array syntax must be used to define arrays
(#287) Short array syntax must be used to define arrays
(#326) Short array syntax must be used to define arrays
(#338) Short array syntax must be used to define arrays
(#340) There should be a comma after the last array item in a multi-line array.
(#373) Short array syntax must be used to define arrays
(#746) Short array syntax must be used to define arrays
(#787) Short array syntax must be used to define arrays
(#837) Short array syntax must be used to define arrays
(#902) Short array syntax must be used to define arrays
(#909) Short array syntax must be used to define arrays
(#912) Short array syntax must be used to define arrays
(#924) Short array syntax must be used to define arrays
(#962) Short array syntax must be used to define arrays
(#988) Short array syntax must be used to define arrays
(#1029) Short array syntax must be used to define arrays
(#1032) Short array syntax must be used to define arrays
(#1054) Short array syntax must be used to define arrays
(#1092) Short array syntax must be used to define arrays
(#1093) Short array syntax must be used to define arrays
(#1094) Short array syntax must be used to define arrays
(#1108) Short array syntax must be used to define arrays
(#1111) There should be a comma after the last array item in a multi-line array.
(#1115) Short array syntax must be used to define arrays
(#1118) There should be a comma after the last array item in a multi-line array.
(#1134) Short array syntax must be used to define arrays
(#1147) Space found after square bracket; expected "['completionpass'" but found "[ 'completionpass'"
(#1148) Space found after square bracket; expected "['completionpass'" but found "[ 'completionpass'"
(#1148) Space found before square bracket; expected "'completionpass']" but found "'completionpass' ]"
(#1148) Space found after square bracket; expected "['completionpass'" but found "[ 'completionpass'"
(#1148) Space found before square bracket; expected "'completionpass']" but found "'completionpass' ]"
(#1198) Short array syntax must be used to define arrays
(#1216) Short array syntax must be used to define arrays
(#1217) There should be a comma after the last array item in a multi-line array.
(#1240) Short array syntax must be used to define arrays
(#1299) Short array syntax must be used to define arrays
(#1309) Short array syntax must be used to define arrays
(#1342) There should be a comma after the last array item in a multi-line array.
(#1383) Short array syntax must be used to define arrays
(#1393) Short array syntax must be used to define arrays
(#1446) Short array syntax must be used to define arrays
(#1457) Short array syntax must be used to define arrays
(#1463) Short array syntax must be used to define arrays
(#1473) Short array syntax must be used to define arrays
(#1483) Short array syntax must be used to define arrays
(#1493) Short array syntax must be used to define arrays
(#1498) There should be a comma after the last array item in a multi-line array.
(#1510) Short array syntax must be used to define arrays
(#1513) There should be a comma after the last array item in a multi-line array.
(#1516) Short array syntax must be used to define arrays
(#1531) There should be a comma after the last array item in a multi-line array.
(#1538) Short array syntax must be used to define arrays
(#1540) Short array syntax must be used to define arrays
(#1543) There should be a comma after the last array item in a multi-line array.
(#1597) Short array syntax must be used to define arrays
(#1607) Short array syntax must be used to define arrays
(#1618) Short array syntax must be used to define arrays
(#1620) There should be a comma after the last array item in a multi-line array.
(#1638) Short array syntax must be used to define arrays
(#1641) Short array syntax must be used to define arrays
(#1644) Short array syntax must be used to define arrays
(#1656) Short array syntax must be used to define arrays
(#1666) Short array syntax must be used to define arrays
(#1752) Short array syntax must be used to define arrays
(#1768) Short array syntax must be used to define arrays
(#1771) Short array syntax must be used to define arrays
(#1772) Short array syntax must be used to define arrays
(#1773) There should be a comma after the last array item in a multi-line array.
(#1784) Short array syntax must be used to define arrays
(#1837) Short array syntax must be used to define arrays
(#1841) There should be a comma after the last array item in a multi-line array.
(#1862) Short array syntax must be used to define arrays
(#1866) Short array syntax must be used to define arrays
(#1869) Short array syntax must be used to define arrays
(#1887) Short array syntax must be used to define arrays
(#1902) Short array syntax must be used to define arrays
(#1918) Short array syntax must be used to define arrays
mod/hvp/classes/mobile_auth.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#59) There should be a comma after the last array item in a multi-line array.
(#96) Short array syntax must be used to define arrays
(#107) Short array syntax must be used to define arrays
(#108) There should be a comma after the last array item in a multi-line array.
mod/hvp/classes/output/mobile.php
(#19) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#37) Short array syntax must be used to define arrays
(#38) Short array syntax must be used to define arrays
(#39) Short array syntax must be used to define arrays
(#41) There should be a comma after the last array item in a multi-line array.
(#42) There should be a comma after the last array item in a multi-line array.
(#43) There should be a comma after the last array item in a multi-line array.
(#50) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#52) Short array syntax must be used to define arrays
(#54) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#63) Short array syntax must be used to define arrays
(#68) Short array syntax must be used to define arrays
(#74) Short array syntax must be used to define arrays
(#77) There should be a comma after the last array item in a multi-line array.
(#85) There should be a comma after the last array item in a multi-line array.
(#88) Short array syntax must be used to define arrays
(#89) Short array syntax must be used to define arrays
(#90) Short array syntax must be used to define arrays
mod/hvp/classes/privacy/provider.php
(#23) Import statements must not begin with a leading backslash
(#24) Import statements must not begin with a leading backslash
(#25) Import statements must not begin with a leading backslash
(#26) Import statements must not begin with a leading backslash
(#27) Import statements must not begin with a leading backslash
(#28) Import statements must not begin with a leading backslash
(#29) Import statements must not begin with a leading backslash
(#31) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#52) Method name "_get_metadata" should not be prefixed with an underscore to indicate visibility
(#120) Method name "_get_contexts_for_userid" should not be prefixed with an underscore to indicate visibility
(#137) Short array syntax must be used to define arrays
(#158) Short array syntax must be used to define arrays
(#179) Method name "_export_user_data" should not be prefixed with an underscore to indicate visibility
(#308) Short array syntax must be used to define arrays
(#382) Method name "_delete_data_for_all_users_in_context" should not be prefixed with an underscore to indicate visibility
(#414) Method name "_delete_data_for_user" should not be prefixed with an underscore to indicate visibility
mod/hvp/classes/results.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#77) Short array syntax must be used to define arrays
(#110) Short array syntax must be used to define arrays
(#112) There should be a comma after the last array item in a multi-line array.
(#126) Short array syntax must be used to define arrays
(#129) Short array syntax must be used to define arrays
(#131) There should be a comma after the last array item in a multi-line array.
(#142) Short array syntax must be used to define arrays
(#145) There should be a comma after the last array item in a multi-line array.
(#154) Short array syntax must be used to define arrays
(#159) There should be a comma after the last array item in a multi-line array.
(#301) Short array syntax must be used to define arrays
(#328) Short array syntax must be used to define arrays
(#329) Short array syntax must be used to define arrays
(#338) Short array syntax must be used to define arrays
(#343) Short array syntax must be used to define arrays
(#360) Short array syntax must be used to define arrays
(#360) Short array syntax must be used to define arrays
(#362) There should be a comma after the last array item in a multi-line array.
(#365) Short array syntax must be used to define arrays
mod/hvp/classes/task/look_for_updates.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/hvp/classes/task/remove_old_auth_tokens.php
(#29) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#48) Short array syntax must be used to define arrays
mod/hvp/classes/task/remove_old_log_entries.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/hvp/classes/task/remove_tmpfiles.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#47) Short array syntax must be used to define arrays
(#60) Short array syntax must be used to define arrays
mod/hvp/classes/upload_libraries_form.php
(#52) Short array syntax must be used to define arrays
(#59) Short array syntax must be used to define arrays
(#68) Short array syntax must be used to define arrays
(#105) Short array syntax must be used to define arrays
mod/hvp/classes/user_grades.php
(#64) Short array syntax must be used to define arrays
(#72) Short array syntax must be used to define arrays
(#73) There should be a comma after the last array item in a multi-line array.
(#89) Short array syntax must be used to define arrays
(#95) Short array syntax must be used to define arrays
(#145) There should be a comma after the last array item in a multi-line array.
(#150) Short array syntax must be used to define arrays
(#157) Short array syntax must be used to define arrays
(#162) Short array syntax must be used to define arrays
(#163) There should be a comma after the last array item in a multi-line array.
(#167) Short array syntax must be used to define arrays
(#177) Short array syntax must be used to define arrays
(#178) There should be a comma after the last array item in a multi-line array.
(#187) Short array syntax must be used to define arrays
(#207) Short array syntax must be used to define arrays
(#215) Short array syntax must be used to define arrays
mod/hvp/classes/view_assets.php
(#29) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#69) Space found after square bracket; expected "[$cid" but found "[ $cid"
(#69) Space found before square bracket; expected "$cid]" but found "$cid ]"
(#69) Short array syntax must be used to define arrays
(#73) Space found after square bracket; expected "[\" but found "[ \"
(#73) Space found before square bracket; expected "DISPLAY_OPTION_DOWNLOAD]" but found "DISPLAY_OPTION_DOWNLOAD ]"
(#74) Space found after square bracket; expected "[\" but found "[ \"
(#74) Space found before square bracket; expected "DISPLAY_OPTION_EMBED]" but found "DISPLAY_OPTION_EMBED ]"
(#75) Space found after square bracket; expected "[\" but found "[ \"
(#75) Space found before square bracket; expected "DISPLAY_OPTION_EMBED]" but found "DISPLAY_OPTION_EMBED ]"
(#81) Short array syntax must be used to define arrays
(#82) There should be a comma after the last array item in a multi-line array.
(#83) There should be a comma after the last array item in a multi-line array.
(#240) Space found after square bracket; expected "[$cid" but found "[ $cid"
(#240) Space found before square bracket; expected "$cid]" but found "$cid ]"
(#241) Space found after square bracket; expected "[$cid" but found "[ $cid"
(#241) Space found before square bracket; expected "$cid]" but found "$cid ]"
(#282) Short array syntax must be used to define arrays
(#284) There should be a comma after the last array item in a multi-line array.
(#345) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
mod/hvp/classes/xapi_result.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#120) Short array syntax must be used to define arrays
(#149) Short array syntax must be used to define arrays
(#151) There should be a comma after the last array item in a multi-line array.
mod/hvp/content_hub_registration.php
(#54) File must end with a newline character
mod/hvp/db/access.php
(#37) Short array syntax must be used to define arrays
(#39) Short array syntax must be used to define arrays
(#42) Short array syntax must be used to define arrays
(#47) There should be a comma after the last array item in a multi-line array.
(#48) There should be a comma after the last array item in a multi-line array.
(#51) Short array syntax must be used to define arrays
(#55) Short array syntax must be used to define arrays
(#57) There should be a comma after the last array item in a multi-line array.
(#59) There should be a comma after the last array item in a multi-line array.
(#62) Short array syntax must be used to define arrays
(#66) Short array syntax must be used to define arrays
(#68) There should be a comma after the last array item in a multi-line array.
(#70) There should be a comma after the last array item in a multi-line array.
(#73) Short array syntax must be used to define arrays
(#77) Short array syntax must be used to define arrays
(#79) There should be a comma after the last array item in a multi-line array.
(#81) There should be a comma after the last array item in a multi-line array.
(#84) Short array syntax must be used to define arrays
(#87) Short array syntax must be used to define arrays
(#90) There should be a comma after the last array item in a multi-line array.
(#91) There should be a comma after the last array item in a multi-line array.
(#94) Short array syntax must be used to define arrays
(#97) Short array syntax must be used to define arrays
(#100) There should be a comma after the last array item in a multi-line array.
(#101) There should be a comma after the last array item in a multi-line array.
(#104) Short array syntax must be used to define arrays
(#108) Short array syntax must be used to define arrays
(#109) There should be a comma after the last array item in a multi-line array.
(#110) There should be a comma after the last array item in a multi-line array.
(#113) Short array syntax must be used to define arrays
(#116) Short array syntax must be used to define arrays
(#120) There should be a comma after the last array item in a multi-line array.
(#121) There should be a comma after the last array item in a multi-line array.
(#124) Short array syntax must be used to define arrays
(#127) Short array syntax must be used to define arrays
(#128) There should be a comma after the last array item in a multi-line array.
(#129) There should be a comma after the last array item in a multi-line array.
(#132) Short array syntax must be used to define arrays
(#135) Short array syntax must be used to define arrays
(#138) There should be a comma after the last array item in a multi-line array.
(#139) There should be a comma after the last array item in a multi-line array.
(#142) Short array syntax must be used to define arrays
(#145) Short array syntax must be used to define arrays
(#146) There should be a comma after the last array item in a multi-line array.
(#147) There should be a comma after the last array item in a multi-line array.
(#150) Short array syntax must be used to define arrays
(#153) Short array syntax must be used to define arrays
(#154) There should be a comma after the last array item in a multi-line array.
(#155) There should be a comma after the last array item in a multi-line array.
(#158) Short array syntax must be used to define arrays
(#161) Short array syntax must be used to define arrays
(#162) There should be a comma after the last array item in a multi-line array.
(#163) There should be a comma after the last array item in a multi-line array.
(#166) Short array syntax must be used to define arrays
(#169) Short array syntax must be used to define arrays
(#175) There should be a comma after the last array item in a multi-line array.
(#176) There should be a comma after the last array item in a multi-line array.
(#179) Short array syntax must be used to define arrays
(#182) Short array syntax must be used to define arrays
(#183) There should be a comma after the last array item in a multi-line array.
(#184) There should be a comma after the last array item in a multi-line array.
(#188) Short array syntax must be used to define arrays
(#191) Short array syntax must be used to define arrays
(#191) There should be a comma after the last array item in a multi-line array.
(#195) Short array syntax must be used to define arrays
(#198) Short array syntax must be used to define arrays
(#198) There should be a comma after the last array item in a multi-line array.
mod/hvp/db/events.php
(#29) Short array syntax must be used to define arrays
(#32) Short array syntax must be used to define arrays
(#36) There should be a comma after the last array item in a multi-line array.
mod/hvp/db/install.php
(#17) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#34) Short array syntax must be used to define arrays
(#36) There should be a comma after the last array item in a multi-line array.
(#40) Short array syntax must be used to define arrays
(#41) There should be a comma after the last array item in a multi-line array.
mod/hvp/db/messages.php
(#27) Short array syntax must be used to define arrays
(#29) Short array syntax must be used to define arrays
(#30) There should be a comma after the last array item in a multi-line array.
(#34) Short array syntax must be used to define arrays
(#36) Short array syntax must be used to define arrays
mod/hvp/db/mobile.php
(#19) Short array syntax must be used to define arrays
(#20) Short array syntax must be used to define arrays
(#21) Short array syntax must be used to define arrays
(#22) Short array syntax must be used to define arrays
(#25) Short array syntax must be used to define arrays
(#29) There should be a comma after the last array item in a multi-line array.
(#30) There should be a comma after the last array item in a multi-line array.
(#31) There should be a comma after the last array item in a multi-line array.
mod/hvp/db/tasks.php
(#26) Short array syntax must be used to define arrays
(#27) Short array syntax must be used to define arrays
(#34) There should be a comma after the last array item in a multi-line array.
(#36) Short array syntax must be used to define arrays
(#43) There should be a comma after the last array item in a multi-line array.
(#45) Short array syntax must be used to define arrays
(#52) There should be a comma after the last array item in a multi-line array.
(#54) Short array syntax must be used to define arrays
(#61) There should be a comma after the last array item in a multi-line array.
(#62) There should be a comma after the last array item in a multi-line array.
mod/hvp/db/upgrade.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#546) Line exceeds 132 characters; contains 135 characters
mod/hvp/embed.php
(#45) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#47) Short array syntax must be used to define arrays
(#49) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#77) There should be a comma after the last array item in a multi-line array.
(#86) Short array syntax must be used to define arrays
mod/hvp/grade.php
(#33) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#35) Short array syntax must be used to define arrays
(#36) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#53) Short array syntax must be used to define arrays
(#56) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#62) Short array syntax must be used to define arrays
(#65) There should be a comma after the last array item in a multi-line array.
(#79) Short array syntax must be used to define arrays
(#97) Short array syntax must be used to define arrays
(#98) Short array syntax must be used to define arrays
(#99) Short array syntax must be used to define arrays
(#101) Short array syntax must be used to define arrays
(#102) Short array syntax must be used to define arrays
(#104) There should be a comma after the last array item in a multi-line array.
(#106) Short array syntax must be used to define arrays
(#108) There should be a comma after the last array item in a multi-line array.
(#110) Short array syntax must be used to define arrays
(#112) There should be a comma after the last array item in a multi-line array.
(#114) Short array syntax must be used to define arrays
(#116) There should be a comma after the last array item in a multi-line array.
(#118) Short array syntax must be used to define arrays
(#119) There should be a comma after the last array item in a multi-line array.
(#120) There should be a comma after the last array item in a multi-line array.
(#122) Short array syntax must be used to define arrays
(#123) Short array syntax must be used to define arrays
(#125) There should be a comma after the last array item in a multi-line array.
(#127) Short array syntax must be used to define arrays
(#135) There should be a comma after the last array item in a multi-line array.
(#136) There should be a comma after the last array item in a multi-line array.
(#137) There should be a comma after the last array item in a multi-line array.
(#138) There should be a comma after the last array item in a multi-line array.
mod/hvp/index.php
(#30) Short array syntax must be used to define arrays
(#34) Short array syntax must be used to define arrays
(#36) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#45) Short array syntax must be used to define arrays
(#46) There should be a comma after the last array item in a multi-line array.
(#75) Short array syntax must be used to define arrays
(#102) Short array syntax must be used to define arrays
(#103) Short array syntax must be used to define arrays
mod/hvp/lib.php
(#192) Short array syntax must be used to define arrays
(#201) Short array syntax must be used to define arrays
(#204) Short array syntax must be used to define arrays
(#205) There should be a comma after the last array item in a multi-line array.
(#213) Short array syntax must be used to define arrays
(#245) Short array syntax must be used to define arrays
(#322) Short array syntax must be used to define arrays
(#391) Short array syntax must be used to define arrays
(#402) Short array syntax must be used to define arrays
(#406) There should be a comma after the last array item in a multi-line array.
(#431) Logical operator "and" is prohibited; use "&&" instead
(#455) Short array syntax must be used to define arrays
(#462) Short array syntax must be used to define arrays
(#465) Short array syntax must be used to define arrays
mod/hvp/library_list.php
(#66) Short array syntax must be used to define arrays
(#73) Short array syntax must be used to define arrays
(#74) There should be a comma after the last array item in a multi-line array.
(#78) Short array syntax must be used to define arrays
(#82) There should be a comma after the last array item in a multi-line array.
(#90) Short array syntax must be used to define arrays
(#99) There should be a comma after the last array item in a multi-line array.
(#107) Short array syntax must be used to define arrays
(#113) There should be a comma after the last array item in a multi-line array.
mod/hvp/locallib.php
(#46) Short array syntax must be used to define arrays
(#64) Short array syntax must be used to define arrays
(#73) Short array syntax must be used to define arrays
(#74) Short array syntax must be used to define arrays
(#76) There should be a comma after the last array item in a multi-line array.
(#85) There should be a comma after the last array item in a multi-line array.
(#102) Short array syntax must be used to define arrays
(#103) Short array syntax must be used to define arrays
(#104) Short array syntax must be used to define arrays
(#104) There should be a comma after the last array item in a multi-line array.
(#106) Short array syntax must be used to define arrays
(#107) Short array syntax must be used to define arrays
(#155) Short array syntax must be used to define arrays
(#157) There should be a comma after the last array item in a multi-line array.
(#204) Short array syntax must be used to define arrays
(#206) Short array syntax must be used to define arrays
(#256) Short array syntax must be used to define arrays
(#260) Short array syntax must be used to define arrays
(#264) There should be a comma after the last array item in a multi-line array.
(#294) Short array syntax must be used to define arrays
(#296) There should be a comma after the last array item in a multi-line array.
(#320) Short array syntax must be used to define arrays
(#321) There should be a comma after the last array item in a multi-line array.
(#330) Short array syntax must be used to define arrays
(#332) Short array syntax must be used to define arrays
(#344) Short array syntax must be used to define arrays
(#346) Short array syntax must be used to define arrays
(#350) There should be a comma after the last array item in a multi-line array.
(#358) Short array syntax must be used to define arrays
(#374) Short array syntax must be used to define arrays
(#391) Short array syntax must be used to define arrays
(#414) Short array syntax must be used to define arrays
(#416) Short array syntax must be used to define arrays
(#418) There should be a comma after the last array item in a multi-line array.
(#419) There should be a comma after the last array item in a multi-line array.
(#565) Logical operator "or" is prohibited; use "||" instead
(#565) Logical operator "or" is prohibited; use "||" instead
(#565) Logical operator "or" is prohibited; use "||" instead
(#569) Short array syntax must be used to define arrays
(#655) Short array syntax must be used to define arrays
(#657) Short array syntax must be used to define arrays
(#659) There should be a comma after the last array item in a multi-line array.
(#683) Short array syntax must be used to define arrays
mod/hvp/mod_form.php
(#47) Short array syntax must be used to define arrays
(#50) Short array syntax must be used to define arrays
(#55) Short array syntax must be used to define arrays
(#160) Short array syntax must be used to define arrays
(#164) There should be a comma after the last array item in a multi-line array.
(#202) Short array syntax must be used to define arrays
(#363) Short array syntax must be used to define arrays
(#448) Short array syntax must be used to define arrays
(#449) Short array syntax must be used to define arrays
(#451) Short array syntax must be used to define arrays
mod/hvp/renderer.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/hvp/review.php
(#32) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#35) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#56) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#162) Short array syntax must be used to define arrays
mod/hvp/settings.php
(#70) Short array syntax must be used to define arrays
(#75) There should be a comma after the last array item in a multi-line array.
(#78) Short array syntax must be used to define arrays
(#83) There should be a comma after the last array item in a multi-line array.
(#146) Short array syntax must be used to define arrays
(#153) There should be a comma after the last array item in a multi-line array.
mod/hvp/share.php
(#33) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#35) Short array syntax must be used to define arrays
(#37) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#46) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#63) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#66) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#74) Short array syntax must be used to define arrays
(#79) Short array syntax must be used to define arrays
(#90) Line exceeds 132 characters; contains 137 characters
(#90) Line exceeds 132 characters; contains 137 characters
(#90) Line exceeds 132 characters; contains 137 characters
(#90) Line exceeds 132 characters; contains 137 characters
(#113) Short array syntax must be used to define arrays
(#114) Short array syntax must be used to define arrays
(#125) Short array syntax must be used to define arrays
mod/hvp/upgrade_content_page.php
(#32) Short array syntax must be used to define arrays
(#44) Short array syntax must be used to define arrays
(#45) Short array syntax must be used to define arrays
(#63) Short array syntax must be used to define arrays
(#64) Short array syntax must be used to define arrays
(#78) Short array syntax must be used to define arrays
(#83) Short array syntax must be used to define arrays
(#89) Short array syntax must be used to define arrays
(#92) There should be a comma after the last array item in a multi-line array.
(#93) There should be a comma after the last array item in a multi-line array.
mod/hvp/view.php
(#33) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#35) Short array syntax must be used to define arrays
(#37) Function print_error() has been deprecated; use throw new moodle_exception() (using lang strings only if meant to be shown to final user)() instead
(#49) Short array syntax must be used to define arrays
(#68) Short array syntax must be used to define arrays
(#76) Line exceeds 132 characters; contains 147 characters
(#78) Short array syntax must be used to define arrays
(#80) There should be a comma after the last array item in a multi-line array.

Javascript coding style problems

(28 errors, 6 warnings)

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

mod/hvp/amd/src/contenthubregistration.js
(#1) Unexpected space before function parentheses. (space-before-function-paren)
(#3) Unexpected space before function parentheses. (space-before-function-paren)
(#5) 'H5PSettings' is not defined. (no-undef)
(#7) 'H5PHub' is not defined. (no-undef)
mod/hvp/dataviews.js
(#32) 'H5PIntegration' is not defined. (no-undef)
(#33) 'H5PIntegration' is not defined. (no-undef)
(#39) 'H5PIntegration' is not defined. (no-undef)
(#43) 'H5P' is not defined. (no-undef)
mod/hvp/editor.js
(#20) 'H5PIntegration' is not defined. (no-undef)
(#26) 'H5PIntegration' is not defined. (no-undef)
(#26) 'H5PIntegration' is not defined. (no-undef)
(#27) 'H5PIntegration' is not defined. (no-undef)
(#31) Unexpected space before function parentheses. (space-before-function-paren)
(#35) 'H5PEditor' is not defined. (no-undef)
(#50) 'H5P' is not defined. (no-undef)
mod/hvp/settings-hide-key.js
(#33) 'H5P' is not defined. (no-undef)
mod/hvp/xapi-collector.js
(#36) 'H5P' is not defined. (no-undef)
(#44) 'H5P' is not defined. (no-undef)
(#108) 'H5PIntegration' is not defined. (no-undef)
(#108) Unexpected space before function parentheses. (space-before-function-paren)
(#110) Unexpected console statement. (no-console)
(#112) Unexpected space before function parentheses. (space-before-function-paren)
(#113) 'H5P' is not defined. (no-undef)
(#114) 'H5P' is not defined. (no-undef)
(#114) 'H5PIntegration' is not defined. (no-undef)
(#123) There should be no space after this paren. (space-in-parens)
(#124) 'H5PIntegration' is not defined. (no-undef)
(#134) 'H5P' is not defined. (no-undef)
(#135) Unexpected console statement. (no-console)
(#140) 'H5PIntegration' is not defined. (no-undef)
(#140) 'H5PIntegration' is not defined. (no-undef)
(#141) Unexpected console statement. (no-console)
(#146) 'H5P' is not defined. (no-undef)
(#173) 'H5P' is not defined. (no-undef)

CSS problems

(14 errors, 11 warnings)

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

mod/hvp/styles.css
(#2) Expected "#E5E5E5" to be "#e5e5e5" (color-hex-case)
(#19) Expected "#32373C" to be "#32373c" (color-hex-case)
(#26) Expected "#E1E1E1" to be "#e1e1e1" (color-hex-case)
(#30) Expected "#E1E1E1" to be "#e1e1e1" (color-hex-case)
(#35) Expected "#F9F9F9" to be "#f9f9f9" (color-hex-case)
(#85) Expected indentation of 4 spaces (indentation)
mod/hvp/view.css
(#74) Expected empty line before at-rule (at-rule-empty-line-before)
(#75) Expected newline before "}" (block-closing-brace-newline-before)
(#76) Expected newline before "}" (block-closing-brace-newline-before)
(#75) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#76) Expected single space before "}" of a single-line block (block-closing-brace-space-before)
(#75) Expected newline after "{" (block-opening-brace-newline-after)
(#76) Expected newline after "{" (block-opening-brace-newline-after)
(#75) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#76) Expected single space after "{" of a single-line block (block-opening-brace-space-after)
(#21) Expected "#333333" to be "#333" (color-hex-length)
(#2) Expected single space before "!" (declaration-bang-space-before)
(#75) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#76) Expected single space after ":" with a single-line declaration (declaration-colon-space-after)
(#2) Unexpected !important (declaration-no-important)
mod/hvp/xapi-custom-report.css
(#2) Expected "#FFF" to be "#fff" (color-hex-case)
(#3) Expected "#C9C9C9" to be "#c9c9c9" (color-hex-case)
(#5) Expected "#5C5C5C" to be "#5c5c5c" (color-hex-case)
(#35) Expected "#F3F3F3" to be "#f3f3f3" (color-hex-case)
(#36) Expected "#DFDFDF" to be "#dfdfdf" (color-hex-case)

PHPDocs style problems

(133 errors, 123 warnings)

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

mod/hvp/backup/moodle2/restore_hvp_activity_task.class.php
(#84) Inline phpdocs tag {@link restore_logs_processor} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#86) Inline phpdocs tag {@link restore_log_rule} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#100) Inline phpdocs tag {@link restore_logs_processor} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#102) Inline phpdocs tag {@link restore_log_rule} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
mod/hvp/backup/moodle2/restore_hvp_stepslib.php
(#61) Phpdocs for function restore_hvp_activity_structure_step::process_hvp has incomplete parameters list
(#85) Phpdocs for function restore_hvp_activity_structure_step::process_content_user_data has incomplete parameters list
(#185) Phpdocs for function restore_hvp_libraries_structure_step::process_hvp_library has incomplete parameters list
(#220) Phpdocs for function restore_hvp_libraries_structure_step::process_hvp_library_translation has incomplete parameters list
(#249) Phpdocs for function restore_hvp_libraries_structure_step::process_hvp_library_dependency has incomplete parameters list
(#297) Phpdocs for function restore_hvp_libraries_structure_step::get_library_id has incomplete parameters list
(#336) Phpdocs for function restore_hvp_libraries_structure_step::update_missing_dependencies has incomplete parameters list
mod/hvp/classes/admin_setting_html.php
(#25) Variable admin_setting_html::$hubinfo is not documented
(#19) No one-line description found in phpdocs for class admin_setting_html
(#30) Phpdocs for function admin_setting_html::__construct has incomplete parameters list
(#54) Phpdocs for function admin_setting_html::write_setting has incomplete parameters list
(#63) Phpdocs for function admin_setting_html::output_html has incomplete parameters list
(#19) Package is not specified for class admin_setting_html. It is also not specified in file-level phpdocs
mod/hvp/classes/content_user_data.php
(#75) Phpdocs for function content_user_data::store_data has incomplete parameters list
(#125) Phpdocs for function content_user_data::fetch_existing_data has incomplete parameters list
(#140) Phpdocs for function content_user_data::get_user_data has incomplete parameters list
(#164) Phpdocs for function content_user_data::save_user_data has incomplete parameters list
(#210) Phpdocs for function content_user_data::delete_user_data has incomplete parameters list
(#230) Phpdocs for function content_user_data::load_pre_loaded_user_data has incomplete parameters list
mod/hvp/classes/curl.php
(#41) There is no description in phpdocs for function post
(#50) There is no description in phpdocs for function put
(#41) Phpdocs for function curl::post has incomplete parameters list
(#50) Phpdocs for function curl::put has incomplete parameters list
(#42) Invalid phpdocs tag @inheritdoc used
(#51) Invalid phpdocs tag @inheritdoc used
mod/hvp/classes/editor_ajax.php
(#49) Function editor_ajax::getLatestLibraryVersions is not documented
(#87) Function editor_ajax::getContentTypeCache is not documented
(#109) Function editor_ajax::getAuthorsRecentlyUsedLibraries is not documented
(#136) Function editor_ajax::validateEditorToken is not documented
(#31) No one-line description found in phpdocs for class editor_ajax
mod/hvp/classes/editor_framework.php
(#55) Function editor_framework::getLanguage is not documented
(#83) Function editor_framework::keepFile is not documented
(#106) Function editor_framework::getLibraries is not documented
(#220) Function editor_framework::alterLibraryFiles is not documented
(#254) Function editor_framework::saveFileTemporarily is not documented
(#293) Function editor_framework::markFileForCleanup is not documented
(#313) Function editor_framework::removeTemporarilySavedFiles is not documented
(#33) No one-line description found in phpdocs for class editor_framework
mod/hvp/classes/event.php
(#29) Class event is not documented
(#66) Function event::saveStats is not documented
(#30) Variable event::$user is not documented
(#17) No one-line description found in phpdocs for file
(#32) There is no description in phpdocs for function __construct
(#32) Phpdocs for function event::__construct has incomplete parameters list
(#33) Invalid phpdocs tag @inheritdoc used
(#63) Invalid phpdocs tag @inheritdoc used
mod/hvp/classes/event/attempt_submitted.php
(#39) There is no description in phpdocs for function init
(#40) Invalid phpdocs tag @inheritDoc used
(#33) Invalid inline phpdocs tag @copyright found
mod/hvp/classes/event/course_module_instance_list_viewed.php
(#21) Invalid inline phpdocs tag @copyright found
(#33) Invalid inline phpdocs tag @copyright found
mod/hvp/classes/event/course_module_viewed.php
(#21) Invalid inline phpdocs tag @copyright found
(#33) Invalid inline phpdocs tag @copyright found
mod/hvp/classes/file_storage.php
(#49) Function file_storage::saveLibrary is not documented
(#76) Function file_storage::saveContent is not documented
(#101) Function file_storage::deleteContent is not documented
(#110) Function file_storage::cloneContent is not documented
(#120) Function file_storage::getTmpPath is not documented
(#135) Function file_storage::exportContent is not documented
(#150) Function file_storage::exportLibrary is not documented
(#165) Function file_storage::saveExport is not documented
(#194) Function file_storage::getExportFile is not documented
(#209) Function file_storage::deleteExport is not documented
(#224) Function file_storage::hasExport is not documented
(#238) Function file_storage::cacheAssets is not documented
(#301) Function file_storage::getCachedAssets is not documented
(#333) Function file_storage::deleteCachedAssets is not documented
(#351) Function file_storage::getContent is not documented
(#382) Function file_storage::saveFile is not documented
(#441) Function file_storage::cloneContentFile is not documented
(#492) Function file_storage::getContentFile is not documented
(#505) Function file_storage::removeContentFile is not documented
(#522) Function file_storage::readFileTree is not documented
(#561) Function file_storage::exportFileTree is not documented
(#597) Function file_storage::deleteFileTree is not documented
(#628) Function file_storage::getFile is not documented
(#655) Function file_storage::getFilepath is not documented
(#666) Function file_storage::getFilename is not documented
(#680) Function file_storage::fileExists is not documented
(#693) Function file_storage::hasWriteAccess is not documented
(#719) Function file_storage::moveContentDirectory is not documented
(#766) Function file_storage::moveFile is not documented
(#828) Function file_storage::moveFileTree is not documented
(#856) Function file_storage::hasPresave is not documented
(#870) Function file_storage::getUpgradeScript is not documented
(#893) Function file_storage::saveFileFromZip is not documented
(#909) Function file_storage::deleteLibrary is not documented
(#37) Invalid phpdocs tag @SuppressWarnings(PHPMD.TooManyPublicMethods) used
(#38) Invalid phpdocs tag @SuppressWarnings(PHPMD.ExcessiveClassComplexity) used
(#107) Invalid phpdocs tag @inheritdoc used
(#348) Invalid phpdocs tag @inheritdoc used
(#673) Not recommended phpdocs tag @method used
mod/hvp/classes/framework.php
(#153) Function framework::getPlatformInfo is not documented
(#167) Function framework::fetchExternalData is not documented
(#284) Function framework::setLibraryTutorialUrl is not documented
(#297) Function framework::setErrorMessage is not documented
(#307) Function framework::setInfoMessage is not documented
(#354) Function framework::printMessages is not documented
(#366) Function framework::getMessages is not documented
(#685) Function framework::getH5pPath is not documented
(#695) Function framework::getLibraryFileUrl is not documented
(#705) Function framework::getUploadedH5pFolderPath is not documented
(#723) Function framework::getUploadedH5pPath is not documented
(#737) Function framework::loadLibraries is not documented
(#758) Function framework::setUnsupportedLibraries is not documented
(#766) Function framework::getUnsupportedLibraries is not documented
(#774) Function framework::getAdminUrl is not documented
(#782) Function framework::getLibraryId is not documented
(#821) Function framework::isPatchedLibrary is not documented
(#850) Function framework::isInDevMode is not documented
(#858) Function framework::mayUpdateLibraries is not documented
(#891) Function framework::getLibraryUsage is not documented
(#922) Function framework::getLibraryContentCount is not documented
(#953) Function framework::saveLibraryData is not documented
(#1052) Function framework::pathsToCsv is not documented
(#1067) Function framework::lockDependencyStorage is not documented
(#1075) Function framework::unlockDependencyStorage is not documented
(#1083) Function framework::deleteLibrary is not documented
(#1103) Function framework::saveLibraryDependencies is not documented
(#1127) Function framework::updateContent is not documented
(#1182) Function framework::insertContent is not documented
(#1190) Function framework::resetContentUserData is not documented
(#1205) Function framework::getWhitelist is not documented
(#1213) Function framework::copyLibraryUsage is not documented
(#1231) Function framework::loadLibrarySemantics is not documented
(#1249) Function framework::alterLibrarySemantics is not documented
(#1262) Function framework::loadContent is not documented
(#1367) Function framework::loadContentDependencies is not documented
(#1406) Function framework::getOption is not documented
(#1418) Function framework::setOption is not documented
(#1426) Function framework::updateContentFields is not documented
(#1443) Function framework::deleteLibraryDependencies is not documented
(#1453) Function framework::deleteContentData is not documented
(#1470) Function framework::deleteLibraryUsage is not documented
(#1480) Function framework::saveLibraryUsage is not documented
(#1507) Function framework::loadLibrary is not documented
(#1559) Function framework::clearFilteredParameters is not documented
(#1578) Function framework::getNumNotFiltered is not documented
(#1591) Function framework::getNumContent is not documented
(#1604) Function framework::isContentSlugAvailable is not documented
(#1614) Function framework::saveCachedAssets is not documented
(#1630) Function framework::deleteCachedAssets is not documented
(#1654) Function framework::getLibraryStats is not documented
(#1680) Function framework::getNumAuthors is not documented
(#1694) Function framework::afterExportCreated is not documented
(#1705) Function framework::hasPermission is not documented
(#1746) Function framework::replaceContentTypeCache is not documented
(#1782) Function framework::loadAddons is not documented
(#1819) Function framework::getLibraryConfig is not documented
(#1828) Function framework::libraryHasUpgrade is not documented
(#1854) Function framework::replaceContentHubMetadataCache is not documented
(#1881) Function framework::getContentHubMetadataCache is not documented
(#1896) Function framework::getContentHubMetadataChecked is not documented
(#1916) Function framework::setContentHubMetadataChecked is not documented
(#370) Phpdocs for function framework::t has incomplete parameters list
(#41) Invalid phpdocs tag @SuppressWarnings(PHPMD) used
(#164) Invalid phpdocs tag @inheritdoc used
(#755) Invalid phpdocs tag @inheritdoc used
(#779) Invalid phpdocs tag @inheritdoc used
(#1100) Invalid phpdocs tag @inheritdoc used
(#1124) Invalid phpdocs tag @inheritdoc used
(#1179) Invalid phpdocs tag @inheritdoc used
(#1187) Invalid phpdocs tag @inheritdoc used
(#1202) Invalid phpdocs tag @inheritdoc used
(#1210) Invalid phpdocs tag @inheritdoc used
(#1228) Invalid phpdocs tag @inheritdoc used
(#1246) Invalid phpdocs tag @inheritdoc used
(#1403) Invalid phpdocs tag @inheritdoc used
(#1477) Invalid phpdocs tag @inheritdoc used
(#1691) Invalid phpdocs tag @inheritdoc used
(#1851) Invalid phpdocs tag @inheritdoc used
(#1878) Invalid phpdocs tag @inheritdoc used
(#1893) Invalid phpdocs tag @inheritdoc used
(#1913) Invalid phpdocs tag @inheritdoc used
(#1699) Not recommended phpdocs tag @method used
mod/hvp/classes/mobile_auth.php
(#29) Class mobile_auth is not documented
(#31) Constant mobile_auth::VALID_TIME is not documented
(#83) Phpdocs for function mobile_auth::has_valid_token has incomplete parameters list
mod/hvp/classes/output/mobile.php
(#24) Class mobile is not documented
(#26) Function mobile::mobile_course_view is not documented
(#24) Package is not specified for class mobile. It is also not specified in file-level phpdocs
mod/hvp/classes/privacy/provider.php
(#220) Phpdocs for function provider::get_exportable_content_user_data has incomplete parameters list
(#266) Phpdocs for function provider::get_exportable_xapi_results has incomplete parameters list
(#347) Phpdocs for function provider::get_exportable_events has incomplete parameters list
(#17) File-level phpdocs block does not have @copyright tag
(#17) File-level phpdocs block does not have @license tag
(#33) Package is not specified for class provider. It is also not specified in file-level phpdocs
mod/hvp/classes/results.php
(#39) Variable results::$contentid is not documented
(#42) Variable results::$offset is not documented
(#42) Variable results::$limit is not documented
(#42) Variable results::$orderby is not documented
(#42) Variable results::$orderdir is not documented
(#42) Variable results::$filters is not documented
(#119) Phpdocs for function results::get_human_readable_results has incomplete parameters list
(#371) Phpdocs for function results::get_sql_results has incomplete parameters list
mod/hvp/classes/task/look_for_updates.php
(#36) Function look_for_updates::get_name is not documented
(#40) Function look_for_updates::execute is not documented
mod/hvp/classes/task/remove_old_auth_tokens.php
(#39) Function remove_old_auth_tokens::get_name is not documented
(#43) Function remove_old_auth_tokens::execute is not documented
mod/hvp/classes/task/remove_old_log_entries.php
(#36) Function remove_old_log_entries::get_name is not documented
(#40) Function remove_old_log_entries::execute is not documented
mod/hvp/classes/task/remove_tmpfiles.php
(#36) Function remove_tmpfiles::get_name is not documented
(#40) Function remove_tmpfiles::execute is not documented
mod/hvp/classes/user_grades.php
(#36) Function user_grades::handle_ajax is not documented
mod/hvp/classes/view_assets.php
(#48) Function view_assets::__construct is not documented
(#245) Function view_assets::getcontent is not documented
(#37) Variable view_assets::$cm is not documented
(#38) Variable view_assets::$course is not documented
(#39) Variable view_assets::$core is not documented
(#40) Variable view_assets::$content is not documented
(#41) Variable view_assets::$jsrequires is not documented
(#42) Variable view_assets::$cssrequires is not documented
(#44) Variable view_assets::$settings is not documented
(#45) Variable view_assets::$embedtype is not documented
(#46) Variable view_assets::$files is not documented
(#119) Phpdocs for function view_assets::getexportsettings has incomplete parameters list
(#146) Phpdocs for function view_assets::getembedcode has incomplete parameters list
(#171) Phpdocs for function view_assets::getresizecode has incomplete parameters list
mod/hvp/db/install.php
(#17) File-level phpdocs block is not found
(#19) Function xmldb_hvp_install is not documented
(#19) Package is not specified for function xmldb_hvp_install. It is also not specified in file-level phpdocs
mod/hvp/db/mobile.php
(#17) File-level phpdocs block is not found
mod/hvp/db/upgrade.php
(#343) Function hvp_upgrade_2018090300 is not documented
(#484) Function hvp_upgrade_2020080400 is not documented
(#498) Function hvp_upgrade_2020080401 is not documented
(#510) Function hvp_upgrade_2020082800 is not documented
(#539) Function hvp_upgrade_2020112600 is not documented
mod/hvp/lang/en/hvp.php
(#17) File-level phpdocs block is not found
mod/hvp/lib.php
(#44) Inline phpdocs tag {@link plugin_supports()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
mod/hvp/locallib.php
(#36) Phpdocs for function hvp_get_core_settings has incomplete parameters list
(#289) Phpdocs for function hvp_restrict_library has incomplete parameters list
(#304) Phpdocs for function hvp_content_upgrade_progress has incomplete parameters list
(#481) Phpdocs for function hvp_send_notification has incomplete parameters list
(#516) Phpdocs for function hvp_send_confirmation has incomplete parameters list
(#648) Phpdocs for function hvp_attempt_submitted_handler has incomplete parameters list
(#670) Phpdocs for function hvp_update_hub_status has incomplete parameters list
(#694) Phpdocs for function hvp_create_hub_export_url has incomplete parameters list
(#303) Not recommended phpdocs tag @method used
(#406) Not recommended phpdocs tag @method used
(#485) Inline phpdocs tag {@link message_send()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#519) Inline phpdocs tag {@link message_send()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
mod/hvp/mod_form.php
(#28) Class mod_hvp_mod_form is not documented
(#30) Function mod_hvp_mod_form::definition is not documented
(#173) Function mod_hvp_mod_form::data_preprocessing is not documented
(#436) Function mod_hvp_mod_form::add_completion_rules is not documented
(#126) Phpdocs for function mod_hvp_mod_form::set_display_options has incomplete parameters list
(#151) Phpdocs for function mod_hvp_mod_form::set_max_grade has incomplete parameters list
(#222) Phpdocs for function mod_hvp_mod_form::validate_upload has incomplete parameters list
(#273) Phpdocs for function mod_hvp_mod_form::validate_created has incomplete parameters list
mod/hvp/renderer.php
(#33) Invalid phpdocs tag @SuppressWarnings(PHPMD) used
mod/hvp/version.php
(#17) No one-line description found in phpdocs for file
(#18) 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]


grunt changes

(1 errors, 1 warnings)

This section shows files built by grunt and not commited [More info]

Problems running grunt
Task "eslint:amd" failed. Use --force to continue.

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 11 warnings)

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

mod/hvp/templates/contact_site_administrator.mustache
(#1) Example context missing (@template section not found.)
mod/hvp/templates/content_hub_registration.mustache
(#1) Example context missing (@template section not found.)
mod/hvp/templates/content_hub_registration_box.mustache
(#1) Example context missing (@template section not found.)
mod/hvp/templates/hub_options.mustache
(#1) Example context missing (@template section not found.)
mod/hvp/templates/iframe_embedding_disabled.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 4: Attribute “core-link” not allowed on element “a” at this point. (dding" in <a href="/admin/settings.php?section=httpsecurity" core-link>Site A)
mod/hvp/templates/mobile_view_page.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 9: Bad value “100%” for attribute “width” on element “iframe”: Expected a digit but saw “%” instead. (te;"> <iframe width="100%" height="100%" src="/mod/hvp/embed.php?id=&user_id=&secret=" frameborder="0" allow="microphone; camera" allowfullscreen="allowfullscreen"> <)
(#1) HTML Validation error, line 9: Bad value “100%” for attribute “height” on element “iframe”: Expected a digit but saw “%” instead. (te;"> <iframe width="100%" height="100%" src="/mod/hvp/embed.php?id=&user_id=&secret=" frameborder="0" allow="microphone; camera" allowfullscreen="allowfullscreen"> <)
(#1) HTML Validation error, line 9: The “frameborder” attribute on the “iframe” element is obsolete. Use CSS instead. (te;"> <iframe width="100%" height="100%" src="/mod/hvp/embed.php?id=&user_id=&secret=" frameborder="0" allow="microphone; camera" allowfullscreen="allowfullscreen"> <)
mod/hvp/templates/review.mustache
(#1) Example context missing (@template section not found.)

Gherkin .feature problems

(0 errors, 0 warnings)

This section shows problems detected in behat .feature files [More info]