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

(23 errors, 51 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
(#17) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#29) DocBlock missing a @package tag for class quiz_outline_settings_form. Expected @package quiz_outline
mod/quiz/report/outline/outline_options.php
(#17) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#29) DocBlock missing a @package tag for class quiz_outline_options. Expected @package quiz_outline
(#94) Short array syntax must be used to define arrays
mod/quiz/report/outline/outline_table.php
(#21) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#31) DocBlock missing a @package tag for class quiz_outline_table. Expected @package quiz_outline
(#128) There should be a comma after the last array item in a multi-line array.
(#227) There should be a comma after the last array item in a multi-line array.
(#269) Whitespace found at end of line
(#288) Space found before square bracket; expected "][" but found "] ["
(#290) Space found before square bracket; expected "][" but found "] ["
(#293) Space found before square bracket; expected "][" but found "] ["
(#295) Space found before square bracket; expected "][" but found "] ["
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

(7 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
(#31) Function quiz_outline_settings_form::other_attempt_fields is not documented
(#39) Function quiz_outline_settings_form::other_preference_fields is not documented
mod/quiz/report/outline/outline_options.php
(#37) Function quiz_outline_options::get_url_params is not documented
(#44) Function quiz_outline_options::get_initial_form_data is not documented
(#52) Function quiz_outline_options::setup_from_form_data is not documented
(#59) Function quiz_outline_options::setup_from_params is not documented
(#66) Function quiz_outline_options::setup_from_user_preferences is not documented
(#72) Function quiz_outline_options::update_user_preferences is not documented
(#80) Function quiz_outline_options::resolve_dependencies is not documented
(#23) 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
(#60) Function quiz_outline_table::build_table is not documented
(#217) Function quiz_outline_table::submit_buttons is not documented
(#234) Function quiz_outline_table::col_attemptstotal is not documented
(#237) Function quiz_outline_table::col_attemptsmade is not documented
(#246) Function quiz_outline_table::col_attemptsremaining is not documented
(#256) Function quiz_outline_table::col_gradepass is not documented
(#259) Function quiz_outline_table::col_status is not documented
(#271) Function quiz_outline_table::col_sumgrades is not documented
(#362) Function quiz_outline_table::col_regraded is not documented
(#372) Function quiz_outline_table::update_sql_after_count is not documented
(#388) Function quiz_outline_table::requires_latest_steps_loaded is not documented
(#392) Function quiz_outline_table::is_latest_step_column is not documented
(#399) Function quiz_outline_table::get_required_latest_state_fields is not documented
(#403) Function quiz_outline_table::query_db is not documented
(#424) Function quiz_outline_table::get_row_class is not documented
(#308) There is no description in phpdocs for function other_cols
(#160) 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]