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

(21 errors, 62 warnings)

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

mod/quiz/report/outline/classes/privacy/provider.php
(#27) Import statements must not begin with a leading backslash
(#28) Import statements must not begin with a leading backslash
(#29) Import statements must not begin with a leading backslash
(#30) Import statements must not begin with a leading backslash
(#32) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#51) There must not be a space before the colon in a return type declaration
mod/quiz/report/outline/db/install.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/quiz/report/outline/db/upgrade.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
mod/quiz/report/outline/lang/pt_br/quiz_outline.php
(#2) The opening <?php tag must be followed by exactly one newline.
mod/quiz/report/outline/outline_form.php
(#28) DocBlock missing a @package tag for class quiz_outline_settings_form. Expected @package quiz_outline
mod/quiz/report/outline/outline_options.php
(#28) DocBlock missing a @package tag for class quiz_outline_options. Expected @package quiz_outline
(#93) Short array syntax must be used to define arrays
mod/quiz/report/outline/outline_table.php
(#42) Short array syntax must be used to define arrays
(#132) Short array syntax must be used to define arrays
(#136) There should be a comma after the last array item in a multi-line array.
(#173) Short array syntax must be used to define arrays
(#176) Short array syntax must be used to define arrays
(#216) Short array syntax must be used to define arrays
(#216) Short array syntax must be used to define arrays
(#219) Short array syntax must be used to define arrays
(#220) Short array syntax must be used to define arrays
(#221) Short array syntax must be used to define arrays
(#235) There should be a comma after the last array item in a multi-line array.
(#277) Whitespace found at end of line
(#296) Space found before square bracket; expected "][" but found "] ["
(#298) Space found before square bracket; expected "][" but found "] ["
(#301) Space found before square bracket; expected "][" but found "] ["
(#303) Space found before square bracket; expected "][" but found "] ["
(#312) Short array syntax must be used to define arrays
(#313) Short array syntax must be used to define arrays
(#429) Short array syntax must be used to define arrays
(#520) Short array syntax must be used to define arrays
mod/quiz/report/outline/outlinegraph.php
(#28) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
mod/quiz/report/outline/report.php
(#34) DocBlock missing a @package tag for class quiz_outline_report. Expected @package quiz_outline
(#74) Short array syntax must be used to define arrays
(#135) Expected 1 space before "="; 0 found
(#153) Short array syntax must be used to define arrays
(#171) Line exceeds 132 characters; contains 137 characters
(#172) This comment is 53% valid code; is this commented out code?
(#181) Short array syntax must be used to define arrays
(#182) Short array syntax must be used to define arrays
(#239) Short array syntax must be used to define arrays
(#239) Expected 1 space before "=>"; 0 found
(#266) Short array syntax must be used to define arrays
(#378) Short array syntax must be used to define arrays
(#382) Short array syntax must be used to define arrays
(#383) There should be a comma after the last array item in a multi-line array.
(#384) There should be a comma after the last array item in a multi-line array.
(#459) Short array syntax must be used to define arrays
(#468) Short array syntax must be used to define arrays
(#504) Short array syntax must be used to define arrays
(#520) Short array syntax must be used to define arrays
(#567) Short array syntax must be used to define arrays
(#614) Short array syntax must be used to define arrays
(#665) Short array syntax must be used to define arrays
mod/quiz/report/outline/tests/helpers.php
(#57) Possible useless method overriding detected
mod/quiz/report/outline/tests/privacy/provider_test.php
(#31) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#44) Test method test_preference_unset() is missing any coverage information, own or at class level
(#58) Test method test_preference_yes() is missing any coverage information, own or at class level
(#86) Test method test_preference_no() is missing any coverage information, own or at class level
mod/quiz/report/outline/tests/report_test.php
(#56) Data provider method "report_sql_cases" will need to be converted to static in future.
(#66) Test method test_report_sql() is missing any coverage information, own or at class level
(#74) Short array syntax must be used to define arrays
(#108) Short array syntax must be used to define arrays
(#109) Short array syntax must be used to define arrays
(#110) Short array syntax must be used to define arrays
(#111) Short array syntax must be used to define arrays
(#112) Short array syntax must be used to define arrays
(#113) Short array syntax must be used to define arrays
(#114) Short array syntax must be used to define arrays
(#115) Short array syntax must be used to define arrays
(#116) Short array syntax must be used to define arrays
(#117) Short array syntax must be used to define arrays
(#118) Short array syntax must be used to define arrays
(#174) Short array syntax must be used to define arrays
(#181) Short array syntax must be used to define arrays
(#187) Short array syntax must be used to define arrays
(#189) Short array syntax must be used to define arrays
(#250) Data provider method "get_bands_count_and_width_provider" will need to be converted to static in future.
(#256) Inline comments must end in full-stops, exclamation marks, or question marks
(#269) Test method test_get_bands_count_and_width() is missing any coverage information, own or at class level
(#279) Test method test_delete_selected_attempts() is missing any coverage information, own or at class level
(#294) There should be a comma after the last array item in a multi-line array.

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

(8 errors, 26 warnings)

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

mod/quiz/report/outline/lang/pt_br/quiz_outline.php
(#2) Empty line found after PHP open tag
mod/quiz/report/outline/outline_form.php
(#30) Function quiz_outline_settings_form::other_attempt_fields is not documented
(#38) Function quiz_outline_settings_form::other_preference_fields is not documented
mod/quiz/report/outline/outline_options.php
(#36) Function quiz_outline_options::get_url_params is not documented
(#43) Function quiz_outline_options::get_initial_form_data is not documented
(#51) Function quiz_outline_options::setup_from_form_data is not documented
(#58) Function quiz_outline_options::setup_from_params is not documented
(#65) Function quiz_outline_options::setup_from_user_preferences is not documented
(#71) Function quiz_outline_options::update_user_preferences is not documented
(#79) Function quiz_outline_options::resolve_dependencies is not documented
(#22) Inline phpdocs tag {@link quiz_outline_report} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
mod/quiz/report/outline/outline_table.php
(#68) Function quiz_outline_table::build_table is not documented
(#225) Function quiz_outline_table::submit_buttons is not documented
(#242) Function quiz_outline_table::col_attemptstotal is not documented
(#245) Function quiz_outline_table::col_attemptsmade is not documented
(#254) Function quiz_outline_table::col_attemptsremaining is not documented
(#264) Function quiz_outline_table::col_gradepass is not documented
(#267) Function quiz_outline_table::col_status is not documented
(#279) Function quiz_outline_table::col_sumgrades is not documented
(#370) Function quiz_outline_table::col_regraded is not documented
(#380) Function quiz_outline_table::update_sql_after_count is not documented
(#396) Function quiz_outline_table::requires_latest_steps_loaded is not documented
(#400) Function quiz_outline_table::is_latest_step_column is not documented
(#407) Function quiz_outline_table::get_required_latest_state_fields is not documented
(#411) Function quiz_outline_table::query_db is not documented
(#523) Function quiz_outline_table::get_row_class is not documented
(#42) Variable quiz_outline_table::$regradedqs is not documented
(#316) There is no description in phpdocs for function other_cols
(#168) Inline phpdocs tag {@link add_average_row()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
mod/quiz/report/outline/report.php
(#53) Function quiz_outline_report::display is not documented
(#451) Phpdocs for function quiz_outline_report::regrade_attempts has incomplete parameters list
(#680) Phpdocs for function quiz_outline_report::update_overall_grades has incomplete parameters list
(#547) Inline phpdocs tag {@link regrade_attempts()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#548) Inline phpdocs tag {@link regrade_attempts_needing_it()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}

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]


Gherkin .feature problems

(0 errors, 0 warnings)

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