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

(477 errors, 173 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.
(#36) Member variable "course_id" must not contain underscores.
(#38) Member variable "cm_id" must not contain underscores.
(#40) Member variable "quiz_id" must not contain underscores.
(#42) Member variable "user_id" must not contain underscores.
(#55) Inline comments must end in full-stops, exclamation marks, or question marks
(#76) Variable "course_id" must not contain underscores.
(#76) Variable "cm_id" must not contain underscores.
(#76) Variable "quiz_id" must not contain underscores.
(#76) Variable "user_id" must not contain underscores.
(#76) Line exceeds 132 characters; contains 151 characters
(#79) Variable "course_id" must not contain underscores.
(#80) Variable "cm_id" must not contain underscores.
(#81) Variable "quiz_id" must not contain underscores.
(#82) Variable "user_id" must not contain underscores.
(#102) Variable "course_id" must not contain underscores.
(#102) Variable "cm_id" must not contain underscores.
(#102) Variable "quiz_id" must not contain underscores.
(#102) Variable "user_id" must not contain underscores.
(#102) Line exceeds maximum limit of 180 characters; contains 191 characters
(#110) Inline comments must end in full-stops, exclamation marks, or question marks
(#114) Variable "course_id" must not contain underscores.
(#115) Variable "cm_id" must not contain underscores.
(#116) Variable "quiz_id" must not contain underscores.
(#117) Variable "user_id" must not contain underscores.
(#124) Inline comments must end in full-stops, exclamation marks, or question marks
(#133) Variable "course_id" must not contain underscores.
(#133) Variable "cm_id" must not contain underscores.
(#133) Variable "quiz_id" must not contain underscores.
(#133) Variable "user_id" must not contain underscores.
(#181) Variable "course_id" must not contain underscores.
(#181) Variable "cm_id" must not contain underscores.
(#181) Variable "quiz_id" must not contain underscores.
(#184) Variable "course_id" must not contain underscores.
(#185) Variable "cm_id" must not contain underscores.
(#186) Variable "quiz_id" must not contain underscores.
(#215) Variable "course_id" must not contain underscores.
(#215) Variable "cm_id" must not contain underscores.
(#215) Variable "quiz_id" must not contain underscores.
(#223) The use of the AS keyword to alias tables is bad for cross-db
(#232) Variable "course_id" must not contain underscores.
(#233) Variable "cm_id" must not contain underscores.
(#234) Variable "quiz_id" must not contain underscores.
(#239) Inline comments must end in full-stops, exclamation marks, or question marks
(#240) Variable "artifactfile_metadata" must not contain underscores.
(#254) Variable "artifactfile_metadata" must not contain underscores.
(#264) Inline comments must end in full-stops, exclamation marks, or question marks
(#287) Variable "artifactfile_metadata" must not contain underscores.
(#322) Inline comments must end in full-stops, exclamation marks, or question marks
(#330) Inline comments must end in full-stops, exclamation marks, or question marks
(#333) Inline comments must end in full-stops, exclamation marks, or question marks
(#350) Variable "timeout_min" must not contain underscores.
(#351) Inline control structures are not allowed
(#353) Inline comments must end in full-stops, exclamation marks, or question marks
(#354) Variable "timeout_min" must not contain underscores.
(#447) Variable "delete_wstoken_if_completed" must not contain underscores.
(#447) Variable "delete_temporary_files_if_completed" must not contain underscores.
(#447) Line exceeds 132 characters; contains 135 characters
(#456) Variable "delete_wstoken_if_completed" must not contain underscores.
(#460) Variable "delete_temporary_files_if_completed" must not contain underscores.
(#484) Must use "self::" for local static member reference
(#486) Must use "self::" for local static member reference
(#488) Must use "self::" for local static member reference
(#490) Must use "self::" for local static member reference
(#492) Must use "self::" for local static member reference
(#494) Must use "self::" for local static member reference
(#496) Must use "self::" for local static member reference
(#513) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#533) The use of the AS keyword to alias tables is bad for cross-db
(#533) Line exceeds 132 characters; contains 154 characters
(#537) Inline control structures are not allowed
(#556) Variable "file_id" must not contain underscores.
(#559) Inline control structures are not allowed
(#559) Variable "file_id" must not contain underscores.
(#563) Variable "file_id" must not contain underscores.
(#597) Variable "num_deleted_files" must not contain underscores.
(#604) Variable "num_deleted_files" must not contain underscores.
(#608) Variable "num_deleted_files" must not contain underscores.
(#619) Short array syntax must be used to define arrays
mod/quiz/report/archiver/classes/BackupManager.php
(#42) Member variable "backup_metadata" must not contain underscores.
(#72) Line exceeds 132 characters; contains 147 characters
(#135) Variable "user_id" must not contain underscores.
(#138) Inline comments must end in full-stops, exclamation marks, or question marks
(#150) Inline comments must end in full-stops, exclamation marks, or question marks
(#157) Variable "user_id" must not contain underscores.
(#163) Inline comments must end in full-stops, exclamation marks, or question marks
(#169) Variable "setting_name" must not contain underscores.
(#169) Variable "setting_value" must not contain underscores.
(#170) Variable "setting_name" must not contain underscores.
(#170) Variable "setting_value" must not contain underscores.
(#175) Inline comments must end in full-stops, exclamation marks, or question marks
(#180) Variable "user_id" must not contain underscores.
(#183) Inline comments must end in full-stops, exclamation marks, or question marks
(#188) Perl-style comments are not allowed; use "// Comment." instead
(#193) Variable "internal_wwwroot" must not contain underscores.
(#194) Variable "internal_wwwroot" must not contain underscores.
(#195) Variable "internal_wwwroot" must not contain underscores.
(#200) Variable "user_id" must not contain underscores.
(#222) Variable "cm_id" must not contain underscores.
(#222) Variable "user_id" must not contain underscores.
(#223) Variable "cm_id" must not contain underscores.
(#223) Variable "user_id" must not contain underscores.
(#235) Variable "course_id" must not contain underscores.
(#235) Variable "user_id" must not contain underscores.
(#236) Variable "course_id" must not contain underscores.
(#236) 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.
(#46) Member variable "course_id" must not contain underscores.
(#48) Member variable "cm_id" must not contain underscores.
(#50) Member variable "quiz_id" must not contain underscores.
(#62) Variable "course_id" must not contain underscores.
(#62) Variable "cm_id" must not contain underscores.
(#62) Variable "quiz_id" must not contain underscores.
(#63) Variable "course_id" must not contain underscores.
(#64) Variable "cm_id" must not contain underscores.
(#65) Variable "quiz_id" must not contain underscores.
(#66) Variable "course_id" must not contain underscores.
(#78) Variable "course_id" must not contain underscores.
(#78) Variable "cm_id" must not contain underscores.
(#78) Variable "quiz_id" must not contain underscores.
(#81) Variable "course_id" must not contain underscores.
(#82) Variable "course_id" must not contain underscores.
(#84) Variable "cm_id" must not contain underscores.
(#85) Variable "cm_id" must not contain underscores.
(#87) Variable "quiz_id" must not contain underscores.
(#88) Variable "quiz_id" must not contain underscores.
(#118) Inline comments must end in full-stops, exclamation marks, or question marks
(#123) Inline comments must end in full-stops, exclamation marks, or question marks
(#136) Inline comments must end in full-stops, exclamation marks, or question marks
(#180) Inline comments must end in full-stops, exclamation marks, or question marks
(#185) Inline comments must end in full-stops, exclamation marks, or question marks
(#187) Variable "hash_ctx" must not contain underscores.
(#189) Variable "hash_ctx" must not contain underscores.
(#192) Variable "hash_ctx" must not contain underscores.
mod/quiz/report/archiver/classes/RemoteArchiveWorker.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#32) Member variable "server_url" must not contain underscores.
(#34) Member variable "connection_timeout" must not contain underscores.
(#36) Member variable "request_timeout" must not contain underscores.
(#50) Variable "server_url" must not contain underscores.
(#50) Variable "connection_timeout" must not contain underscores.
(#50) Variable "request_timeout" must not contain underscores.
(#51) Variable "server_url" must not contain underscores.
(#52) Variable "connection_timeout" must not contain underscores.
(#53) Variable "request_timeout" must not contain underscores.
(#75) Variable "task_archive_quiz_attempts" must not contain underscores.
(#75) Variable "task_moodle_backups" must not contain underscores.
(#75) Line exceeds 132 characters; contains 148 characters
(#77) Variable "moodle_url_base" must not contain underscores.
(#79) Inline comments must end in full-stops, exclamation marks, or question marks
(#80) Variable "request_payload" must not contain underscores.
(#82) Variable "moodle_url_base" must not contain underscores.
(#83) Variable "moodle_url_base" must not contain underscores.
(#88) Variable "task_archive_quiz_attempts" must not contain underscores.
(#89) Variable "task_moodle_backups" must not contain underscores.
(#92) Variable "request_payload" must not contain underscores.
(#94) Variable "http_status" must not contain underscores.
(#98) Inline comments must end in full-stops, exclamation marks, or question marks
(#99) Variable "http_status" must not contain underscores.
(#101) Variable "http_status" must not contain underscores.
(#101) Line exceeds 132 characters; contains 133 characters
(#110) Inline comments must end in full-stops, exclamation marks, or question marks
(#121) Variable "json_data" must not contain underscores.
(#126) Variable "json_data" must not contain underscores.
(#136) Variable "json_data" must not contain underscores.
(#142) File must end with a newline character
mod/quiz/report/archiver/classes/Report.php
(#31) Perl-style comments are not allowed; use "// Comment." instead
(#96) Inline comments must end in full-stops, exclamation marks, or question marks
(#104) Inline comments must end in full-stops, exclamation marks, or question marks
(#109) Inline comments must end in full-stops, exclamation marks, or question marks
(#150) Variable "filter_attemptids" must not contain underscores.
(#153) Inline comments must end in full-stops, exclamation marks, or question marks
(#154) Variable "filter_attemptids" must not contain underscores.
(#155) Variable "filter_where_clause" must not contain underscores.
(#155) Variable "filter_attemptids" must not contain underscores.
(#155) Line exceeds 132 characters; contains 133 characters
(#158) Inline comments must end in full-stops, exclamation marks, or question marks
(#160) Line exceeds 132 characters; contains 140 characters
(#162) Variable "filter_where_clause" must not contain underscores.
(#248) Variable "archive_quiz_form_data" must not contain underscores.
(#249) Inline comments must end in full-stops, exclamation marks, or question marks
(#250) Variable "report_sections" must not contain underscores.
(#251) Must use "self::" for local static member reference
(#252) Variable "report_sections" must not contain underscores.
(#252) Variable "archive_quiz_form_data" must not contain underscores.
(#255) Inline comments must end in full-stops, exclamation marks, or question marks
(#256) Must use "self::" for local static member reference
(#258) Variable "report_sections" must not contain underscores.
(#259) Variable "report_sections" must not contain underscores.
(#264) Variable "report_sections" must not contain underscores.
(#284) Inline comments must end in full-stops, exclamation marks, or question marks
(#306) Inline comments must start with a capital letter, digit or 3-dots sequence
(#309) Variable "quiz_header_data" must not contain underscores.
(#310) Variable "attempt_user" must not contain underscores.
(#310) Short array syntax must be used to define arrays
(#311) Variable "attempt_user" must not contain underscores.
(#313) Variable "quiz_header_data" must not contain underscores.
(#316) Variable "attempt_user" must not contain underscores.
(#317) Variable "attempt_user" must not contain underscores.
(#321) Inline comments must end in full-stops, exclamation marks, or question marks
(#322) Variable "quiz_header_data" must not contain underscores.
(#327) Variable "quiz_header_data" must not contain underscores.
(#333) Variable "quiz_header_data" must not contain underscores.
(#333) Short array syntax must be used to define arrays
(#338) Variable "quiz_header_data" must not contain underscores.
(#338) Short array syntax must be used to define arrays
(#344) Variable "quiz_header_data" must not contain underscores.
(#344) Short array syntax must be used to define arrays
(#348) Variable "quiz_header_data" must not contain underscores.
(#348) Short array syntax must be used to define arrays
(#355) Variable "quiz_header_data" must not contain underscores.
(#355) Short array syntax must be used to define arrays
(#361) Inline comments must end in full-stops, exclamation marks, or question marks
(#365) Variable "quiz_header_data" must not contain underscores.
(#365) Short array syntax must be used to define arrays
(#377) Variable "quiz_header_data" must not contain underscores.
(#377) Short array syntax must be used to define arrays
(#394) Variable "quiz_header_data" must not contain underscores.
(#394) Short array syntax must be used to define arrays
(#402) Variable "quiz_header_data" must not contain underscores.
(#402) Variable "quiz_header_data" must not contain underscores.
(#408) Variable "quiz_header_data" must not contain underscores.
(#408) Short array syntax must be used to define arrays
(#415) Inline comments must end in full-stops, exclamation marks, or question marks
(#416) Variable "quiz_header_data" must not contain underscores.
(#421) Inline comments must end in full-stops, exclamation marks, or question marks
(#422) Variable "quiz_header_data" must not contain underscores.
(#425) Inline comments must start with a capital letter, digit or 3-dots sequence
(#476) Variable "fix_relative_urls" must not contain underscores.
(#476) Variable "inline_images" must not contain underscores.
(#476) Line exceeds 132 characters; contains 163 characters
(#479) Inline comments must end in full-stops, exclamation marks, or question marks
(#485) Inline comments must end in full-stops, exclamation marks, or question marks
(#491) Inline comments must end in full-stops, exclamation marks, or question marks
(#492) Variable "fix_relative_urls" must not contain underscores.
(#493) Variable "baseNode" must be all lower-case
(#494) Variable "baseNode" must be all lower-case
(#495) Variable "baseNode" must be all lower-case
(#498) Inline comments must end in full-stops, exclamation marks, or question marks
(#502) Variable "cssHacksNode" must be all lower-case
(#506) Whitespace found at end of line within string
(#510) Whitespace found at end of line within string
(#517) Whitespace found at end of line within string
(#521) Whitespace found at end of line within string
(#526) Variable "cssHacksNode" must be all lower-case
(#529) Inline comments must end in full-stops, exclamation marks, or question marks
(#530) Variable "inline_images" must not contain underscores.
(#542) Line exceeds 132 characters; contains 141 characters
(#545) Line exceeds maximum limit of 180 characters; contains 231 characters
(#548) Line exceeds maximum limit of 180 characters; contains 288 characters
(#573) Inline comments must end in full-stops, exclamation marks, or question marks
(#574) Inline control structures are not allowed
(#576) Inline comments must end in full-stops, exclamation marks, or question marks
(#577) Variable "img_src" must not contain underscores.
(#579) Inline comments must end in full-stops, exclamation marks, or question marks
(#581) Variable "moodle_baseurl" must not contain underscores.
(#583) Variable "img_src" must not contain underscores.
(#583) Variable "img_src" must not contain underscores.
(#585) Variable "img_src_url" must not contain underscores.
(#585) Variable "img_src" must not contain underscores.
(#585) Variable "moodle_baseurl" must not contain underscores.
(#587) Perl-style comments are not allowed; use "// Comment." instead
(#588) Inline control structures are not allowed
(#588) Variable "img_src_url" must not contain underscores.
(#588) Inline comments must end in full-stops, exclamation marks, or question marks
(#590) Inline comments must end in full-stops, exclamation marks, or question marks
(#591) Variable "img_ext" must not contain underscores.
(#591) Variable "img_src_url" must not contain underscores.
(#592) Inline control structures are not allowed
(#592) Variable "img_ext" must not contain underscores.
(#594) Inline comments must end in full-stops, exclamation marks, or question marks
(#595) Variable "regex_matches" must not contain underscores.
(#596) Variable "img_data" must not contain underscores.
(#597) Variable "img_src_url" must not contain underscores.
(#597) Variable "regex_matches" must not contain underscores.
(#598) Inline comments must start with a capital letter, digit or 3-dots sequence
(#599) Line exceeds 132 characters; contains 145 characters
(#600) Variable "regex_matches" must not contain underscores.
(#600) Variable "regex_matches" must not contain underscores.
(#601) Variable "regex_matches" must not contain underscores.
(#602) Inline control structures are not allowed
(#602) Variable "img_src_url" must not contain underscores.
(#602) Variable "regex_matches" must not contain underscores.
(#605) Inline comments must end in full-stops, exclamation marks, or question marks
(#608) Variable "regex_matches" must not contain underscores.
(#609) Variable "regex_matches" must not contain underscores.
(#610) Variable "regex_matches" must not contain underscores.
(#611) Variable "regex_matches" must not contain underscores.
(#611) Variable "regex_matches" must not contain underscores.
(#612) Inline comments must end in full-stops, exclamation marks, or question marks
(#613) Variable "regex_matches" must not contain underscores.
(#616) Inline control structures are not allowed
(#617) Variable "img_data" must not contain underscores.
(#618) Usage of ELSEIF not allowed; use ELSE IF instead
(#618) Variable "img_src_url" must not contain underscores.
(#618) Variable "regex_matches" must not contain underscores.
(#619) Inline comments must start with a capital letter, digit or 3-dots sequence
(#621) Variable "regex_matches" must not contain underscores.
(#622) Inline control structures are not allowed
(#623) Variable "img_data" must not contain underscores.
(#625) Inline comments must start with a capital letter, digit or 3-dots sequence
(#628) Variable "img_src_url" must not contain underscores.
(#635) Variable "img_data" must not contain underscores.
(#637) Inline control structures are not allowed
(#637) Variable "img_data" must not contain underscores.
(#640) Inline comments must end in full-stops, exclamation marks, or question marks
(#641) Inline control structures are not allowed
(#641) Variable "img_data" must not contain underscores.
(#642) Variable "img_base64" must not contain underscores.
(#642) Variable "img_data" must not contain underscores.
(#643) Variable "img_ext" must not contain underscores.
(#643) Variable "img_base64" must not contain underscores.
(#659) Inline control structures are not allowed
(#662) Inline control structures are not allowed
(#662) Expected 1 space before "=="; 0 found
(#662) Expected 1 space after "=="; 0 found
(#662) Expected 1 space before "=="; 0 found
(#662) Expected 1 space after "=="; 0 found
(#665) The use of function extract() is forbidden
(#671) Inline control structures are not allowed
(#677) Short array syntax must be used to define arrays
(#678) Expected "for (...) {\n"; found "for (...) {"
(#678) Empty FOR statement detected
(#678) Expected 1 space before "="; 0 found
(#678) Expected 1 space after "="; 0 found
(#678) Expected 1 space before ">"; 0 found
(#678) Expected 1 space after ">"; 0 found
(#678) Expected 1 space before "="; 0 found
(#678) Expected 1 space after "="; 0 found
(#678) Closing brace must be on a line by itself
(#684) File must end with a newline character
mod/quiz/report/archiver/classes/external/generate_attempt_report.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#4) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) Line 12 of the opening comment must start "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#10) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#68) Variable "courseid_raw" must not contain underscores.
(#68) Variable "cmid_raw" must not contain underscores.
(#68) Variable "quizid_raw" must not contain underscores.
(#68) Variable "attemptid_raw" must not contain underscores.
(#68) Variable "sections_raw" must not contain underscores.
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#73) Variable "courseid_raw" must not contain underscores.
(#74) Variable "cmid_raw" must not contain underscores.
(#75) Variable "quizid_raw" must not contain underscores.
(#76) Variable "attemptid_raw" must not contain underscores.
(#77) Variable "sections_raw" must not contain underscores.
(#80) Inline comments must end in full-stops, exclamation marks, or question marks
(#84) Inline comments must end in full-stops, exclamation marks, or question marks
(#85) Short array syntax must be used to define arrays
(#91) Short array syntax must be used to define arrays
(#95) Inline comments must end in full-stops, exclamation marks, or question marks
(#116) File must end with a newline character
mod/quiz/report/archiver/classes/external/get_attempts_metadata.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#4) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) Line 12 of the opening comment must start "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#11) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#70) Variable "courseid_raw" must not contain underscores.
(#70) Variable "cmid_raw" must not contain underscores.
(#70) Variable "quizid_raw" must not contain underscores.
(#70) Variable "attemptids_raw" must not contain underscores.
(#73) Inline comments must end in full-stops, exclamation marks, or question marks
(#75) Variable "courseid_raw" must not contain underscores.
(#76) Variable "cmid_raw" must not contain underscores.
(#77) Variable "quizid_raw" must not contain underscores.
(#78) Variable "attemptids_raw" must not contain underscores.
(#81) Inline comments must end in full-stops, exclamation marks, or question marks
(#85) Inline comments must end in full-stops, exclamation marks, or question marks
(#86) Short array syntax must be used to define arrays
(#92) Short array syntax must be used to define arrays
(#96) Inline comments must end in full-stops, exclamation marks, or question marks
(#103) Variable "attempt_metadata" must not contain underscores.
(#109) Variable "attempt_metadata" must not contain underscores.
(#114) File must end with a newline character
mod/quiz/report/archiver/classes/external/get_backup_status.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#4) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) Line 12 of the opening comment must start "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#11) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#48) Variable "jobid_raw" must not contain underscores.
(#49) Variable "backupid_raw" must not contain underscores.
(#51) Inline comments must end in full-stops, exclamation marks, or question marks
(#53) Variable "jobid_raw" must not contain underscores.
(#54) Variable "backupid_raw" must not contain underscores.
(#57) Inline comments must end in full-stops, exclamation marks, or question marks
(#64) Inline comments must end in full-stops, exclamation marks, or question marks
(#69) 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
(#92) Inline comments must end in full-stops, exclamation marks, or question marks
(#96) File must end with a newline character
mod/quiz/report/archiver/classes/external/process_uploaded_artifact.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#4) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) Line 12 of the opening comment must start "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#11) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#61) Variable "jobid_raw" must not contain underscores.
(#62) Variable "artifact_component_raw" must not contain underscores.
(#63) Variable "artifact_contextid_raw" must not contain underscores.
(#64) Variable "artifact_userid_raw" must not contain underscores.
(#65) Variable "artifact_filearea_raw" must not contain underscores.
(#66) Variable "artifact_filename_raw" must not contain underscores.
(#67) Variable "artifact_filepath_raw" must not contain underscores.
(#68) Variable "artifact_itemid_raw" must not contain underscores.
(#69) Variable "artifact_sha256sum_raw" must not contain underscores.
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#73) Variable "jobid_raw" must not contain underscores.
(#74) Variable "artifact_component_raw" must not contain underscores.
(#75) Variable "artifact_contextid_raw" must not contain underscores.
(#76) Variable "artifact_userid_raw" must not contain underscores.
(#77) Variable "artifact_filearea_raw" must not contain underscores.
(#78) Variable "artifact_filename_raw" must not contain underscores.
(#79) Variable "artifact_filepath_raw" must not contain underscores.
(#80) Variable "artifact_itemid_raw" must not contain underscores.
(#81) Variable "artifact_sha256sum_raw" must not contain underscores.
(#84) Inline comments must end in full-stops, exclamation marks, or question marks
(#98) Inline comments must end in full-stops, exclamation marks, or question marks
(#105) Inline comments must end in full-stops, exclamation marks, or question marks
(#133) Inline comments must end in full-stops, exclamation marks, or question marks
(#145) Inline comments must end in full-stops, exclamation marks, or question marks
(#152) File must end with a newline character
mod/quiz/report/archiver/classes/external/update_job_status.php
(#2) Line 1 of the opening comment must start "// This file is part of".
(#2) Line 2 of the opening comment must start "//".
(#2) Line 3 of the opening comment must start "// Moodle is free software: you can redistribute it and/or modify".
(#2) Line 4 of the opening comment must start "// it under the terms of the GNU General Public License as published by".
(#2) Line 5 of the opening comment must start "// the Free Software Foundation, either version 3 of the License, or".
(#2) Line 6 of the opening comment must start "// (at your option) any later version.".
(#2) Line 7 of the opening comment must start "//".
(#3) Line 8 of the opening comment must start "// Moodle is distributed in the hope that it will be useful,".
(#4) Line 9 of the opening comment must start "// but WITHOUT ANY WARRANTY; without even the implied warranty of".
(#4) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#4) Line 11 of the opening comment must start "// GNU General Public License for more details.".
(#4) Line 12 of the opening comment must start "//".
(#4) Line 13 of the opening comment must start "// You should have received a copy of the GNU General Public License".
(#4) Line 14 of the opening comment must start "// along with Moodle. If not, see <http://www.gnu.org/licenses/>.".
(#10) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#44) Variable "jobid_raw" must not contain underscores.
(#45) Variable "status_raw" must not contain underscores.
(#47) Inline comments must end in full-stops, exclamation marks, or question marks
(#49) Variable "jobid_raw" must not contain underscores.
(#50) Variable "status_raw" must not contain underscores.
(#56) Inline comments must end in full-stops, exclamation marks, or question marks
(#79) Inline comments must end in full-stops, exclamation marks, or question marks
(#85) File must end with a newline character
mod/quiz/report/archiver/classes/form/archive_quiz_form.php
(#36) Member variable "quiz_name" must not contain underscores.
(#38) Member variable "num_attempts" must not contain underscores.
(#43) Variable "quiz_name" must not contain underscores.
(#43) Variable "num_attempts" must not contain underscores.
(#44) Variable "quiz_name" must not contain underscores.
(#45) Variable "num_attempts" must not contain underscores.
(#55) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) Inline comments must end in full-stops, exclamation marks, or question marks
(#65) Inline comments must end in full-stops, exclamation marks, or question marks
(#68) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#72) Line exceeds maximum limit of 180 characters; contains 210 characters
(#77) Line exceeds 132 characters; contains 155 characters
(#86) Inline comments must end in full-stops, exclamation marks, or question marks
(#87) Line exceeds 132 characters; contains 147 characters
(#95) Inline comments must end in full-stops, exclamation marks, or question marks
(#99) Line exceeds maximum limit of 180 characters; contains 191 characters
(#103) Inline comments must end in full-stops, exclamation marks, or question marks
mod/quiz/report/archiver/classes/form/job_delete_form.php
(#40) Inline comments must end in full-stops, exclamation marks, or question marks
(#41) Variable "warn_head" must not contain underscores.
(#42) Variable "warn_msg" must not contain underscores.
(#43) Variable "warn_details" must not contain underscores.
(#46) Variable "warn_head" must not contain underscores.
(#47) Variable "warn_msg" must not contain underscores.
(#49) Variable "warn_details" must not contain underscores.
(#53) Inline comments must end in full-stops, exclamation marks, or question marks
(#59) Inline comments must end in full-stops, exclamation marks, or question marks
(#65) Inline comments must end in full-stops, exclamation marks, or question marks
mod/quiz/report/archiver/classes/output/job_overview_table.php
(#45) Visibility must be declared on method "__construct"
(#65) Line exceeds 132 characters; contains 137 characters
(#66) The use of the AS keyword to alias tables is bad for cross-db
(#66) Line exceeds 132 characters; contains 138 characters
(#81) Visibility must be declared on method "col_timecreated"
(#85) Visibility must be declared on method "col_status"
(#87) Line exceeds 132 characters; contains 141 characters
(#90) Visibility must be declared on method "col_user"
(#94) Visibility must be declared on method "col_filesize"
(#98) Visibility must be declared on method "col_actions"
(#101) Inline comments must end in full-stops, exclamation marks, or question marks
(#102) Line exceeds maximum limit of 180 characters; contains 240 characters
(#104) Inline comments must end in full-stops, exclamation marks, or question marks
(#117) Variable "download_title" must not contain underscores.
(#117) Line exceeds 132 characters; contains 165 characters
(#118) Variable "download_title" must not contain underscores.
(#118) Variable "download_title" must not contain underscores.
(#118) Line exceeds maximum limit of 180 characters; contains 198 characters
(#120) Line exceeds maximum limit of 180 characters; contains 209 characters
(#123) Inline comments must end in full-stops, exclamation marks, or question marks
(#130) Line exceeds 132 characters; contains 159 characters
mod/quiz/report/archiver/db/access.php
(#28) Perl-style comments are not allowed; use "// Comment." instead
(#39) Perl-style comments are not allowed; use "// Comment." instead
(#49) Perl-style comments are not allowed; use "// Comment." instead
(#56) File must end with a newline character
mod/quiz/report/archiver/db/install.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/quiz/report/archiver/db/services.php
(#68) File must end with a newline character
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.
(#75) Variable "old_key" must not contain underscores.
(#76) Variable "new_key" must not contain underscores.
(#79) Variable "old_key" must not contain underscores.
(#80) Variable "new_key" must not contain underscores.
(#87) Inline comments must end in full-stops, exclamation marks, or question marks
(#93) Inline comments must end in full-stops, exclamation marks, or question marks
(#103) 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
(#101) 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
(#100) 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.
(#52) 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
(#62) Logical operator "or" is prohibited; use "||" instead
mod/quiz/report/archiver/report.php
(#34) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#78) Variable "tplCtx" must be all lower-case
(#83) Inline comments must end in full-stops, exclamation marks, or question marks
(#85) Variable "job_delete_form" must not contain underscores.
(#87) Variable "job_delete_form" must not contain underscores.
(#91) Variable "job_delete_form" must not contain underscores.
(#95) Inline comments must end in full-stops, exclamation marks, or question marks
(#96) Variable "job_delete_form" must not contain underscores.
(#99) Variable "job_delete_form" must not contain underscores.
(#104) Inline comments must end in full-stops, exclamation marks, or question marks
(#106) Variable "tplCtx" must be all lower-case
(#107) Variable "tplCtx" must be all lower-case
(#111) Inline comments must end in full-stops, exclamation marks, or question marks
(#112) Variable "archive_quiz_form" must not contain underscores.
(#114) The use of function sizeof() is forbidden; use count() instead
(#116) Variable "archive_quiz_form" must not contain underscores.
(#119) Variable "archive_quiz_form" must not contain underscores.
(#127) Variable "tplCtx" must be all lower-case
(#133) Variable "tplCtx" must be all lower-case
(#140) Inline comments must end in full-stops, exclamation marks, or question marks
(#141) Inline control structures are not allowed
(#141) Variable "tplCtx" must be all lower-case
(#143) Variable "tplCtx" must be all lower-case
(#143) Variable "archive_quiz_form" must not contain underscores.
(#146) Inline comments must end in full-stops, exclamation marks, or question marks
(#147) Variable "tplCtx" must be all lower-case
(#148) Inline comments must end in full-stops, exclamation marks, or question marks
(#153) Variable "jobtbl_html" must not contain underscores.
(#155) Variable "tplCtx" must be all lower-case
(#155) Variable "jobtbl_html" must not contain underscores.
(#157) Inline comments must end in full-stops, exclamation marks, or question marks
(#158) Variable "tplCtx" must be all lower-case
(#164) Inline comments must end in full-stops, exclamation marks, or question marks
(#169) Inline comments must end in full-stops, exclamation marks, or question marks
(#170) Variable "tplCtx" must be all lower-case
(#189) Variable "export_attempts" must not contain underscores.
(#189) Variable "report_sections" must not contain underscores.
(#189) Variable "paper_format" must not contain underscores.
(#189) Variable "export_quiz_backup" must not contain underscores.
(#189) Variable "export_course_backup" must not contain underscores.
(#189) Line exceeds maximum limit of 180 characters; contains 181 characters
(#195) Inline comments must end in full-stops, exclamation marks, or question marks
(#205) Inline comments must end in full-stops, exclamation marks, or question marks
(#206) Variable "task_archive_quiz_attempts" must not contain underscores.
(#207) Variable "export_attempts" must not contain underscores.
(#208) Variable "task_archive_quiz_attempts" must not contain underscores.
(#210) TRUE, FALSE and NULL must be lowercase; expected "true" but found "True"
(#211) Variable "report_sections" must not contain underscores.
(#212) Variable "paper_format" must not contain underscores.
(#216) Inline comments must end in full-stops, exclamation marks, or question marks
(#217) Variable "task_moodle_backups" must not contain underscores.
(#218) Variable "export_quiz_backup" must not contain underscores.
(#218) Variable "export_course_backup" must not contain underscores.
(#219) Variable "task_moodle_backups" must not contain underscores.
(#221) Variable "export_quiz_backup" must not contain underscores.
(#222) Variable "task_moodle_backups" must not contain underscores.
(#225) Variable "export_course_backup" must not contain underscores.
(#226) Variable "task_moodle_backups" must not contain underscores.
(#230) Inline comments must end in full-stops, exclamation marks, or question marks
(#231) Variable "job_settings" must not contain underscores.
(#232) Variable "job_settings" must not contain underscores.
(#233) Variable "job_settings" must not contain underscores.
(#233) Variable "export_attempts" must not contain underscores.
(#234) Variable "export_attempts" must not contain underscores.
(#235) Variable "report_sections" must not contain underscores.
(#235) Variable "section_name" must not contain underscores.
(#235) Variable "section_value" must not contain underscores.
(#236) Variable "job_settings" must not contain underscores.
(#236) Variable "section_name" must not contain underscores.
(#236) Variable "section_value" must not contain underscores.
(#239) Variable "job_settings" must not contain underscores.
(#239) Variable "export_quiz_backup" must not contain underscores.
(#240) Variable "job_settings" must not contain underscores.
(#240) Variable "export_course_backup" must not contain underscores.
(#242) Inline comments must end in full-stops, exclamation marks, or question marks
(#245) Variable "job_metadata" must not contain underscores.
(#250) Variable "task_archive_quiz_attempts" must not contain underscores.
(#251) Variable "task_moodle_backups" must not contain underscores.
(#254) Inline comments must end in full-stops, exclamation marks, or question marks
(#256) Variable "job_metadata" must not contain underscores.
(#262) Variable "job_settings" must not contain underscores.
(#263) Variable "job_metadata" must not contain underscores.
(#266) Inline comments must end in full-stops, exclamation marks, or question marks
(#267) Variable "task_moodle_backups" must not contain underscores.
(#268) Variable "task_moodle_backups" must not contain underscores.
mod/quiz/report/archiver/version.php
(#32) This comment is 58% valid code; is this commented out code?
(#32) Perl-style comments are not allowed; use "// Comment." instead

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(45 errors, 6 warnings)

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

mod/quiz/report/archiver/classes/ArchiveJob.php
(#29) Class ArchiveJob is not documented
(#56) Constant ArchiveJob::STATUS_UNKNOWN is not documented
(#57) Constant ArchiveJob::STATUS_UNINITIALIZED is not documented
(#58) Constant ArchiveJob::STATUS_AWAITING_PROCESSING is not documented
(#59) Constant ArchiveJob::STATUS_RUNNING is not documented
(#60) Constant ArchiveJob::STATUS_FINISHED is not documented
(#61) Constant ArchiveJob::STATUS_FAILED is not documented
(#62) Constant ArchiveJob::STATUS_TIMEOUT is not documented
(#401) There is no description in phpdocs for function get_jobid
(#408) There is no description in phpdocs for function get_course_id
(#415) There is no description in phpdocs for function get_cm_id
(#422) There is no description in phpdocs for function get_quiz_id
(#429) There is no description in phpdocs for function get_user_id
(#466) There is no description in phpdocs for function get_status
(#478) There is no description in phpdocs for function get_status_display_args
(#90) Phpdocs for function ArchiveJob::create has incomplete parameters list
(#158) Phpdocs for function ArchiveJob::exists_in_db has incomplete parameters list
(#478) Phpdocs for function ArchiveJob::get_status_display_args has incomplete parameters list
mod/quiz/report/archiver/classes/BackupManager.php
(#65) There is no description in phpdocs for function __construct
(#78) There is no description in phpdocs for function is_finished_successfully
(#85) There is no description in phpdocs for function is_failed
(#92) There is no description in phpdocs for function get_status
(#101) There is no description in phpdocs for function get_type
mod/quiz/report/archiver/classes/RemoteArchiveWorker.php
(#29) Class RemoteArchiveWorker is not documented
(#46) Phpdocs for function RemoteArchiveWorker::__construct has incomplete parameters list
(#60) Phpdocs for function RemoteArchiveWorker::enqueue_archive_job has incomplete parameters list
mod/quiz/report/archiver/classes/Report.php
(#33) Class Report is not documented
(#72) There is no description in phpdocs for function __construct
mod/quiz/report/archiver/classes/external/generate_attempt_report.php
(#12) Package is not specified for class generate_attempt_report. It is also not specified in file-level phpdocs
(#12) Class generate_attempt_report is not documented
mod/quiz/report/archiver/classes/external/get_attempts_metadata.php
(#13) Package is not specified for class get_attempts_metadata. It is also not specified in file-level phpdocs
(#13) Class get_attempts_metadata is not documented
mod/quiz/report/archiver/classes/external/get_backup_status.php
(#13) Package is not specified for class get_backup_status. It is also not specified in file-level phpdocs
(#13) Class get_backup_status is not documented
mod/quiz/report/archiver/classes/external/process_uploaded_artifact.php
(#13) Package is not specified for class process_uploaded_artifact. It is also not specified in file-level phpdocs
(#13) Class process_uploaded_artifact is not documented
mod/quiz/report/archiver/classes/external/update_job_status.php
(#12) Package is not specified for class update_job_status. It is also not specified in file-level phpdocs
(#12) Class update_job_status is not documented
mod/quiz/report/archiver/classes/form/archive_quiz_form.php
(#33) Class archive_quiz_form is not documented
(#40) There is no description in phpdocs for function __construct
(#41) Phpdocs for function archive_quiz_form::__construct has incomplete parameters list
mod/quiz/report/archiver/classes/form/job_delete_form.php
(#32) Class job_delete_form is not documented
mod/quiz/report/archiver/classes/output/job_overview_table.php
(#35) Class job_overview_table is not documented
(#81) Function job_overview_table::col_timecreated is not documented
(#85) Function job_overview_table::col_status is not documented
(#90) Function job_overview_table::col_user is not documented
(#94) Function job_overview_table::col_filesize is not documented
(#98) Function job_overview_table::col_actions is not documented
mod/quiz/report/archiver/db/upgrade.php
(#28) Phpdocs for function xmldb_quiz_archiver_upgrade has incomplete parameters list
mod/quiz/report/archiver/report.php
(#36) Class quiz_archiver_report is not documented
(#51) Function quiz_archiver_report::__construct is not documented

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]