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

(90 errors, 174 warnings)

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

mod/quiz/report/group/classes/observer.php
(#50) Empty IF statement detected
(#51) Inline comments must start with a capital letter, digit or 3-dots sequence
(#51) Inline comments must end in full-stops, exclamation marks, or question marks
(#54) Inline comments must start with a capital letter, digit or 3-dots sequence
(#54) No space found before comment text; expected "// check if a user from the same group is trying to attempt quiz when we already have an attempt for this group." but found "//check if a user from the same group is trying to attempt quiz when we already have an attempt for this group."
(#57) Line exceeds 132 characters; contains 150 characters
(#59) Inline comments must end in full-stops, exclamation marks, or question marks
(#61) Expected 1 space before "=>"; 0 found
(#61) Expected 1 space after "=>"; 0 found
(#62) Inline comments must start with a capital letter, digit or 3-dots sequence
(#62) Inline comments must end in full-stops, exclamation marks, or question marks
(#62) No space found before comment text; expected "// return to view quiz page with message : warning(yellow) --> NOTIFY_WARNING // error(red) --> NOTIFY_ERROR" but found "//return to view quiz page with message : warning(yellow) --> NOTIFY_WARNING // error(red) --> NOTIFY_ERROR"
(#63) Line exceeds maximum limit of 180 characters; contains 203 characters
(#66) Inline comments must start with a capital letter, digit or 3-dots sequence
(#66) Inline comments must end in full-stops, exclamation marks, or question marks
(#70) Inline comments must start with a capital letter, digit or 3-dots sequence
(#70) Inline comments must end in full-stops, exclamation marks, or question marks
(#70) No space found before comment text; expected "// save in DB" but found "//save in DB"
(#76) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#98) Empty IF statement detected
(#99) Inline comments must start with a capital letter, digit or 3-dots sequence
(#99) Inline comments must end in full-stops, exclamation marks, or question marks
(#104) Inline comments must start with a capital letter, digit or 3-dots sequence
(#104) Inline comments must end in full-stops, exclamation marks, or question marks
(#104) No space found before comment text; expected "// retrieve grp attempt object" but found "//retrieve grp attempt object"
(#108) Inline comments must start with a capital letter, digit or 3-dots sequence
(#108) Inline comments must end in full-stops, exclamation marks, or question marks
(#108) No space found before comment text; expected "// edit grp attempt" but found "//edit grp attempt"
(#110) Inline comments must start with a capital letter, digit or 3-dots sequence
(#110) Inline comments must end in full-stops, exclamation marks, or question marks
(#110) No space found before comment text; expected "// save in DB" but found "//save in DB"
(#113) No space found before comment text; expected "// ERROR : Grp attempt not in DB" but found "//ERROR : Grp attempt not in DB"
(#114) Inline comments must end in full-stops, exclamation marks, or question marks
(#114) No space found before comment text; expected "// create grp_attempt if not in DB" but found "//create grp_attempt if not in DB"
(#115) Commas (,) must be followed by white space.
(#134) Inline comments must start with a capital letter, digit or 3-dots sequence
(#134) Inline comments must end in full-stops, exclamation marks, or question marks
(#134) This comment is 60% valid code; is this commented out code?
(#134) Line indented incorrectly; expected at least 8 spaces, found 7
(#137) Inline comments must start with a capital letter, digit or 3-dots sequence
(#137) No space found before comment text; expected "// attempt can be null in grp_attempt if attempt never submitted by user" but found "//attempt can be null in grp_attempt if attempt never submitted by user"
(#138) Inline comments must end in full-stops, exclamation marks, or question marks
(#138) No space found before comment text; expected "// better to retreive attempt via quizid and userid" but found "//better to retreive attempt via quizid and userid"
(#140) Inline comments must start with a capital letter, digit or 3-dots sequence
(#140) Inline comments must end in full-stops, exclamation marks, or question marks
(#140) No space found before comment text; expected "// delete record in DB" but found "//delete record in DB"
(#143) Space found before semicolon; expected "true;" but found "true ;"
(#159) Inline comments must start with a capital letter, digit or 3-dots sequence
(#159) Inline comments must end in full-stops, exclamation marks, or question marks
(#159) This comment is 70% valid code; is this commented out code?
(#159) Line indented incorrectly; expected at least 8 spaces, found 6
(#159) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#161) This comment is 54% valid code; is this commented out code?
(#161) Line indented incorrectly; expected at least 8 spaces, found 7
(#168) Inline comments must start with a capital letter, digit or 3-dots sequence
(#168) Inline comments must end in full-stops, exclamation marks, or question marks
(#168) This comment is 57% valid code; is this commented out code?
(#168) Line indented incorrectly; expected at least 8 spaces, found 7
(#170) Inline comments must start with a capital letter, digit or 3-dots sequence
(#170) Inline comments must end in full-stops, exclamation marks, or question marks
(#170) No space found before comment text; expected "// delete record in DB for group in quiz" but found "//delete record in DB for group in quiz"
mod/quiz/report/group/db/events.php
(#26) Inline comments must start with a capital letter, digit or 3-dots sequence
(#26) Inline comments must end in full-stops, exclamation marks, or question marks
(#33) Inline comments must start with a capital letter, digit or 3-dots sequence
(#33) Inline comments must end in full-stops, exclamation marks, or question marks
(#39) Inline comments must start with a capital letter, digit or 3-dots sequence
(#39) Inline comments must end in full-stops, exclamation marks, or question marks
(#44) Inline comments must start with a capital letter, digit or 3-dots sequence
(#44) Inline comments must end in full-stops, exclamation marks, or question marks
(#50) Inline comments must start with a capital letter, digit or 3-dots sequence
(#50) Inline comments must end in full-stops, exclamation marks, or question marks
mod/quiz/report/group/groupdispatchgrade_form.php
(#42) Inline comments must start with a capital letter, digit or 3-dots sequence
(#42) Inline comments must end in full-stops, exclamation marks, or question marks
(#50) Inline comments must start with a capital letter, digit or 3-dots sequence
(#50) Inline comments must end in full-stops, exclamation marks, or question marks
(#54) Visibility must be declared on method "validation"
mod/quiz/report/group/groupsettings_form.php
(#49) This comment is 70% valid code; is this commented out code?
(#54) Line exceeds 132 characters; contains 172 characters
(#63) Inline comments must start with a capital letter, digit or 3-dots sequence
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
(#71) Inline comments must start with a capital letter, digit or 3-dots sequence
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#74) Inline comments must start with a capital letter, digit or 3-dots sequence
(#74) Inline comments must end in full-stops, exclamation marks, or question marks
(#74) No space found before comment text; expected "// submit button" but found "//submit button"
(#76) This comment is 75% valid code; is this commented out code?
(#76) Inline comments must start with a capital letter, digit or 3-dots sequence
(#77) Inline comments must end in full-stops, exclamation marks, or question marks
(#77) This comment is 75% valid code; is this commented out code?
(#81) Visibility must be declared on method "validation"
mod/quiz/report/group/locallib.php
(#39) Inline comments must start with a capital letter, digit or 3-dots sequence
(#39) No space found before comment text; expected "// todo use get_fieldset_select instead of get_record ??" but found "//todo use get_fieldset_select instead of get_record ??"
(#63) Inline comments must start with a capital letter, digit or 3-dots sequence
(#63) Inline comments must end in full-stops, exclamation marks, or question marks
(#65) Inline comments must start with a capital letter, digit or 3-dots sequence
(#65) Inline comments must end in full-stops, exclamation marks, or question marks
(#69) Inline comments must start with a capital letter, digit or 3-dots sequence
(#69) Inline comments must end in full-stops, exclamation marks, or question marks
(#76) Inline comments must start with a capital letter, digit or 3-dots sequence
(#76) Inline comments must end in full-stops, exclamation marks, or question marks
(#81) Inline comments must start with a capital letter, digit or 3-dots sequence
(#84) Inline comments must start with a capital letter, digit or 3-dots sequence
(#84) Inline comments must end in full-stops, exclamation marks, or question marks
(#89) Inline comments must start with a capital letter, digit or 3-dots sequence
(#89) Inline comments must end in full-stops, exclamation marks, or question marks
(#92) Inline comments must start with a capital letter, digit or 3-dots sequence
(#114) Inline comments must start with a capital letter, digit or 3-dots sequence
(#114) Inline comments must end in full-stops, exclamation marks, or question marks
(#116) Inline comments must start with a capital letter, digit or 3-dots sequence
(#116) Inline comments must end in full-stops, exclamation marks, or question marks
(#116) This comment is 60% valid code; is this commented out code?
(#118) Inline comments must start with a capital letter, digit or 3-dots sequence
(#119) Inline comments must end in full-stops, exclamation marks, or question marks
(#119) This comment is 57% valid code; is this commented out code?
(#121) Inline comments must start with a capital letter, digit or 3-dots sequence
(#121) Inline comments must end in full-stops, exclamation marks, or question marks
(#123) Inline comments must start with a capital letter, digit or 3-dots sequence
(#123) Inline comments must end in full-stops, exclamation marks, or question marks
(#153) Inline comments must start with a capital letter, digit or 3-dots sequence
(#153) Inline comments must end in full-stops, exclamation marks, or question marks
(#153) No space found before comment text; expected "// now" but found "//now"
(#161) 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
(#161) No space found before comment text; expected "// create grp attempt in DB" but found "//create grp attempt in DB"
(#163) Expected "} else if (...) {\n"; found "} else if(...) {\n"
(#163) Expected "if (...) {\n"; found "if(...) {\n"
(#163) Expected 1 space before ">"; 0 found
(#163) Expected 1 space after ">"; 0 found
(#164) Inline comments must start with a capital letter, digit or 3-dots sequence
(#164) No space found before comment text; expected "// do not save group attempt if its value is 0, and display error message" but found "//do not save group attempt if its value is 0, and display error message"
(#165) Inline comments must end in full-stops, exclamation marks, or question marks
(#165) No space found before comment text; expected "// dispaly error message user not in grouing selected for group quiz" but found "//dispaly error message user not in grouing selected for group quiz"
(#183) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#186) Inline comments must start with a capital letter, digit or 3-dots sequence
(#186) No space found before comment text; expected "// change order of fields to get userid as index for grade array." but found "//change order of fields to get userid as index for grade array."
(#188) Inline comments must start with a capital letter, digit or 3-dots sequence
(#188) Inline comments must end in full-stops, exclamation marks, or question marks
(#188) This comment is 63% valid code; is this commented out code?
(#188) Line indented incorrectly; expected at least 4 spaces, found 2
(#188) Expected 1 space before comment text but found 2; use block comment if you need indentation
(#189) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#191) Inline comments must start with a capital letter, digit or 3-dots sequence
(#191) No space found before comment text; expected "// if no grp attempt : create from DB if they exist." but found "//if no grp attempt : create from DB if they exist."
(#193) Inline comments must start with a capital letter, digit or 3-dots sequence
(#193) Inline comments must end in full-stops, exclamation marks, or question marks
(#193) No space found before comment text; expected "// check if attempts exist in attempt table that didnt get saved in grp attempt dB; if yes copy them in grp attempt table" but found "//check if attempts exist in attempt table that didnt get saved in grp attempt dB; if yes copy them in grp attempt table"
(#197) Inline comments must start with a capital letter, digit or 3-dots sequence
(#197) Inline comments must end in full-stops, exclamation marks, or question marks
(#197) No space found before comment text; expected "// if user not in correct grouping do not create" but found "//if user not in correct grouping do not create"
(#204) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#207) Inline comments must start with a capital letter, digit or 3-dots sequence
(#207) Inline comments must end in full-stops, exclamation marks, or question marks
(#207) No space found before comment text; expected "// get group id" but found "//get group id"
(#210) Inline comments must start with a capital letter, digit or 3-dots sequence
(#210) Inline comments must end in full-stops, exclamation marks, or question marks
(#210) No space found before comment text; expected "// get attempt for grp_attempt" but found "//get attempt for grp_attempt"
(#213) Inline comments must start with a capital letter, digit or 3-dots sequence
(#213) Inline comments must end in full-stops, exclamation marks, or question marks
(#213) No space found before comment text; expected "// get all user for group id" but found "//get all user for group id"
(#216) Inline comments must start with a capital letter, digit or 3-dots sequence
(#216) Inline comments must end in full-stops, exclamation marks, or question marks
(#216) No space found before comment text; expected "// retrieve grade from this user" but found "//retrieve grade from this user"
(#220) Inline comments must start with a capital letter, digit or 3-dots sequence
(#220) Inline comments must end in full-stops, exclamation marks, or question marks
(#228) Inline comments must start with a capital letter, digit or 3-dots sequence
(#228) Inline comments must end in full-stops, exclamation marks, or question marks
(#228) No space found before comment text; expected "// duplicate grade for each user iin list" but found "//duplicate grade for each user iin list"
(#230) Inline comments must start with a capital letter, digit or 3-dots sequence
(#230) Inline comments must end in full-stops, exclamation marks, or question marks
(#230) No space found before comment text; expected "// delete current user of users list" but found "//delete current user of users list"
(#231) Empty IF statement detected
(#232) Inline comments must start with a capital letter, digit or 3-dots sequence
(#232) Inline comments must end in full-stops, exclamation marks, or question marks
(#235) Inline comments must end in full-stops, exclamation marks, or question marks
(#237) Inline comments must start with a capital letter, digit or 3-dots sequence
(#237) Inline comments must end in full-stops, exclamation marks, or question marks
(#240) Inline comments must start with a capital letter, digit or 3-dots sequence
(#240) Inline comments must end in full-stops, exclamation marks, or question marks
(#242) Inline comments must start with a capital letter, digit or 3-dots sequence
(#242) Inline comments must end in full-stops, exclamation marks, or question marks
(#242) This comment is 55% valid code; is this commented out code?
(#242) Line indented incorrectly; expected at least 20 spaces, found 19
(#244) Inline comments must start with a capital letter, digit or 3-dots sequence
(#244) Inline comments must end in full-stops, exclamation marks, or question marks
(#246) Expected 1 space before "="; 0 found
(#251) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#254) Inline comments must end in full-stops, exclamation marks, or question marks
(#254) No space found before comment text; expected "// get user grade for quiz" but found "//get user grade for quiz"
(#257) Inline comments must start with a capital letter, digit or 3-dots sequence
(#257) Inline comments must end in full-stops, exclamation marks, or question marks
(#257) No space found before comment text; expected "// if exist, update if grade is different" but found "//if exist, update if grade is different"
(#260) Inline comments must start with a capital letter, digit or 3-dots sequence
(#260) Inline comments must end in full-stops, exclamation marks, or question marks
(#260) No space found before comment text; expected "// if don't exist create grade" but found "//if don't exist create grade"
(#273) Inline comments must start with a capital letter, digit or 3-dots sequence
(#273) Inline comments must end in full-stops, exclamation marks, or question marks
(#273) No space found before comment text; expected "// display validation message" but found "//display validation message"
(#290) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#292) Inline comments must start with a capital letter, digit or 3-dots sequence
(#293) Inline comments must end in full-stops, exclamation marks, or question marks
(#294) Commas (,) must be followed by white space.
(#297) Expected 1 space before ".="; 0 found
(#300) Inline comments must start with a capital letter, digit or 3-dots sequence
(#300) Inline comments must end in full-stops, exclamation marks, or question marks
(#300) No space found before comment text; expected "// get all course quizs id" but found "//get all course quizs id"
(#303) Inline comments must start with a capital letter, digit or 3-dots sequence
(#303) Inline comments must end in full-stops, exclamation marks, or question marks
(#303) No space found before comment text; expected "// get all grp attempts foreach quizs id ang groups not in list (--> deleted)" but found "//get all grp attempts foreach quizs id ang groups not in list (--> deleted)"
(#307) Inline comments must start with a capital letter, digit or 3-dots sequence
(#307) Inline comments must end in full-stops, exclamation marks, or question marks
(#307) No space found before comment text; expected "// delete each grp attempt from deleted grp" but found "//delete each grp attempt from deleted grp"
(#309) Inline comments must start with a capital letter, digit or 3-dots sequence
(#309) Inline comments must end in full-stops, exclamation marks, or question marks
(#309) No space found before comment text; expected "// delete record in DB" but found "//delete record in DB"
(#311) Expected 1 space before "=>"; 0 found
(#311) Expected 1 space after "=>"; 0 found
(#314) Functions must not contain multiple empty lines in a row; found 3 empty lines
mod/quiz/report/group/report.php
(#56) Inline comments must start with a capital letter, digit or 3-dots sequence
(#56) Inline comments must end in full-stops, exclamation marks, or question marks
(#56) This comment is 60% valid code; is this commented out code?
(#56) Line indented incorrectly; expected at least 8 spaces, found 5
(#56) Expected 1 space before comment text but found 3; use block comment if you need indentation
(#65) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#67) Inline comments must start with a capital letter, digit or 3-dots sequence
(#67) Inline comments must end in full-stops, exclamation marks, or question marks
(#68) Expected 1 space before "=>"; 0 found
(#68) Expected 1 space after "=>"; 0 found
(#71) Inline comments must start with a capital letter, digit or 3-dots sequence
(#71) Inline comments must end in full-stops, exclamation marks, or question marks
(#75) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#78) Functions must not contain multiple empty lines in a row; found 3 empty lines
(#81) Inline comments must start with a capital letter, digit or 3-dots sequence
(#81) Inline comments must end in full-stops, exclamation marks, or question marks
(#83) Expected 1 space before "=>"; 0 found
(#83) Expected 1 space after "=>"; 0 found
(#83) This comment is 80% valid code; is this commented out code?
(#84) Functions must not contain multiple empty lines in a row; found 3 empty lines
(#87) Inline comments must start with a capital letter, digit or 3-dots sequence
(#87) Inline comments must end in full-stops, exclamation marks, or question marks
(#90) Inline comments must start with a capital letter, digit or 3-dots sequence
(#90) Inline comments must end in full-stops, exclamation marks, or question marks
(#92) Inline comments must start with a capital letter, digit or 3-dots sequence
(#92) Inline comments must end in full-stops, exclamation marks, or question marks
(#92) No space found before comment text; expected "// return to view quiz page" but found "//return to view quiz page"
(#95) Inline comments must start with a capital letter, digit or 3-dots sequence
(#97) Inline comments must start with a capital letter, digit or 3-dots sequence
(#97) Inline comments must end in full-stops, exclamation marks, or question marks
(#101) Inline comments must start with a capital letter, digit or 3-dots sequence
(#101) Inline comments must end in full-stops, exclamation marks, or question marks
(#109) Inline comments must start with a capital letter, digit or 3-dots sequence
(#109) Inline comments must end in full-stops, exclamation marks, or question marks
(#110) Expected 1 space after "=>"; 2 found
(#112) Expected 1 space before "="; 0 found
(#112) Expected 1 space after "="; 0 found
(#117) Expected 1 space before "=>"; 0 found
(#117) Expected 1 space after "=>"; 0 found
(#121) Inline comments must start with a capital letter, digit or 3-dots sequence
(#121) Inline comments must end in full-stops, exclamation marks, or question marks
(#122) Line exceeds 132 characters; contains 148 characters
(#129) Inline comments must end in full-stops, exclamation marks, or question marks
(#134) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#139) Functions must not contain multiple empty lines in a row; found 2 empty lines
(#143) Functions must not contain multiple empty lines in a row; found 2 empty lines
mod/quiz/report/group/version.php
(#28) Expected 1 space after "="; 0 found

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

(16 errors, 0 warnings)

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

mod/quiz/report/group/classes/observer.php
(#18) File-level phpdocs block is not found
(#38) Phpdocs for function quiz_group_observer::attempt_started has incomplete parameters list
(#84) Phpdocs for function quiz_group_observer::attempt_submitted has incomplete parameters list
(#126) Phpdocs for function quiz_group_observer::attempt_deleted has incomplete parameters list
(#150) Phpdocs for function quiz_group_observer::attempt_abandoned has incomplete parameters list
mod/quiz/report/group/groupdispatchgrade_form.php
(#40) Function quiz_group_dispatchgrade_form::definition is not documented
(#54) Function quiz_group_dispatchgrade_form::validation is not documented
mod/quiz/report/group/groupsettings_form.php
(#40) Function quiz_group_settings_form::definition is not documented
(#81) Function quiz_group_settings_form::validation is not documented
mod/quiz/report/group/locallib.php
(#175) Phpdocs for function dispatch_grade has incomplete parameters list
mod/quiz/report/group/report.php
(#43) Variable quiz_group_report::$viewoptions is not documented
(#44) Variable quiz_group_report::$questions is not documented
(#45) Variable quiz_group_report::$cm is not documented
(#46) Variable quiz_group_report::$quiz is not documented
(#47) Variable quiz_group_report::$context is not documented
(#49) There is no description in phpdocs for function display

Update savepoints problems

(0 errors, 0 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]


Third party library modification problems

(0 errors, 0 warnings)

This section shows problems detected with the modification of third party libraries [More info]


grunt changes

(0 errors, 0 warnings)

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


shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 0 warnings)

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