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

(123 errors, 16 warnings)

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

mod/quiz/report/cbmgrades/cbmgrades_options.php
(#73) Inline comments must start with a capital letter, digit or 3-dots sequence
(#73) Inline comments must end in full-stops, exclamation marks, or question marks
(#73) This comment is 46% valid code; is this commented out code?
(#73) Line indented incorrectly; expected at least 8 spaces, found 0
(#73) Expected 1 space before comment text but found 8; use block comment if you need indentation
mod/quiz/report/cbmgrades/cbmgrades_table.php
(#58) Expected 1 space after "="; 2 found
(#106) Member variable "num_rs" must not contain underscores.
(#106) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#106) Scope modifier not specified for member variable "$num_rs"
(#106) Member variable "num_all" must not contain underscores.
(#106) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#106) Scope modifier not specified for member variable "$num_all"
(#106) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#106) Scope modifier not specified for member variable "$sumwts"
(#106) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#106) Scope modifier not specified for member variable "$sumcorr"
(#106) The 'var' keyword is not permitted.Visibility must be explicitly declared with public, private or protected
(#106) Scope modifier not specified for member variable "$sumcbm"
(#109) Inline comments must end in full-stops, exclamation marks, or question marks
(#124) Expected 1 space before "="; 0 found
(#124) Expected 1 space after "="; 0 found
(#124) Commas (,) must be followed by white space.
(#131) Commas (,) must be followed by white space.
(#135) Inline comments must end in full-stops, exclamation marks, or question marks
(#138) Expected 1 space before "="; 0 found
(#138) Expected 1 space after "="; 0 found
(#138) Expected 1 space before "+"; 0 found
(#138) Expected 1 space after "+"; 0 found
(#138) Expected 1 space before "*"; 0 found
(#138) Expected 1 space after "*"; 0 found
(#138) Expected 1 space before "+"; 0 found
(#138) Expected 1 space after "+"; 0 found
(#138) Expected 1 space before "*"; 0 found
(#138) Expected 1 space after "*"; 0 found
(#143) Commas (,) must be followed by white space.
(#147) Commas (,) must be followed by white space.
(#154) Commas (,) must be followed by white space.
(#161) Commas (,) must be followed by white space.
(#168) Commas (,) must be followed by white space.
(#172) Expected 1 space before "="; 0 found
(#172) Expected 1 space after "="; 0 found
(#173) Expected 1 space before "="; 0 found
(#173) Expected 1 space after "="; 0 found
(#174) Expected 1 space before "="; 0 found
(#174) Expected 1 space after "="; 0 found
(#175) Expected 1 space before "="; 0 found
(#175) Expected 1 space after "="; 0 found
(#176) Expected 1 space before "="; 0 found
(#176) Expected 1 space after "="; 0 found
(#177) Inline control structures are not allowed
(#178) Expected 1 space before "="; 0 found
(#178) Expected 1 space after "="; 0 found
(#179) Expected "foreach (...) {\n"; found "foreach(...) {\n"
(#187) Commas (,) must be followed by white space.
(#187) Commas (,) must be followed by white space.
(#187) Commas (,) must be followed by white space.
(#187) Commas (,) must be followed by white space.
(#187) Expected 1 space before ">"; 0 found
(#187) Expected 1 space after ">"; 0 found
(#188) Expected 1 space before "="; 0 found
(#188) Expected 1 space after "="; 0 found
(#194) Expected 1 space before "="; 0 found
(#194) Expected 1 space after "="; 0 found
(#196) Expected "} else if (...) {\n"; found "}\n else if (...) {\n"
(#197) Commas (,) must be followed by white space.
(#198) Expected 1 space before "="; 0 found
(#198) Expected 1 space after "="; 0 found
(#200) Expected "} else {\n"; found "}\n else {\n"
(#201) Expected 1 space before "="; 0 found
(#201) Expected 1 space after "="; 0 found
(#201) Inline comments must end in full-stops, exclamation marks, or question marks
(#201) No space found before comment text; expected "// NB this is a token fraction for partially correct (shd be rawfraction)" but found "//NB this is a token fraction for partially correct (shd be rawfraction)"
(#204) Inline control structures are not allowed
(#204) Expected 1 space before "="; 0 found
(#204) Expected 1 space after "="; 0 found
(#210) Expected 1 space before "="; 0 found
(#210) Expected 1 space after "="; 0 found
(#210) Expected 1 space before "+"; 0 found
(#210) Expected 1 space after "+"; 0 found
(#210) Expected 1 space before "*"; 0 found
(#210) Expected 1 space after "*"; 0 found
(#210) Expected 1 space before "+"; 0 found
(#210) Expected 1 space after "+"; 0 found
(#210) Expected 1 space before "*"; 0 found
(#210) Expected 1 space after "*"; 0 found
(#229) Line indented incorrectly; expected 8 spaces, found 9
(#231) Closing brace indented incorrectly; expected 9 spaces, found 8
(#238) Commas (,) must be followed by white space.
(#249) Expected 1 space before "="; 0 found
(#249) Expected 1 space after "="; 0 found
(#249) Commas (,) must be followed by white space.
(#250) Expected "if (...) {\n"; found "if(...){\n"
(#251) Expected 1 space before "="; 0 found
(#253) Inline control structures are not allowed
(#253) Expected 1 space before "="; 0 found
(#253) Expected 1 space after "="; 0 found
(#258) Line indented incorrectly; expected 8 spaces, found 9
(#258) Expected "if (...) {\n"; found "if(...) {\n"
(#260) Line indented incorrectly; expected 8 spaces, found 9
(#260) Inline control structures are not allowed
mod/quiz/report/cbmgrades/lang/en/quiz_cbmgrades.php
(#61) This comment is 61% valid code; is this commented out code?
(#61) Inline comments must start with a capital letter, digit or 3-dots sequence
(#61) No space found before comment text; expected "// $string['cannotloadoptions'] = 'Could not load question options';" but found "//$string['cannotloadoptions'] = 'Could not load question options';"
(#62) No space found before comment text; expected "// $string['include'] = 'Include the';" but found "//$string['include'] = 'Include the';"
(#63) No space found before comment text; expected "// $string['mustselectcols'] = 'You must include something.';" but found "//$string['mustselectcols'] = 'You must include something.';"
(#64) No space found before comment text; expected "// $string['questiontext'] = 'question data;';" but found "//$string['questiontext'] = 'question data;';"
(#65) No space found before comment text; expected "// $string['response'] = 'response ';" but found "//$string['response'] = 'response ';"
(#66) No space found before comment text; expected "// $string['rightanswerx'] = 'Right answer {$a}';" but found "//$string['rightanswerx'] = 'Right answer {$a}';"
(#67) No space found before comment text; expected "// $string['showattempts'] = 'Only show / download attempts';" but found "//$string['showattempts'] = 'Only show / download attempts';"
(#68) No space found before comment text; expected "// $string['summaryofquestiontext'] = 'Summary of the question';" but found "//$string['summaryofquestiontext'] = 'Summary of the question';"
(#69) No space found before comment text; expected "// $string['summaryofresponse'] = 'Summary of the response given';" but found "//$string['summaryofresponse'] = 'Summary of the response given';"
(#70) Inline comments must end in full-stops, exclamation marks, or question marks
(#70) No space found before comment text; expected "// $string['summaryofrightanswer'] = 'Summary of the right answer';" but found "//$string['summaryofrightanswer'] = 'Summary of the right answer';"
mod/quiz/report/cbmgrades/report.php
(#68) Inline comments must start with a capital letter, digit or 3-dots sequence
(#68) Inline comments must end in full-stops, exclamation marks, or question marks
(#72) Expected "} else {\n"; found "}\n else {\n"
(#98) Expected 1 space after "="; newline found
(#189) Line exceeds 132 characters; contains 139 characters
(#190) Line exceeds 132 characters; contains 155 characters
(#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
(#208) Line indented incorrectly; expected 16 spaces, found 24
(#209) Line indented incorrectly; expected 20 spaces, found 28
(#211) Line indented incorrectly; expected 24 spaces, found 32
(#212) Expected 1 space before "="; 0 found
(#212) Expected 1 space after "="; 0 found
(#213) Line indented incorrectly; expected 24 spaces, found 32
(#214) Inline control structures are not allowed
(#214) Expected 1 space before "="; 0 found
(#214) Expected 1 space after "="; 0 found
(#215) Line indented incorrectly; expected 24 spaces, found 32
(#215) Expected "if (...) {\n"; found "if(...) {\n"
(#215) Expected 1 space before "!="; 0 found
(#215) Expected 1 space after "!="; 0 found
(#216) Commas (,) must be followed by white space.
(#217) Line indented incorrectly; expected 24 spaces, found 32
(#219) Line indented incorrectly; expected 20 spaces, found 28
(#220) Line indented incorrectly; expected 16 spaces, found 24
mod/quiz/report/cbmgrades/version.php
(#31) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(42 errors, 0 warnings)

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

mod/quiz/report/cbmgrades/cbmgrades_form.php
(#39) Function quiz_cbmgrades_settings_form::other_preference_fields is not documented
(#49) Function quiz_cbmgrades_settings_form::validation is not documented
(#17) No one-line description found in phpdocs for file
(#21) File-level phpdocs block does not have @copyright tag
mod/quiz/report/cbmgrades/cbmgrades_options.php
(#51) Function quiz_cbmgrades_options::get_url_params is not documented
(#60) Function quiz_cbmgrades_options::get_initial_form_data is not documented
(#70) Function quiz_cbmgrades_options::setup_from_form_data is not documented
(#79) Function quiz_cbmgrades_options::setup_from_params is not documented
(#88) Function quiz_cbmgrades_options::setup_from_user_preferences is not documented
(#97) Function quiz_cbmgrades_options::update_user_preferences is not documented
(#106) Function quiz_cbmgrades_options::resolve_dependencies is not documented
(#17) No one-line description found in phpdocs for file
(#21) File-level phpdocs block does not have @copyright tag
mod/quiz/report/cbmgrades/cbmgrades_table.php
(#57) Function quiz_cbmgrades_table::load_question_latest_steps is not documented
(#98) Function quiz_cbmgrades_table::build_table is not documented
(#108) Function quiz_cbmgrades_table::col_sumgrades is not documented
(#119) Function quiz_cbmgrades_table::col_resp_num is not documented
(#123) Function quiz_cbmgrades_table::col_marks is not documented
(#127) Function quiz_cbmgrades_table::col_cbm_av is not documented
(#134) Function quiz_cbmgrades_table::col_cbm_avchosen is not documented
(#146) Function quiz_cbmgrades_table::col_accy is not documented
(#150) Function quiz_cbmgrades_table::col_cbm_bonus is not documented
(#157) Function quiz_cbmgrades_table::col_cbm_accy is not documented
(#164) Function quiz_cbmgrades_table::col_cbm_grade is not documented
(#171) Function quiz_cbmgrades_table::calc_scores is not documented
(#215) Function quiz_cbmgrades_table::data_col is not documented
(#257) Function quiz_cbmgrades_table::other_cols is not documented
(#263) Function quiz_cbmgrades_table::requires_latest_steps_loaded is not documented
(#267) Function quiz_cbmgrades_table::is_latest_step_column is not documented
(#106) Variable quiz_cbmgrades_table::$num_rs is not documented
(#106) Variable quiz_cbmgrades_table::$num_all is not documented
(#106) Variable quiz_cbmgrades_table::$sumwts is not documented
(#106) Variable quiz_cbmgrades_table::$sumcorr is not documented
(#106) Variable quiz_cbmgrades_table::$sumcbm is not documented
(#17) No one-line description found in phpdocs for file
(#32) No one-line description found in phpdocs for class quiz_cbmgrades_table
(#22) File-level phpdocs block does not have @copyright tag
(#34) Invalid inline phpdocs tag @copyright found
mod/quiz/report/cbmgrades/report.php
(#95) Function quiz_cbmgrades_report::display is not documented
(#17) No one-line description found in phpdocs for file
(#21) File-level phpdocs block does not have @copyright tag
mod/quiz/report/cbmgrades/version.php
(#17) No one-line description found in phpdocs for file

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]


Mustache template problems

(0 errors, 0 warnings)

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