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

(415 errors, 215 warnings)

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

mod/quiz/report/archiver/classes/ArchiveJob.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#40) Member variable "course_id" must not contain underscores.
(#42) Member variable "cm_id" must not contain underscores.
(#44) Member variable "quiz_id" must not contain underscores.
(#46) Member variable "user_id" must not contain underscores.
(#53) Member variable "tspManager" must be all lower-case
(#62) Inline comments must end in full-stops, exclamation marks, or question marks
(#90) Variable "course_id" must not contain underscores.
(#90) Variable "cm_id" must not contain underscores.
(#90) Variable "quiz_id" must not contain underscores.
(#90) Variable "user_id" must not contain underscores.
(#90) Line exceeds 132 characters; contains 151 characters
(#93) Variable "course_id" must not contain underscores.
(#94) Variable "cm_id" must not contain underscores.
(#95) Variable "quiz_id" must not contain underscores.
(#96) Variable "user_id" must not contain underscores.
(#99) Inline comments must end in full-stops, exclamation marks, or question marks
(#108) Public method name "ArchiveJob::TSPManager" must be in lower-case letters only
(#131) Variable "course_id" must not contain underscores.
(#131) Variable "cm_id" must not contain underscores.
(#131) Variable "quiz_id" must not contain underscores.
(#131) Variable "user_id" must not contain underscores.
(#131) Line exceeds maximum limit of 180 characters; contains 191 characters
(#139) Inline comments must end in full-stops, exclamation marks, or question marks
(#143) Variable "course_id" must not contain underscores.
(#144) Variable "cm_id" must not contain underscores.
(#145) Variable "quiz_id" must not contain underscores.
(#146) Variable "user_id" must not contain underscores.
(#150) There should be a comma after the last array item in a multi-line array.
(#153) Inline comments must end in full-stops, exclamation marks, or question marks
(#158) There should be a comma after the last array item in a multi-line array.
(#162) Variable "course_id" must not contain underscores.
(#162) Variable "cm_id" must not contain underscores.
(#162) Variable "quiz_id" must not contain underscores.
(#162) Variable "user_id" must not contain underscores.
(#233) Variable "course_id" must not contain underscores.
(#233) Variable "cm_id" must not contain underscores.
(#233) Variable "quiz_id" must not contain underscores.
(#236) Variable "course_id" must not contain underscores.
(#237) Variable "cm_id" must not contain underscores.
(#238) There should be a comma after the last array item in a multi-line array.
(#238) Variable "quiz_id" must not contain underscores.
(#267) Variable "course_id" must not contain underscores.
(#267) Variable "cm_id" must not contain underscores.
(#267) Variable "quiz_id" must not contain underscores.
(#276) The use of the AS keyword to alias tables is bad for cross-db
(#277) The use of the AS keyword to alias tables is bad for cross-db
(#286) Variable "course_id" must not contain underscores.
(#287) Variable "cm_id" must not contain underscores.
(#288) There should be a comma after the last array item in a multi-line array.
(#288) Variable "quiz_id" must not contain underscores.
(#293) Inline comments must end in full-stops, exclamation marks, or question marks
(#294) Variable "artifactfile_metadata" must not contain underscores.
(#308) Variable "artifactfile_metadata" must not contain underscores.
(#313) There should be a comma after the last array item in a multi-line array.
(#318) Inline comments must end in full-stops, exclamation marks, or question marks
(#341) There should be a comma after the last array item in a multi-line array.
(#345) Inline comments must end in full-stops, exclamation marks, or question marks
(#357) There should be a comma after the last array item in a multi-line array.
(#361) There should be a comma after the last array item in a multi-line array.
(#366) There should be a comma after the last array item in a multi-line array.
(#368) Variable "artifactfile_metadata" must not contain underscores.
(#404) Inline comments must end in full-stops, exclamation marks, or question marks
(#412) Inline comments must end in full-stops, exclamation marks, or question marks
(#415) Inline comments must end in full-stops, exclamation marks, or question marks
(#432) Variable "timeout_min" must not contain underscores.
(#437) Inline comments must end in full-stops, exclamation marks, or question marks
(#438) Variable "timeout_min" must not contain underscores.
(#552) Variable "delete_wstoken_if_completed" must not contain underscores.
(#553) Variable "delete_temporary_files_if_completed" must not contain underscores.
(#563) Variable "delete_wstoken_if_completed" must not contain underscores.
(#567) Variable "delete_temporary_files_if_completed" must not contain underscores.
(#642) The use of the AS keyword to alias tables is bad for cross-db
(#642) Line exceeds 132 characters; contains 154 characters
(#646) Inline control structures are not allowed
(#677) Variable "file_id" must not contain underscores.
(#680) Inline control structures are not allowed
(#680) Variable "file_id" must not contain underscores.
(#684) Variable "file_id" must not contain underscores.
(#686) There should be a comma after the last array item in a multi-line array.
(#704) There should be a comma after the last array item in a multi-line array.
(#718) Variable "num_deleted_files" must not contain underscores.
(#725) Variable "num_deleted_files" must not contain underscores.
(#729) Variable "num_deleted_files" must not contain underscores.
mod/quiz/report/archiver/classes/BackupManager.php
(#42) Member variable "backup_metadata" must not contain underscores.
(#147) Variable "user_id" must not contain underscores.
(#150) Inline comments must end in full-stops, exclamation marks, or question marks
(#162) Inline comments must end in full-stops, exclamation marks, or question marks
(#169) Variable "user_id" must not contain underscores.
(#175) Inline comments must end in full-stops, exclamation marks, or question marks
(#181) Variable "setting_name" must not contain underscores.
(#181) Variable "setting_value" must not contain underscores.
(#182) Variable "setting_name" must not contain underscores.
(#182) Variable "setting_value" must not contain underscores.
(#187) Inline comments must end in full-stops, exclamation marks, or question marks
(#192) Variable "user_id" must not contain underscores.
(#195) Inline comments must end in full-stops, exclamation marks, or question marks
(#205) Variable "internal_wwwroot" must not contain underscores.
(#206) Variable "internal_wwwroot" must not contain underscores.
(#207) Variable "internal_wwwroot" must not contain underscores.
(#212) Variable "user_id" must not contain underscores.
(#234) Variable "cm_id" must not contain underscores.
(#234) Variable "user_id" must not contain underscores.
(#235) Variable "cm_id" must not contain underscores.
(#235) Variable "user_id" must not contain underscores.
(#247) Variable "course_id" must not contain underscores.
(#247) Variable "user_id" must not contain underscores.
(#248) Variable "course_id" must not contain underscores.
(#248) Variable "user_id" must not contain underscores.
mod/quiz/report/archiver/classes/FileManager.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#52) Member variable "course_id" must not contain underscores.
(#54) Member variable "cm_id" must not contain underscores.
(#56) Member variable "quiz_id" must not contain underscores.
(#68) Variable "course_id" must not contain underscores.
(#68) Variable "cm_id" must not contain underscores.
(#68) Variable "quiz_id" must not contain underscores.
(#69) Variable "course_id" must not contain underscores.
(#70) Variable "cm_id" must not contain underscores.
(#71) Variable "quiz_id" must not contain underscores.
(#72) Variable "course_id" must not contain underscores.
(#84) Variable "course_id" must not contain underscores.
(#84) Variable "cm_id" must not contain underscores.
(#84) Variable "quiz_id" must not contain underscores.
(#87) Variable "course_id" must not contain underscores.
(#88) Variable "course_id" must not contain underscores.
(#90) Variable "cm_id" must not contain underscores.
(#91) Variable "cm_id" must not contain underscores.
(#93) Variable "quiz_id" must not contain underscores.
(#94) Variable "quiz_id" must not contain underscores.
(#124) Inline comments must end in full-stops, exclamation marks, or question marks
(#129) Inline comments must end in full-stops, exclamation marks, or question marks
(#142) 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
(#191) Inline comments must end in full-stops, exclamation marks, or question marks
(#193) Variable "hash_ctx" must not contain underscores.
(#195) Variable "hash_ctx" must not contain underscores.
(#198) Variable "hash_ctx" must not contain underscores.
(#247) Inline comments must end in full-stops, exclamation marks, or question marks
(#267) Inline comments must end in full-stops, exclamation marks, or question marks
(#282) Inline comments must end in full-stops, exclamation marks, or question marks
(#296) Inline comments must end in full-stops, exclamation marks, or question marks
mod/quiz/report/archiver/classes/RemoteArchiveWorker.php
(#29) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#38) Member variable "server_url" must not contain underscores.
(#40) Member variable "connection_timeout" must not contain underscores.
(#42) Member variable "request_timeout" must not contain underscores.
(#57) Variable "server_url" must not contain underscores.
(#57) Variable "connection_timeout" must not contain underscores.
(#57) Variable "request_timeout" must not contain underscores.
(#58) Variable "server_url" must not contain underscores.
(#59) Variable "connection_timeout" must not contain underscores.
(#60) Variable "request_timeout" must not contain underscores.
(#83) Variable "task_archive_quiz_attempts" must not contain underscores.
(#83) Variable "task_moodle_backups" must not contain underscores.
(#83) Line exceeds 132 characters; contains 148 characters
(#85) Variable "moodle_url_base" must not contain underscores.
(#87) Inline comments must end in full-stops, exclamation marks, or question marks
(#88) Variable "request_payload" must not contain underscores.
(#90) Variable "moodle_url_base" must not contain underscores.
(#91) Variable "moodle_url_base" must not contain underscores.
(#96) Variable "task_archive_quiz_attempts" must not contain underscores.
(#97) Variable "task_moodle_backups" must not contain underscores.
(#102) Line exceeds 132 characters; contains 144 characters
(#102) Inline comments must end in full-stops, exclamation marks, or question marks
(#103) Variable "request_payload" must not contain underscores.
(#108) Variable "request_payload" must not contain underscores.
(#109) There should be a comma after the last array item in a multi-line array.
(#112) Variable "http_status" must not contain underscores.
(#112) 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
(#116) Variable "http_status" must not contain underscores.
(#118) Variable "http_status" must not contain underscores.
(#118) Line exceeds 132 characters; contains 133 characters
(#127) Inline comments must end in full-stops, exclamation marks, or question marks
mod/quiz/report/archiver/classes/Report.php
(#103) Inline comments must end in full-stops, exclamation marks, or question marks
(#108) There should be a comma after the last array item in a multi-line array.
(#111) 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
(#157) Variable "filter_attemptids" must not contain underscores.
(#160) Inline comments must end in full-stops, exclamation marks, or question marks
(#161) Variable "filter_attemptids" must not contain underscores.
(#162) Variable "filter_where_clause" must not contain underscores.
(#162) Variable "filter_attemptids" must not contain underscores.
(#162) Line exceeds 132 characters; contains 133 characters
(#165) Inline comments must end in full-stops, exclamation marks, or question marks
(#167) Line exceeds 132 characters; contains 140 characters
(#169) Variable "filter_where_clause" must not contain underscores.
(#171) There should be a comma after the last array item in a multi-line array.
(#221) There should be a comma after the last array item in a multi-line array.
(#255) Variable "archive_quiz_form_data" must not contain underscores.
(#256) Inline comments must end in full-stops, exclamation marks, or question marks
(#257) Variable "report_sections" must not contain underscores.
(#259) Variable "report_sections" must not contain underscores.
(#259) Variable "archive_quiz_form_data" must not contain underscores.
(#262) Inline comments must end in full-stops, exclamation marks, or question marks
(#265) Variable "report_sections" must not contain underscores.
(#266) Variable "report_sections" must not contain underscores.
(#271) Variable "report_sections" must not contain underscores.
(#291) Inline comments must end in full-stops, exclamation marks, or question marks
(#313) Inline comments must start with a capital letter, digit or 3-dots sequence
(#316) Variable "quiz_header_data" must not contain underscores.
(#317) Variable "attempt_user" must not contain underscores.
(#318) Variable "attempt_user" must not contain underscores.
(#320) Variable "quiz_header_data" must not contain underscores.
(#323) Variable "attempt_user" must not contain underscores.
(#324) Variable "attempt_user" must not contain underscores.
(#328) Inline comments must end in full-stops, exclamation marks, or question marks
(#329) Variable "quiz_header_data" must not contain underscores.
(#331) There should be a comma after the last array item in a multi-line array.
(#334) Variable "quiz_header_data" must not contain underscores.
(#336) There should be a comma after the last array item in a multi-line array.
(#340) Variable "quiz_header_data" must not contain underscores.
(#345) Variable "quiz_header_data" must not contain underscores.
(#351) Variable "quiz_header_data" must not contain underscores.
(#355) Variable "quiz_header_data" must not contain underscores.
(#362) Variable "quiz_header_data" must not contain underscores.
(#368) Inline comments must end in full-stops, exclamation marks, or question marks
(#372) Variable "quiz_header_data" must not contain underscores.
(#384) Variable "quiz_header_data" must not contain underscores.
(#401) Variable "quiz_header_data" must not contain underscores.
(#409) Variable "quiz_header_data" must not contain underscores.
(#409) Variable "quiz_header_data" must not contain underscores.
(#415) Variable "quiz_header_data" must not contain underscores.
(#422) Inline comments must end in full-stops, exclamation marks, or question marks
(#423) Variable "quiz_header_data" must not contain underscores.
(#428) Inline comments must end in full-stops, exclamation marks, or question marks
(#429) Variable "quiz_header_data" must not contain underscores.
(#432) Inline comments must start with a capital letter, digit or 3-dots sequence
(#483) Variable "fix_relative_urls" must not contain underscores.
(#483) Variable "inline_images" must not contain underscores.
(#483) Line exceeds 132 characters; contains 163 characters
(#486) Inline comments must end in full-stops, exclamation marks, or question marks
(#492) Inline comments must end in full-stops, exclamation marks, or question marks
(#498) Inline comments must end in full-stops, exclamation marks, or question marks
(#499) Variable "fix_relative_urls" must not contain underscores.
(#500) Variable "baseNode" must be all lower-case
(#501) Variable "baseNode" must be all lower-case
(#502) Variable "baseNode" must be all lower-case
(#505) Inline comments must end in full-stops, exclamation marks, or question marks
(#509) Variable "cssHacksNode" must be all lower-case
(#513) Whitespace found at end of line within string
(#517) Whitespace found at end of line within string
(#524) Whitespace found at end of line within string
(#528) Whitespace found at end of line within string
(#533) Variable "cssHacksNode" must be all lower-case
(#536) Inline comments must end in full-stops, exclamation marks, or question marks
(#537) Variable "inline_images" must not contain underscores.
(#549) Line exceeds 132 characters; contains 141 characters
(#552) Line exceeds maximum limit of 180 characters; contains 231 characters
(#555) Line exceeds maximum limit of 180 characters; contains 288 characters
(#567) There should be a comma after the last array item in a multi-line array.
(#580) Inline comments must end in full-stops, exclamation marks, or question marks
(#585) Inline comments must end in full-stops, exclamation marks, or question marks
(#586) Variable "img_src" must not contain underscores.
(#588) Inline comments must end in full-stops, exclamation marks, or question marks
(#590) Variable "moodle_baseurl" must not contain underscores.
(#592) Variable "img_src" must not contain underscores.
(#592) Variable "img_src" must not contain underscores.
(#594) Variable "img_src_url" must not contain underscores.
(#594) Variable "img_src" must not contain underscores.
(#594) Variable "moodle_baseurl" must not contain underscores.
(#596) Perl-style comments are not allowed; use "// Comment." instead
(#597) Variable "img_src_url" must not contain underscores.
(#597) Inline comments must end in full-stops, exclamation marks, or question marks
(#601) Inline comments must end in full-stops, exclamation marks, or question marks
(#602) Variable "img_ext" must not contain underscores.
(#602) Variable "img_src_url" must not contain underscores.
(#603) Variable "img_ext" must not contain underscores.
(#607) Inline comments must end in full-stops, exclamation marks, or question marks
(#608) Variable "regex_matches" must not contain underscores.
(#609) Variable "img_data" must not contain underscores.
(#610) Variable "img_src_url" must not contain underscores.
(#610) Variable "regex_matches" must not contain underscores.
(#611) Inline comments must start with a capital letter, digit or 3-dots sequence
(#612) Line exceeds 132 characters; contains 145 characters
(#613) Variable "regex_matches" must not contain underscores.
(#613) Variable "regex_matches" must not contain underscores.
(#614) Variable "regex_matches" must not contain underscores.
(#615) Inline control structures are not allowed
(#615) Variable "img_src_url" must not contain underscores.
(#615) Variable "regex_matches" must not contain underscores.
(#618) Inline comments must end in full-stops, exclamation marks, or question marks
(#621) Variable "regex_matches" must not contain underscores.
(#622) Variable "regex_matches" must not contain underscores.
(#623) Variable "regex_matches" must not contain underscores.
(#624) Variable "regex_matches" must not contain underscores.
(#624) Variable "regex_matches" must not contain underscores.
(#625) Inline comments must end in full-stops, exclamation marks, or question marks
(#626) Variable "regex_matches" must not contain underscores.
(#632) Variable "img_data" must not contain underscores.
(#633) Variable "img_src_url" must not contain underscores.
(#633) Variable "regex_matches" must not contain underscores.
(#634) Inline comments must start with a capital letter, digit or 3-dots sequence
(#636) Variable "regex_matches" must not contain underscores.
(#640) Variable "img_data" must not contain underscores.
(#642) Inline comments must start with a capital letter, digit or 3-dots sequence
(#645) Variable "img_data" must not contain underscores.
(#645) Variable "img_src_url" must not contain underscores.
(#645) Inline comments must end in full-stops, exclamation marks, or question marks
(#646) Variable "img_data" must not contain underscores.
(#651) Inline comments must end in full-stops, exclamation marks, or question marks
(#652) Variable "img_data" must not contain underscores.
(#655) Variable "img_base64" must not contain underscores.
(#655) Variable "img_data" must not contain underscores.
(#656) Variable "img_ext" must not contain underscores.
(#656) Variable "img_base64" must not contain underscores.
(#682) The use of function extract() is forbidden
(#697) Expected "for (...) {\n"; found "for (...) {"
(#697) Empty FOR statement detected
(#697) Closing brace must be on a line by itself
mod/quiz/report/archiver/classes/TSPManager.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#80) Variable "num_tsp_records" must not contain underscores.
(#81) There should be a comma after the last array item in a multi-line array.
(#84) Variable "num_tsp_records" must not contain underscores.
(#120) 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
(#135) Inline comments must end in full-stops, exclamation marks, or question marks
mod/quiz/report/archiver/classes/TimeStampProtocolClient.php
(#29) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#49) Variable "server_url" must not contain underscores.
(#50) Variable "server_url" must not contain underscores.
(#72) 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
(#89) Inline comments must end in full-stops, exclamation marks, or question marks
(#90) Inline comments must end in full-stops, exclamation marks, or question marks
(#93) Variable "curl_info" must not contain underscores.
(#96) Variable "curl_info" must not contain underscores.
(#97) Variable "curl_info" must not contain underscores.
(#100) Variable "curl_info" must not contain underscores.
(#101) Variable "curl_info" must not contain underscores.
(#104) Inline comments must end in full-stops, exclamation marks, or question marks
(#107) There should be a comma after the last array item in a multi-line array.
(#117) Public method name "TimeStampProtocolClient::generateNonce" must be in lower-case letters only
(#133) Protected method name "TimeStampProtocolClient::createTimeStampReq" must be in lower-case letters only
(#133) Variable "requestTSAPublicKey" must be all lower-case
(#134) Inline comments must end in full-stops, exclamation marks, or question marks
(#142) Inline comments must end in full-stops, exclamation marks, or question marks
(#144) Inline comments must start with a capital letter, digit or 3-dots sequence
(#146) Inline comments must end in full-stops, exclamation marks, or question marks
(#148) Inline comments must end in full-stops, exclamation marks, or question marks
(#149) Inline comments must end in full-stops, exclamation marks, or question marks
(#151) Inline comments must end in full-stops, exclamation marks, or question marks
(#152) Inline comments must end in full-stops, exclamation marks, or question marks
(#158) Inline comments must end in full-stops, exclamation marks, or question marks
(#160) Inline comments must start with a capital letter, digit or 3-dots sequence
(#161) Inline comments must end in full-stops, exclamation marks, or question marks
(#163) Inline comments must start with a capital letter, digit or 3-dots sequence
(#164) Inline comments must end in full-stops, exclamation marks, or question marks
(#166) Inline comments must start with a capital letter, digit or 3-dots sequence
(#167) Variable "requestTSAPublicKey" must be all lower-case
(#168) 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
(#175) Inline comments must start with a capital letter, digit or 3-dots sequence
(#178) Inline comments must end in full-stops, exclamation marks, or question marks
mod/quiz/report/archiver/classes/external/generate_attempt_report.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#86) Variable "courseid_raw" must not contain underscores.
(#86) Variable "cmid_raw" must not contain underscores.
(#86) Variable "quizid_raw" must not contain underscores.
(#86) Variable "attemptid_raw" must not contain underscores.
(#86) Variable "sections_raw" must not contain underscores.
(#89) Inline comments must end in full-stops, exclamation marks, or question marks
(#91) Variable "courseid_raw" must not contain underscores.
(#92) Variable "cmid_raw" must not contain underscores.
(#93) Variable "quizid_raw" must not contain underscores.
(#94) Variable "attemptid_raw" must not contain underscores.
(#95) Variable "sections_raw" must not contain underscores.
(#98) Inline comments must end in full-stops, exclamation marks, or question marks
(#102) Inline comments must end in full-stops, exclamation marks, or question marks
(#113) Inline comments must end in full-stops, exclamation marks, or question marks
mod/quiz/report/archiver/classes/external/get_attempts_metadata.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#88) Variable "courseid_raw" must not contain underscores.
(#88) Variable "cmid_raw" must not contain underscores.
(#88) Variable "quizid_raw" must not contain underscores.
(#88) Variable "attemptids_raw" must not contain underscores.
(#91) Inline comments must end in full-stops, exclamation marks, or question marks
(#93) Variable "courseid_raw" must not contain underscores.
(#94) Variable "cmid_raw" must not contain underscores.
(#95) Variable "quizid_raw" must not contain underscores.
(#96) There should be a comma after the last array item in a multi-line array.
(#96) Variable "attemptids_raw" must not contain underscores.
(#99) Inline comments must end in full-stops, exclamation marks, or question marks
(#103) Inline comments must end in full-stops, exclamation marks, or question marks
(#114) Inline comments must end in full-stops, exclamation marks, or question marks
(#118) There should be a comma after the last array item in a multi-line array.
(#121) Variable "attempt_metadata" must not contain underscores.
(#127) Variable "attempt_metadata" must not contain underscores.
(#128) There should be a comma after the last array item in a multi-line array.
mod/quiz/report/archiver/classes/external/get_backup_status.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#66) Variable "jobid_raw" must not contain underscores.
(#67) Variable "backupid_raw" must not contain underscores.
(#69) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) Variable "jobid_raw" must not contain underscores.
(#72) Variable "backupid_raw" must not contain underscores.
(#75) Inline comments must end in full-stops, exclamation marks, or question marks
(#82) 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
(#91) Inline comments must end in full-stops, exclamation marks, or question marks
(#110) Inline comments must end in full-stops, exclamation marks, or question marks
mod/quiz/report/archiver/classes/external/process_uploaded_artifact.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#80) Variable "jobid_raw" must not contain underscores.
(#81) Variable "artifact_component_raw" must not contain underscores.
(#82) Variable "artifact_contextid_raw" must not contain underscores.
(#83) Variable "artifact_userid_raw" must not contain underscores.
(#84) Variable "artifact_filearea_raw" must not contain underscores.
(#85) Variable "artifact_filename_raw" must not contain underscores.
(#86) Variable "artifact_filepath_raw" must not contain underscores.
(#87) Variable "artifact_itemid_raw" must not contain underscores.
(#88) Variable "artifact_sha256sum_raw" must not contain underscores.
(#90) Inline comments must end in full-stops, exclamation marks, or question marks
(#92) Variable "jobid_raw" must not contain underscores.
(#93) Variable "artifact_component_raw" must not contain underscores.
(#94) Variable "artifact_contextid_raw" must not contain underscores.
(#95) Variable "artifact_userid_raw" must not contain underscores.
(#96) Variable "artifact_filearea_raw" must not contain underscores.
(#97) Variable "artifact_filename_raw" must not contain underscores.
(#98) Variable "artifact_filepath_raw" must not contain underscores.
(#99) Variable "artifact_itemid_raw" must not contain underscores.
(#100) Variable "artifact_sha256sum_raw" must not contain underscores.
(#103) 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
(#124) Inline comments must end in full-stops, exclamation marks, or question marks
(#152) 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
(#168) Empty CATCH statement detected
(#172) Expected 1 space before comment text but found 5; use block comment if you need indentation
(#173) Inline comments must end in full-stops, exclamation marks, or question marks
(#177) Inline comments must end in full-stops, exclamation marks, or question marks
mod/quiz/report/archiver/classes/external/update_job_status.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#62) Variable "jobid_raw" must not contain underscores.
(#63) Variable "status_raw" must not contain underscores.
(#65) Inline comments must end in full-stops, exclamation marks, or question marks
(#67) Variable "jobid_raw" must not contain underscores.
(#68) Variable "status_raw" must not contain underscores.
(#74) 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
mod/quiz/report/archiver/classes/form/archive_quiz_form.php
(#40) Member variable "quiz_name" must not contain underscores.
(#42) Member variable "num_attempts" must not contain underscores.
(#50) Variable "quiz_name" must not contain underscores.
(#50) Variable "num_attempts" must not contain underscores.
(#51) Variable "quiz_name" must not contain underscores.
(#52) Variable "num_attempts" must not contain underscores.
(#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
(#72) 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
(#78) Inline comments must end in full-stops, exclamation marks, or question marks
(#79) Line exceeds maximum limit of 180 characters; contains 210 characters
(#84) Line exceeds 132 characters; contains 155 characters
(#93) Inline comments must end in full-stops, exclamation marks, or question marks
(#94) Line exceeds 132 characters; contains 147 characters
(#102) Inline comments must end in full-stops, exclamation marks, or question marks
(#106) Line exceeds maximum limit of 180 characters; contains 191 characters
(#110) Inline comments must end in full-stops, exclamation marks, or question marks
mod/quiz/report/archiver/classes/form/job_delete_form.php
(#43) Inline comments must end in full-stops, exclamation marks, or question marks
(#44) Variable "warn_head" must not contain underscores.
(#45) Variable "warn_msg" must not contain underscores.
(#46) Variable "warn_details" must not contain underscores.
(#49) Variable "warn_head" must not contain underscores.
(#50) Variable "warn_msg" must not contain underscores.
(#52) Variable "warn_details" must not contain underscores.
(#56) 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
(#68) Inline comments must end in full-stops, exclamation marks, or question marks
mod/quiz/report/archiver/classes/form/job_sign_form.php
(#43) Inline comments must end in full-stops, exclamation marks, or question marks
(#44) Variable "warn_head" must not contain underscores.
(#45) Variable "warn_msg" must not contain underscores.
(#46) Variable "warn_details" must not contain underscores.
(#49) Variable "warn_head" must not contain underscores.
(#50) Variable "warn_msg" must not contain underscores.
(#52) Variable "warn_details" must not contain underscores.
(#56) 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
(#68) Inline comments must end in full-stops, exclamation marks, or question marks
mod/quiz/report/archiver/classes/output/job_overview_table.php
(#69) Line exceeds 132 characters; contains 137 characters
(#70) The use of the AS keyword to alias tables is bad for cross-db
(#70) Line exceeds 132 characters; contains 138 characters
(#104) Line exceeds 132 characters; contains 141 characters
(#140) Inline comments must end in full-stops, exclamation marks, or question marks
(#141) Line exceeds maximum limit of 180 characters; contains 240 characters
(#143) Inline comments must end in full-stops, exclamation marks, or question marks
(#156) Variable "download_title" must not contain underscores.
(#156) Line exceeds 132 characters; contains 165 characters
(#157) Variable "download_title" must not contain underscores.
(#157) Variable "download_title" must not contain underscores.
(#157) Line exceeds maximum limit of 180 characters; contains 198 characters
(#159) Line exceeds maximum limit of 180 characters; contains 209 characters
(#162) Inline comments must end in full-stops, exclamation marks, or question marks
(#169) Line exceeds 132 characters; contains 159 characters
mod/quiz/report/archiver/db/install.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/quiz/report/archiver/db/uninstall.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/quiz/report/archiver/db/upgrade.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#77) Variable "old_key" must not contain underscores.
(#78) Variable "new_key" must not contain underscores.
(#81) Variable "old_key" must not contain underscores.
(#82) Variable "new_key" must not contain underscores.
(#89) Inline comments must end in full-stops, exclamation marks, or question marks
(#95) Inline comments must end in full-stops, exclamation marks, or question marks
(#105) Inline comments must end in full-stops, exclamation marks, or question marks
mod/quiz/report/archiver/lang/de/quiz_archiver.php
(#32) Inline comments must end in full-stops, exclamation marks, or question marks
(#37) Inline comments must end in full-stops, exclamation marks, or question marks
(#43) 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
(#88) Inline comments must end in full-stops, exclamation marks, or question marks
(#103) Inline comments must end in full-stops, exclamation marks, or question marks
(#108) 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
mod/quiz/report/archiver/lang/en/quiz_archiver.php
(#32) Inline comments must end in full-stops, exclamation marks, or question marks
(#37) Inline comments must end in full-stops, exclamation marks, or question marks
(#43) 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
(#88) Inline comments must end in full-stops, exclamation marks, or question marks
(#103) Inline comments must end in full-stops, exclamation marks, or question marks
(#108) 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
mod/quiz/report/archiver/lib.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#53) Inline comments must end in full-stops, exclamation marks, or question marks
(#58) Inline comments must end in full-stops, exclamation marks, or question marks
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
(#73) Inline comments must end in full-stops, exclamation marks, or question marks
mod/quiz/report/archiver/report.php
(#35) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#88) Variable "tplCtx" must be all lower-case
(#93) Inline comments must end in full-stops, exclamation marks, or question marks
(#95) Variable "job_delete_form" must not contain underscores.
(#97) Variable "job_delete_form" must not contain underscores.
(#101) Variable "job_delete_form" must not contain underscores.
(#105) Inline comments must end in full-stops, exclamation marks, or question marks
(#106) Variable "job_delete_form" must not contain underscores.
(#109) Variable "job_delete_form" must not contain underscores.
(#114) Inline comments must end in full-stops, exclamation marks, or question marks
(#116) Variable "job_sign_form" must not contain underscores.
(#118) Variable "job_sign_form" must not contain underscores.
(#122) Variable "job_sign_form" must not contain underscores.
(#126) Inline comments must end in full-stops, exclamation marks, or question marks
(#127) Variable "job_sign_form" must not contain underscores.
(#128) Variable "tspManager" must be all lower-case
(#129) Variable "jobid_log_str" must not contain underscores.
(#130) Variable "tspManager" must be all lower-case
(#131) Variable "tplCtx" must be all lower-case
(#134) Variable "jobid_log_str" must not contain underscores.
(#138) Variable "tspManager" must be all lower-case
(#139) Variable "tplCtx" must be all lower-case
(#142) Variable "jobid_log_str" must not contain underscores.
(#145) Variable "tplCtx" must be all lower-case
(#148) Variable "jobid_log_str" must not contain underscores.
(#151) Variable "tplCtx" must be all lower-case
(#154) Variable "jobid_log_str" must not contain underscores.
(#159) Variable "job_sign_form" must not contain underscores.
(#164) Inline comments must end in full-stops, exclamation marks, or question marks
(#166) Variable "tplCtx" must be all lower-case
(#167) Variable "tplCtx" must be all lower-case
(#171) Inline comments must end in full-stops, exclamation marks, or question marks
(#172) Variable "archive_quiz_form" must not contain underscores.
(#176) Variable "archive_quiz_form" must not contain underscores.
(#179) Variable "archive_quiz_form" must not contain underscores.
(#187) Variable "tplCtx" must be all lower-case
(#193) Variable "tplCtx" must be all lower-case
(#200) Inline comments must end in full-stops, exclamation marks, or question marks
(#202) Variable "tplCtx" must be all lower-case
(#205) Variable "tplCtx" must be all lower-case
(#205) Variable "archive_quiz_form" must not contain underscores.
(#208) Inline comments must end in full-stops, exclamation marks, or question marks
(#209) Variable "tplCtx" must be all lower-case
(#210) Inline comments must end in full-stops, exclamation marks, or question marks
(#215) Variable "jobtbl_html" must not contain underscores.
(#217) Variable "tplCtx" must be all lower-case
(#217) Variable "jobtbl_html" must not contain underscores.
(#219) Inline comments must end in full-stops, exclamation marks, or question marks
(#220) Variable "tplCtx" must be all lower-case
(#221) Inline comments must end in full-stops, exclamation marks, or question marks
(#227) There should be a comma after the last array item in a multi-line array.
(#233) There should be a comma after the last array item in a multi-line array.
(#234) There should be a comma after the last array item in a multi-line array.
(#237) Inline comments must end in full-stops, exclamation marks, or question marks
(#238) Line exceeds 132 characters; contains 155 characters
(#247) Inline comments must end in full-stops, exclamation marks, or question marks
(#252) Inline comments must end in full-stops, exclamation marks, or question marks
(#253) Variable "tplCtx" must be all lower-case
(#273) Variable "export_attempts" must not contain underscores.
(#274) Variable "report_sections" must not contain underscores.
(#275) Variable "paper_format" must not contain underscores.
(#276) Variable "export_quiz_backup" must not contain underscores.
(#277) Variable "export_course_backup" must not contain underscores.
(#284) Inline comments must end in full-stops, exclamation marks, or question marks
(#294) Inline comments must end in full-stops, exclamation marks, or question marks
(#295) Variable "task_archive_quiz_attempts" must not contain underscores.
(#296) Variable "export_attempts" must not contain underscores.
(#297) Variable "task_archive_quiz_attempts" must not contain underscores.
(#300) Variable "report_sections" must not contain underscores.
(#301) Variable "paper_format" must not contain underscores.
(#305) Inline comments must end in full-stops, exclamation marks, or question marks
(#306) Variable "task_moodle_backups" must not contain underscores.
(#307) Variable "export_quiz_backup" must not contain underscores.
(#307) Variable "export_course_backup" must not contain underscores.
(#308) Variable "task_moodle_backups" must not contain underscores.
(#310) Variable "export_quiz_backup" must not contain underscores.
(#311) Variable "task_moodle_backups" must not contain underscores.
(#314) Variable "export_course_backup" must not contain underscores.
(#315) Variable "task_moodle_backups" must not contain underscores.
(#319) Inline comments must end in full-stops, exclamation marks, or question marks
(#320) Variable "job_settings" must not contain underscores.
(#321) Variable "job_settings" must not contain underscores.
(#322) Variable "job_settings" must not contain underscores.
(#322) Variable "export_attempts" must not contain underscores.
(#323) Variable "export_attempts" must not contain underscores.
(#324) Variable "report_sections" must not contain underscores.
(#324) Variable "section_name" must not contain underscores.
(#324) Variable "section_value" must not contain underscores.
(#325) Variable "job_settings" must not contain underscores.
(#325) Variable "section_name" must not contain underscores.
(#325) Variable "section_value" must not contain underscores.
(#328) Variable "job_settings" must not contain underscores.
(#328) Variable "export_quiz_backup" must not contain underscores.
(#329) Variable "job_settings" must not contain underscores.
(#329) Variable "export_course_backup" must not contain underscores.
(#331) Inline comments must end in full-stops, exclamation marks, or question marks
(#334) Variable "job_metadata" must not contain underscores.
(#339) Variable "task_archive_quiz_attempts" must not contain underscores.
(#340) Variable "task_moodle_backups" must not contain underscores.
(#343) Inline comments must end in full-stops, exclamation marks, or question marks
(#345) Variable "job_metadata" must not contain underscores.
(#351) Variable "job_settings" must not contain underscores.
(#352) Variable "job_metadata" must not contain underscores.
(#355) Inline comments must end in full-stops, exclamation marks, or question marks
(#356) Variable "task_moodle_backups" must not contain underscores.
(#357) Variable "task_moodle_backups" must not contain underscores.
mod/quiz/report/archiver/settings.php
(#35) Inline comments must end in full-stops, exclamation marks, or question marks
(#41) Inline comments must end in full-stops, exclamation marks, or question marks
(#82) Inline comments must end in full-stops, exclamation marks, or question marks
mod/quiz/report/archiver/version.php
(#32) Inline comments must start with a capital letter, digit or 3-dots sequence
(#32) This comment is 58% valid code; is this commented out code?
(#32) No space found before comment text; expected "// $plugin->incompatible = 402;" but found "//$plugin->incompatible = 402;"

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 stylelint [More info]


PHPDocs style problems

(17 errors, 0 warnings)

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

mod/quiz/report/archiver/classes/ArchiveJob.php
(#573) There is no description in phpdocs for function get_status
(#654) There is no description in phpdocs for function get_artifact_checksum
(#585) Phpdocs for function ArchiveJob::get_status_display_args has incomplete parameters list
mod/quiz/report/archiver/classes/BackupManager.php
(#113) There is no description in phpdocs for function get_type
mod/quiz/report/archiver/classes/RemoteArchiveWorker.php
(#52) Phpdocs for function RemoteArchiveWorker::__construct has incomplete parameters list
(#67) Phpdocs for function RemoteArchiveWorker::enqueue_archive_job has incomplete parameters list
mod/quiz/report/archiver/classes/external/generate_attempt_report.php
(#27) Package is not specified for class generate_attempt_report. It is also not specified in file-level phpdocs
mod/quiz/report/archiver/classes/external/get_attempts_metadata.php
(#28) Package is not specified for class get_attempts_metadata. It is also not specified in file-level phpdocs
mod/quiz/report/archiver/classes/external/get_backup_status.php
(#28) Package is not specified for class get_backup_status. It is also not specified in file-level phpdocs
mod/quiz/report/archiver/classes/external/process_uploaded_artifact.php
(#28) No one-line description found in phpdocs for class process_uploaded_artifact
(#28) Package is not specified for class process_uploaded_artifact. It is also not specified in file-level phpdocs
mod/quiz/report/archiver/classes/external/update_job_status.php
(#27) Package is not specified for class update_job_status. It is also not specified in file-level phpdocs
mod/quiz/report/archiver/classes/output/job_overview_table.php
(#88) Phpdocs for function job_overview_table::col_timecreated has incomplete parameters list
(#98) Phpdocs for function job_overview_table::col_status has incomplete parameters list
(#110) Phpdocs for function job_overview_table::col_user has incomplete parameters list
(#121) Phpdocs for function job_overview_table::col_filesize has incomplete parameters list
(#132) Phpdocs for function job_overview_table::col_actions has incomplete parameters list

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

(2 errors, 0 warnings)

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

mod/quiz/report/archiver/templates/job_details.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
mod/quiz/report/archiver/templates/overview.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error

Gherkin .feature problems

(0 errors, 0 warnings)

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