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

(354 errors, 322 warnings)

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

mod/adaptivequiz/attempt.php
(#1) DocBlock missing a @package tag for file attempt.php. Expected @package mod_adaptivequiz
(#40) Short array syntax must be used to define arrays
(#51) Short array syntax must be used to define arrays
(#53) Short array syntax must be used to define arrays
(#64) Short array syntax must be used to define arrays
(#65) Short array syntax must be used to define arrays
(#94) Short array syntax must be used to define arrays
(#152) Short array syntax must be used to define arrays
(#166) Short array syntax must be used to define arrays
(#180) Short array syntax must be used to define arrays
(#184) Short array syntax must be used to define arrays
(#234) Short array syntax must be used to define arrays
(#259) Short array syntax must be used to define arrays
(#277) Short array syntax must be used to define arrays
mod/adaptivequiz/attemptfinished.php
(#1) DocBlock missing a @package tag for file attemptfinished.php. Expected @package mod_adaptivequiz
(#37) Short array syntax must be used to define arrays
(#59) Short array syntax must be used to define arrays
(#63) Short array syntax must be used to define arrays
mod/adaptivequiz/backup/moodle2/backup_adaptivequiz_activity_task.class.php
(#1) DocBlock missing a @package tag for file backup_adaptivequiz_activity_task.class.php. Expected @package mod_adaptivequiz
(#29) Missing docblock for class backup_adaptivequiz_activity_task
mod/adaptivequiz/backup/moodle2/backup_adaptivequiz_stepslib.php
(#72) Short array syntax must be used to define arrays
mod/adaptivequiz/backup/moodle2/restore_adaptivequiz_activity_task.class.php
(#1) DocBlock missing a @package tag for file restore_adaptivequiz_activity_task.class.php. Expected @package mod_adaptivequiz
(#29) Missing docblock for class restore_adaptivequiz_activity_task
(#51) Short array syntax must be used to define arrays
(#52) Short array syntax must be used to define arrays
(#62) Short array syntax must be used to define arrays
(#79) Short array syntax must be used to define arrays
(#96) Short array syntax must be used to define arrays
mod/adaptivequiz/backup/moodle2/restore_adaptivequiz_stepslib.php
(#1) DocBlock missing a @package tag for file restore_adaptivequiz_stepslib.php. Expected @package mod_adaptivequiz
(#25) Missing docblock for class restore_adaptivequiz_activity_structure_step
(#32) Short array syntax must be used to define arrays
mod/adaptivequiz/classes/attempt_state_change_observers.php
(#1) DocBlock missing a @package tag for file attempt_state_change_observers.php. Expected @package mod_adaptivequiz
(#29) Missing docblock for class attempt_state_change_observers
(#31) Missing docblock for function attempt_completed
mod/adaptivequiz/classes/completion/custom_completion.php
(#1) DocBlock missing a @package tag for file custom_completion.php. Expected @package mod_adaptivequiz
(#29) Missing docblock for class custom_completion
(#32) Invalid docblock tag "@inheritDoc".
(#34) No one-line description found in phpdocs for docblock of function get_state
(#43) Invalid docblock tag "@inheritDoc".
(#45) No one-line description found in phpdocs for docblock of function get_defined_custom_rules
(#50) Invalid docblock tag "@inheritDoc".
(#52) No one-line description found in phpdocs for docblock of function get_custom_rule_descriptions
(#57) Invalid docblock tag "@inheritDoc".
(#59) No one-line description found in phpdocs for docblock of function get_sort_order
mod/adaptivequiz/classes/event/attempt_completed.php
(#1) DocBlock missing a @package tag for file attempt_completed.php. Expected @package mod_adaptivequiz
(#30) Missing docblock for class attempt_completed
(#33) Invalid docblock tag "@inheritDoc".
(#35) No one-line description found in phpdocs for docblock of function get_name
(#40) Invalid docblock tag "@inheritDoc".
(#42) No one-line description found in phpdocs for docblock of function get_description
(#58) Invalid docblock tag "@inheritDoc".
(#60) No one-line description found in phpdocs for docblock of function get_objectid_mapping
(#65) Invalid docblock tag "@inheritDoc".
(#67) No one-line description found in phpdocs for docblock of function init
mod/adaptivequiz/classes/event/course_module_instance_list_viewed.php
(#1) DocBlock missing a @package tag for file course_module_instance_list_viewed.php. Expected @package mod_adaptivequiz
(#27) Missing docblock for class course_module_instance_list_viewed
(#35) Short array syntax must be used to define arrays
(#36) There should be a comma after the last array item in a multi-line array.
mod/adaptivequiz/classes/event/course_module_viewed.php
(#1) DocBlock missing a @package tag for file course_module_viewed.php. Expected @package mod_adaptivequiz
(#27) Missing docblock for class course_module_viewed
(#29) Missing docblock for function init
mod/adaptivequiz/classes/form/requiredpassword.php
(#1) DocBlock missing a @package tag for file requiredpassword.php. Expected @package mod_adaptivequiz
(#34) Missing docblock for class requiredpassword
(#57) Short array syntax must be used to define arrays
mod/adaptivequiz/classes/local/attempt.php
(#1) DocBlock missing a @package tag for file attempt.php. Expected @package mod_adaptivequiz
(#40) Missing docblock for class attempt
(#42) Missing docblock for constant attempt::TABLE
(#67) Short array syntax must be used to define arrays
(#97) Short array syntax must be used to define arrays
(#114) Short array syntax must be used to define arrays
(#540) Short array syntax must be used to define arrays
(#548) No one-line description found in phpdocs for docblock of function user_has_completed_on_quiz
(#602) Short array syntax must be used to define arrays
mod/adaptivequiz/classes/local/attempt/attempt_state.php
(#1) DocBlock missing a @package tag for file attempt_state.php. Expected @package mod_adaptivequiz
(#28) Missing docblock for class attempt_state
(#30) Missing docblock for constant attempt_state::IN_PROGRESS
(#32) Missing docblock for constant attempt_state::COMPLETED
(#39) Missing docblock for function __construct
(#43) Missing docblock for function is_in_progress
(#47) Missing docblock for function is_completed
(#51) Missing docblock for function in_progress
(#55) Missing docblock for function completed
mod/adaptivequiz/classes/local/catalgo.php
(#1) DocBlock missing a @package tag for file catalgo.php. Expected @package mod_adaptivequiz
(#38) Missing docblock for class catalgo
(#51) Short array syntax must be used to define arrays
(#195) Short array syntax must be used to define arrays
(#326) Short array syntax must be used to define arrays
mod/adaptivequiz/classes/local/fetchquestion.php
(#1) DocBlock missing a @package tag for file fetchquestion.php. Expected @package mod_adaptivequiz
(#38) Missing docblock for class fetchquestion
(#58) Short array syntax must be used to define arrays
(#61) Short array syntax must be used to define arrays
(#79) Short array syntax must be used to define arrays
(#116) Short array syntax must be used to define arrays
(#257) Short array syntax must be used to define arrays
(#294) Short array syntax must be used to define arrays
(#295) Short array syntax must be used to define arrays
(#304) Short array syntax must be used to define arrays
(#458) Short array syntax must be used to define arrays
mod/adaptivequiz/classes/local/questionanalysis/attempt_score.php
(#1) DocBlock missing a @package tag for file attempt_score.php. Expected @package mod_adaptivequiz
(#29) Missing docblock for class attempt_score
(#48) Expected 0 spaces after "__construct"; 1 found
(#60) Expected 0 spaces after "measured_ability_in_logits"; 1 found
(#69) Expected 0 spaces after "standard_error_in_logits"; 1 found
(#78) Expected 0 spaces after "measured_ability_in_fraction"; 1 found
(#87) Expected 0 spaces after "standard_error_in_fraction"; 1 found
(#96) Expected 0 spaces after "measured_ability_in_scale"; 1 found
(#105) Expected 0 spaces after "standard_error_in_scale"; 1 found
mod/adaptivequiz/classes/local/questionanalysis/question_analyser.php
(#1) DocBlock missing a @package tag for file question_analyser.php. Expected @package mod_adaptivequiz
(#36) Missing docblock for class question_analyser
(#54) Short array syntax must be used to define arrays
(#57) Short array syntax must be used to define arrays
(#60) Short array syntax must be used to define arrays
(#70) Expected 0 spaces after "__construct"; 1 found
(#86) Expected 0 spaces after "add_result"; 1 found
(#99) No one-line description found in phpdocs for docblock of function get_owning_context
(#108) Expected 0 spaces after "get_question_definition"; 1 found
(#117) Expected 0 spaces after "get_question_level"; 1 found
(#126) Expected 0 spaces after "get_question_level_in_logits"; 1 found
(#135) Expected 0 spaces after "get_results"; 1 found
(#146) Expected 0 spaces after "add_statistic"; 1 found
(#160) Expected 0 spaces after "get_statistic_result"; 1 found
(#173) Expected 0 spaces after "map_logit_to_scale"; 1 found
mod/adaptivequiz/classes/local/questionanalysis/question_result.php
(#1) DocBlock missing a @package tag for file question_result.php. Expected @package mod_adaptivequiz
(#30) Missing docblock for class question_result
(#35) Expected "bool" but found "boolean" for @var tag in member variable comment
(#45) Expected 0 spaces after "__construct"; 1 found
(#59) Expected 0 spaces after "__get"; 1 found
mod/adaptivequiz/classes/local/questionanalysis/quiz_analyser.php
(#44) Short array syntax must be used to define arrays
(#47) Short array syntax must be used to define arrays
(#133) Short array syntax must be used to define arrays
mod/adaptivequiz/classes/local/questionanalysis/statistics/answers_statistic.php
(#38) Expected 0 spaces after "get_display_name"; 1 found
(#57) Short array syntax must be used to define arrays
(#58) Short array syntax must be used to define arrays
(#59) Short array syntax must be used to define arrays
(#87) Short array syntax must be used to define arrays
(#92) Short array syntax must be used to define arrays
(#96) Short array syntax must be used to define arrays
(#109) Short array syntax must be used to define arrays
(#113) Short array syntax must be used to define arrays
(#126) Short array syntax must be used to define arrays
(#130) Short array syntax must be used to define arrays
(#173) Expected 0 spaces after "print_empty_user_result"; 1 found
mod/adaptivequiz/classes/local/questionanalysis/statistics/answers_statistic_result.php
(#1) DocBlock missing a @package tag for file answers_statistic_result.php. Expected @package mod_adaptivequiz
(#27) Missing docblock for class answers_statistic_result
(#40) Expected 0 spaces after "__construct"; 1 found
(#50) Expected 0 spaces after "sortable"; 1 found
(#60) Expected 0 spaces after "printable"; 1 found
mod/adaptivequiz/classes/local/questionanalysis/statistics/discrimination_statistic.php
(#1) DocBlock missing a @package tag for file discrimination_statistic.php. Expected @package mod_adaptivequiz
(#29) Missing docblock for class discrimination_statistic
(#35) Expected 0 spaces after "get_display_name"; 1 found
(#45) Expected 0 spaces after "calculate"; 1 found
mod/adaptivequiz/classes/local/questionanalysis/statistics/discrimination_statistic_result.php
(#1) DocBlock missing a @package tag for file discrimination_statistic_result.php. Expected @package mod_adaptivequiz
(#27) Missing docblock for class discrimination_statistic_result
(#37) Expected 0 spaces after "__construct"; 1 found
(#46) Expected 0 spaces after "sortable"; 1 found
(#60) Expected 0 spaces after "printable"; 1 found
mod/adaptivequiz/classes/local/questionanalysis/statistics/percent_correct_statistic.php
(#1) DocBlock missing a @package tag for file percent_correct_statistic.php. Expected @package mod_adaptivequiz
(#29) Missing docblock for class percent_correct_statistic
(#35) Expected 0 spaces after "get_display_name"; 1 found
(#45) Expected 0 spaces after "calculate"; 1 found
mod/adaptivequiz/classes/local/questionanalysis/statistics/percent_correct_statistic_result.php
(#1) DocBlock missing a @package tag for file percent_correct_statistic_result.php. Expected @package mod_adaptivequiz
(#27) Missing docblock for class percent_correct_statistic_result
(#37) Expected 0 spaces after "__construct"; 1 found
(#46) Expected 0 spaces after "sortable"; 1 found
(#56) Expected 0 spaces after "printable"; 1 found
mod/adaptivequiz/classes/local/questionanalysis/statistics/question_statistic.php
(#1) DocBlock missing a @package tag for file question_statistic.php. Expected @package mod_adaptivequiz
(#29) Missing docblock for interface question_statistic
(#35) Expected 0 spaces after "get_display_name"; 1 found
(#43) Expected 0 spaces after "calculate"; 1 found
mod/adaptivequiz/classes/local/questionanalysis/statistics/question_statistic_result.php
(#1) DocBlock missing a @package tag for file question_statistic_result.php. Expected @package mod_adaptivequiz
(#27) Missing docblock for interface question_statistic_result
(#33) Expected 0 spaces after "sortable"; 1 found
(#41) Expected 0 spaces after "printable"; 1 found
mod/adaptivequiz/classes/local/questionanalysis/statistics/times_used_statistic.php
(#1) DocBlock missing a @package tag for file times_used_statistic.php. Expected @package mod_adaptivequiz
(#29) Missing docblock for class times_used_statistic
(#35) Expected 0 spaces after "get_display_name"; 1 found
(#45) Expected 0 spaces after "calculate"; 1 found
mod/adaptivequiz/classes/local/questionanalysis/statistics/times_used_statistic_result.php
(#1) DocBlock missing a @package tag for file times_used_statistic_result.php. Expected @package mod_adaptivequiz
(#27) Missing docblock for class times_used_statistic_result
(#37) Expected 0 spaces after "__construct"; 1 found
(#46) Expected 0 spaces after "sortable"; 1 found
(#56) Expected 0 spaces after "printable"; 1 found
mod/adaptivequiz/classes/local/report/attempt_report_helper.php
(#164) Expected 1 space before "+"; 0 found
(#164) Expected 1 space after "+"; 0 found
mod/adaptivequiz/classes/local/report/individual_user_attempts/filter.php
(#1) No one-line description found in phpdocs for docblock of file filter.php
(#1) DocBlock missing a @package tag for file filter.php. Expected @package mod_adaptivequiz
(#24) Missing docblock for class filter
(#36) Missing docblock for function from_vars
mod/adaptivequiz/classes/local/report/individual_user_attempts/table.php
(#65) Missing docblock for function __construct
(#82) Missing docblock for function get_sql_sort
(#86) Missing docblock for function col_attemptstate
(#94) Missing docblock for function col_score
(#108) Missing docblock for function col_timecreated
(#112) Missing docblock for function col_timemodified
(#125) Missing docblock for function init
(#153) Missing docblock for function set_content_alignment_in_columns
mod/adaptivequiz/classes/local/report/questions_difficulty_range.php
(#1) DocBlock missing a @package tag for file questions_difficulty_range.php. Expected @package mod_adaptivequiz
(#30) Missing docblock for class questions_difficulty_range
(#42) Missing docblock for function __construct
(#47) Missing docblock for function lowest_level
(#51) Missing docblock for function highest_level
(#58) No one-line description found in phpdocs for docblock of function from_activity_instance
mod/adaptivequiz/classes/local/report/users_attempts/filter/filter.php
(#1) DocBlock missing a @package tag for file filter.php. Expected @package mod_adaptivequiz
(#28) Missing docblock for class filter
(#51) Missing docblock for function fill_from_array
(#59) Missing docblock for function fill_from_preference
(#64) Missing docblock for function from_vars
mod/adaptivequiz/classes/local/report/users_attempts/filter/filter_form.php
(#1) No one-line description found in phpdocs for docblock of file filter_form.php
(#1) DocBlock missing a @package tag for file filter_form.php. Expected @package mod_adaptivequiz
(#32) Missing docblock for class filter_form
(#38) Invalid docblock tag "@inheritDoc".
(#45) Missing docblock for function definition
(#58) There should be a comma after the last array item in a multi-line array.
mod/adaptivequiz/classes/local/report/users_attempts/filter/filter_options.php
(#1) DocBlock missing a @package tag for file filter_options.php. Expected @package mod_adaptivequiz
(#26) Missing docblock for class filter_options
(#28) Missing docblock for constant filter_options::ENROLLED_USERS_WITH_NO_ATTEMPTS
(#30) Missing docblock for constant filter_options::ENROLLED_USERS_WITH_ATTEMPTS
(#32) Missing docblock for constant filter_options::BOTH_ENROLLED_AND_NOT_ENROLLED_USERS_WITH_ATTEMPTS
(#34) Missing docblock for constant filter_options::NOT_ENROLLED_USERS_WITH_ATTEMPTS
(#36) Missing docblock for constant filter_options::INCLUDE_INACTIVE_ENROLMENTS_DEFAULT
(#38) Missing docblock for function users_option_default
(#42) Missing docblock for function users_option_exists
(#47) There should be a comma after the last array item in a multi-line array.
mod/adaptivequiz/classes/local/report/users_attempts/sql/sql_and_params.php
(#1) DocBlock missing a @package tag for file sql_and_params.php. Expected @package mod_adaptivequiz
(#30) Missing docblock for class sql_and_params
(#68) Missing docblock for function __construct
(#86) Missing docblock for function fields
(#90) Missing docblock for function from
(#94) Missing docblock for function where
(#98) Missing docblock for function group_by
(#102) Missing docblock for function params
(#106) Missing docblock for function count_sql
(#110) Missing docblock for function count_sql_params
(#114) Missing docblock for function with_group_filtering
(#122) Missing docblock for function default
(#139) Missing docblock for function for_enrolled_with_no_attempts
(#155) Missing docblock for function for_enrolled_with_attempts
(#173) Missing docblock for function for_not_enrolled_with_attempts
(#193) Missing docblock for function attempt_sql_and_params
(#233) There should be a comma after the last array item in a multi-line array.
(#237) Missing docblock for function group_by_sql
(#241) Missing docblock for function base_where_sql
mod/adaptivequiz/classes/local/report/users_attempts/sql/sql_resolver.php
(#1) DocBlock missing a @package tag for file sql_resolver.php. Expected @package mod_adaptivequiz
(#31) Missing docblock for class sql_resolver
(#33) Missing docblock for function sql_and_params
(#63) Missing docblock for function resolve_active_enrolment_flag
mod/adaptivequiz/classes/local/report/users_attempts/user_preferences/filter_user_preferences.php
(#1) No one-line description found in phpdocs for docblock of file filter_user_preferences.php
(#1) DocBlock missing a @package tag for file filter_user_preferences.php. Expected @package mod_adaptivequiz
(#26) Missing docblock for class filter_user_preferences
(#38) Missing docblock for function __construct
(#45) Missing docblock for function users
(#49) Missing docblock for function include_inactive_enrolments
(#53) Missing docblock for function as_array
(#57) Missing docblock for function from_array
mod/adaptivequiz/classes/local/report/users_attempts/user_preferences/user_preferences.php
(#1) DocBlock missing a @package tag for file user_preferences.php. Expected @package mod_adaptivequiz
(#28) Missing docblock for class user_preferences
(#30) Missing docblock for constant user_preferences::PER_PAGE_OPTIONS
(#32) Missing docblock for constant user_preferences::PER_PAGE_DEFAULT
(#34) Missing docblock for constant user_preferences::SHOW_INITIALS_BAR_DEFAULT
(#36) Missing docblock for constant user_preferences::PERSISTENT_FILTER_DEFAULT
(#58) Missing docblock for function __construct
(#77) Missing docblock for function rows_per_page
(#81) Missing docblock for function show_initials_bar
(#85) Missing docblock for function persistent_filter
(#89) Missing docblock for function filter
(#93) Missing docblock for function has_filter_preference
(#97) Missing docblock for function with_filter_preference
(#101) Missing docblock for function without_filter_preference
(#105) Missing docblock for function as_array
(#113) Missing docblock for function from_array
(#124) Missing docblock for function from_plain_object
(#128) Missing docblock for function defaults
mod/adaptivequiz/classes/local/report/users_attempts/user_preferences/user_preferences_form.php
(#1) No one-line description found in phpdocs for docblock of file user_preferences_form.php
(#1) DocBlock missing a @package tag for file user_preferences_form.php. Expected @package mod_adaptivequiz
(#30) Missing docblock for class user_preferences_form
(#36) Invalid docblock tag "@inheritDoc".
(#43) Missing docblock for function definition
mod/adaptivequiz/classes/local/report/users_attempts/users_attempts_table.php
(#1) DocBlock missing a @package tag for file users_attempts_table.php. Expected @package mod_adaptivequiz
(#39) Missing docblock for class users_attempts_table
(#41) Missing docblock for constant users_attempts_table::UNIQUE_ID
(#61) No one-line description found in phpdocs for docblock of function __construct
(#131) Missing docblock for function col_attemptsnum
(#152) No one-line description found in phpdocs for docblock of function col_measure
(#173) Missing docblock for function col_stderror
(#185) No one-line description found in phpdocs for docblock of function col_attempttimefinished
(#222) Missing docblock for function set_group_by_sql
(#226) Missing docblock for function set_content_alignment_in_columns
mod/adaptivequiz/classes/local/repository/questions_number_per_difficulty.php
(#1) DocBlock missing a @package tag for file questions_number_per_difficulty.php. Expected @package mod_adaptivequiz
(#29) Missing docblock for class questions_number_per_difficulty
(#40) Missing docblock for function __construct
(#45) Missing docblock for function difficulty
(#49) Missing docblock for function questions_number
mod/adaptivequiz/classes/local/repository/questions_repository.php
(#1) DocBlock missing a @package tag for file questions_repository.php. Expected @package mod_adaptivequiz
(#34) Missing docblock for class questions_repository
(#70) No one-line description found in phpdocs for docblock of function count_questions_number_per_difficulty
(#122) No one-line description found in phpdocs for docblock of function find_questions_with_tags
mod/adaptivequiz/classes/local/repository/tags_repository.php
(#1) DocBlock missing a @package tag for file tags_repository.php. Expected @package mod_adaptivequiz
(#30) Missing docblock for class tags_repository
(#38) No one-line description found in phpdocs for docblock of function get_question_level_to_tag_id_mapping_by_tag_names
(#67) No one-line description found in phpdocs for docblock of function get_tag_id_list_by_tag_names
mod/adaptivequiz/classes/local/user_attempts_table.php
(#1) DocBlock missing a @package tag for file user_attempts_table.php. Expected @package mod_adaptivequiz
(#34) Missing docblock for class user_attempts_table
(#40) Missing docblock for function __construct
(#90) No one-line description found in phpdocs for docblock of function col_state
(#94) Missing docblock for function col_timefinished
(#102) Missing docblock for function col_measure
(#106) Missing docblock for function set_content_alignment_in_columns
(#112) Missing docblock for function set_column_css_classes
mod/adaptivequiz/classes/output/ability_measure.php
(#1) DocBlock missing a @package tag for file ability_measure.php. Expected @package mod_adaptivequiz
(#29) Missing docblock for class ability_measure
mod/adaptivequiz/classes/output/questionanalysis/renderer.php
(#1) No one-line description found in phpdocs for docblock of file renderer.php
(#1) DocBlock missing a @package tag for file renderer.php. Expected @package mod_adaptivequiz
(#34) Missing docblock for class renderer
(#42) Short array syntax must be used to define arrays
(#53) There should be a comma after the last array item in a multi-line array.
(#84) Short array syntax must be used to define arrays
(#85) Short array syntax must be used to define arrays
(#100) Short array syntax must be used to define arrays
(#106) Short array syntax must be used to define arrays
(#110) Short array syntax must be used to define arrays
(#119) Short array syntax must be used to define arrays
(#134) Short array syntax must be used to define arrays
(#150) Short array syntax must be used to define arrays
(#151) Short array syntax must be used to define arrays
(#152) Short array syntax must be used to define arrays
(#157) Short array syntax must be used to define arrays
mod/adaptivequiz/classes/output/user_attempt_summary.php
(#1) DocBlock missing a @package tag for file user_attempt_summary.php. Expected @package mod_adaptivequiz
(#29) Missing docblock for class user_attempt_summary
(#58) No one-line description found in phpdocs for docblock of function from_db_records
mod/adaptivequiz/closeattempt.php
(#1) DocBlock missing a @package tag for file closeattempt.php. Expected @package mod_adaptivequiz
mod/adaptivequiz/db/access.php
(#20) Incorrect @package tag for file access.php. Expected mod_adaptivequiz, found mod.
(#29) Short array syntax must be used to define arrays
(#31) Short array syntax must be used to define arrays
(#35) Short array syntax must be used to define arrays
(#37) There should be a comma after the last array item in a multi-line array.
(#39) There should be a comma after the last array item in a multi-line array.
(#42) Short array syntax must be used to define arrays
(#46) Short array syntax must be used to define arrays
(#48) There should be a comma after the last array item in a multi-line array.
(#52) Short array syntax must be used to define arrays
(#56) Short array syntax must be used to define arrays
(#58) There should be a comma after the last array item in a multi-line array.
(#62) Short array syntax must be used to define arrays
(#66) Short array syntax must be used to define arrays
(#67) There should be a comma after the last array item in a multi-line array.
(#68) There should be a comma after the last array item in a multi-line array.
mod/adaptivequiz/db/events.php
(#1) No one-line description found in phpdocs for docblock of file events.php
(#1) DocBlock missing a @package tag for file events.php. Expected @package mod_adaptivequiz
(#27) There should be a comma after the last array item in a multi-line array.
(#28) There should be a comma after the last array item in a multi-line array.
mod/adaptivequiz/db/log.php
(#30) Short array syntax must be used to define arrays
(#31) Short array syntax must be used to define arrays
(#32) Short array syntax must be used to define arrays
(#33) Short array syntax must be used to define arrays
(#34) Short array syntax must be used to define arrays
(#35) Short array syntax must be used to define arrays
(#36) Short array syntax must be used to define arrays
(#37) Short array syntax must be used to define arrays
(#38) Short array syntax must be used to define arrays
(#39) Short array syntax must be used to define arrays
(#40) Short array syntax must be used to define arrays
(#41) Short array syntax must be used to define arrays
(#42) Short array syntax must be used to define arrays
mod/adaptivequiz/delattempt.php
(#1) DocBlock missing a @package tag for file delattempt.php. Expected @package mod_adaptivequiz
mod/adaptivequiz/grade.php
(#1) DocBlock missing a @package tag for file grade.php. Expected @package mod_adaptivequiz
(#35) Short array syntax must be used to define arrays
(#42) Short array syntax must be used to define arrays
(#50) Short array syntax must be used to define arrays
mod/adaptivequiz/index.php
(#1) No one-line description found in phpdocs for docblock of file index.php
(#1) DocBlock missing a @package tag for file index.php. Expected @package mod_adaptivequiz
(#30) Short array syntax must be used to define arrays
(#38) Short array syntax must be used to define arrays
(#46) Short array syntax must be used to define arrays
(#51) Short array syntax must be used to define arrays
(#52) Short array syntax must be used to define arrays
(#54) Short array syntax must be used to define arrays
(#55) Short array syntax must be used to define arrays
(#57) Short array syntax must be used to define arrays
(#58) Short array syntax must be used to define arrays
(#64) Short array syntax must be used to define arrays
(#66) Short array syntax must be used to define arrays
(#69) Short array syntax must be used to define arrays
(#74) Short array syntax must be used to define arrays
(#76) Short array syntax must be used to define arrays
mod/adaptivequiz/lang/en/adaptivequiz.php
(#1) DocBlock missing a @package tag for file adaptivequiz.php. Expected @package mod_adaptivequiz
mod/adaptivequiz/lang/fr/adaptivequiz.php
(#1) DocBlock missing a @package tag for file adaptivequiz.php. Expected @package mod_adaptivequiz
mod/adaptivequiz/lib.php
(#183) Short array syntax must be used to define arrays
(#213) Short array syntax must be used to define arrays
(#219) Short array syntax must be used to define arrays
(#227) Short array syntax must be used to define arrays
(#231) Short array syntax must be used to define arrays
(#232) Short array syntax must be used to define arrays
(#236) Short array syntax must be used to define arrays
(#306) Short array syntax must be used to define arrays
(#312) Short array syntax must be used to define arrays
(#376) Short array syntax must be used to define arrays
(#432) Short array syntax must be used to define arrays
(#436) Short array syntax must be used to define arrays
(#437) Short array syntax must be used to define arrays
(#445) Short array syntax must be used to define arrays
(#448) Short array syntax must be used to define arrays
(#451) Short array syntax must be used to define arrays
(#459) Short array syntax must be used to define arrays
(#463) Short array syntax must be used to define arrays
(#468) Short array syntax must be used to define arrays
(#471) Short array syntax must be used to define arrays
(#508) Docblock tag "@example" is not recommended.
(#512) Short array syntax must be used to define arrays
(#555) Short array syntax must be used to define arrays
(#573) Short array syntax must be used to define arrays
(#575) Short array syntax must be used to define arrays
(#595) Missing docblock for function adaptivequiz_update_grades
(#627) Short array syntax must be used to define arrays
(#641) Short array syntax must be used to define arrays
(#645) Short array syntax must be used to define arrays
(#647) Short array syntax must be used to define arrays
(#655) Short array syntax must be used to define arrays
(#659) Short array syntax must be used to define arrays
(#668) Short array syntax must be used to define arrays
(#686) Short array syntax must be used to define arrays
mod/adaptivequiz/locallib.php
(#1) DocBlock missing a @package tag for file locallib.php. Expected @package mod_adaptivequiz
(#65) DocBlock missing a @package tag for function adaptivequiz_get_question_categories. Expected @package mod_adaptivequiz
(#67) Short array syntax must be used to define arrays
(#70) Short array syntax must be used to define arrays
(#94) DocBlock missing a @package tag for function adaptivequiz_make_default_categories. Expected @package mod_adaptivequiz
(#100) Short array syntax must be used to define arrays
(#111) DocBlock missing a @package tag for function adaptivequiz_get_selected_question_cateogires. Expected @package mod_adaptivequiz
(#114) Short array syntax must be used to define arrays
(#117) Short array syntax must be used to define arrays
(#120) Short array syntax must be used to define arrays
(#123) Short array syntax must be used to define arrays
(#140) DocBlock missing a @package tag for function adaptivequiz_count_user_previous_attempts. Expected @package mod_adaptivequiz
(#147) Short array syntax must be used to define arrays
(#159) DocBlock missing a @package tag for function adaptivequiz_allowed_attempt. Expected @package mod_adaptivequiz
(#174) DocBlock missing a @package tag for function adaptivequiz_uniqueid_part_of_attempt. Expected @package mod_adaptivequiz
(#177) Short array syntax must be used to define arrays
(#192) DocBlock missing a @package tag for function adaptivequiz_update_attempt_data. Expected @package mod_adaptivequiz
(#200) Short array syntax must be used to define arrays
(#231) DocBlock missing a @package tag for function adaptivequiz_complete_attempt. Expected @package mod_adaptivequiz
(#258) There should be a comma after the last array item in a multi-line array.
(#272) DocBlock missing a @package tag for function adaptivequiz_min_attempts_reached. Expected @package mod_adaptivequiz
(#284) Short array syntax must be used to define arrays
(#295) DocBlock missing a @package tag for function adaptivequiz_user_entered_password. Expected @package mod_adaptivequiz
(#309) DocBlock missing a @package tag for function adaptivequiz_get_difficulty_from_tags. Expected @package mod_adaptivequiz
(#323) No one-line description found in phpdocs for docblock of function adaptivequiz_get_grading_options
(#323) DocBlock missing a @package tag for function adaptivequiz_get_grading_options. Expected @package mod_adaptivequiz
(#324) Short array syntax must be used to define arrays
(#327) There should be a comma after the last array item in a multi-line array.
(#339) DocBlock missing a @package tag for function adaptivequiz_get_user_grades. Expected @package mod_adaptivequiz
(#342) Short array syntax must be used to define arrays
(#360) Short array syntax must be used to define arrays
mod/adaptivequiz/mod_form.php
(#1) DocBlock missing a @package tag for file mod_form.php. Expected @package mod_adaptivequiz
(#35) DocBlock missing a @package tag for class mod_adaptivequiz_mod_form. Expected @package mod_adaptivequiz
(#37) Missing docblock for function definition
(#175) Missing docblock for function add_completion_rules
(#183) Missing docblock for function completion_rule_enabled
(#257) No one-line description found in phpdocs for docblock of function validate_questions_pool
mod/adaptivequiz/questionanalysis/overview.php
(#1) No one-line description found in phpdocs for docblock of file overview.php
(#1) DocBlock missing a @package tag for file overview.php. Expected @package mod_adaptivequiz
(#40) Short array syntax must be used to define arrays
(#49) Short array syntax must be used to define arrays
(#50) Short array syntax must be used to define arrays
(#76) Short array syntax must be used to define arrays
mod/adaptivequiz/questionanalysis/single.php
(#1) No one-line description found in phpdocs for docblock of file single.php
(#1) DocBlock missing a @package tag for file single.php. Expected @package mod_adaptivequiz
(#42) Short array syntax must be used to define arrays
(#51) Short array syntax must be used to define arrays
(#58) Short array syntax must be used to define arrays
(#82) Short array syntax must be used to define arrays
mod/adaptivequiz/renderer.php
(#52) Short array syntax must be used to define arrays
(#63) There should be a comma after the last array item in a multi-line array.
(#92) Short array syntax must be used to define arrays
(#95) Short array syntax must be used to define arrays
(#97) Short array syntax must be used to define arrays
(#97) Short array syntax must be used to define arrays
(#97) Short array syntax must be used to define arrays
(#98) Short array syntax must be used to define arrays
(#98) There should be a comma after the last array item in a multi-line array.
(#117) Short array syntax must be used to define arrays
(#136) Short array syntax must be used to define arrays
(#138) Short array syntax must be used to define arrays
(#140) Short array syntax must be used to define arrays
(#142) Short array syntax must be used to define arrays
(#144) Short array syntax must be used to define arrays
(#178) No one-line description found in phpdocs for docblock of function attempt_feedback
(#237) Short array syntax must be used to define arrays
(#279) Short array syntax must be used to define arrays
(#284) Short array syntax must be used to define arrays
(#294) Short array syntax must be used to define arrays
(#312) Short array syntax must be used to define arrays
(#317) Short array syntax must be used to define arrays
(#322) Short array syntax must be used to define arrays
(#327) Short array syntax must be used to define arrays
(#332) Short array syntax must be used to define arrays
(#337) Short array syntax must be used to define arrays
(#342) Short array syntax must be used to define arrays
(#357) Short array syntax must be used to define arrays
(#369) Short array syntax must be used to define arrays
(#374) Short array syntax must be used to define arrays
(#383) Short array syntax must be used to define arrays
(#387) Short array syntax must be used to define arrays
(#403) Short array syntax must be used to define arrays
(#423) Short array syntax must be used to define arrays
(#453) Short array syntax must be used to define arrays
(#453) Short array syntax must be used to define arrays
(#466) Short array syntax must be used to define arrays
(#473) Short array syntax must be used to define arrays
(#628) Missing docblock for function attempt_review_tabs
(#690) Missing docblock for function reset_users_attempts_filter_action
(#905) Missing docblock for function render_ability_measure
(#919) Missing docblock for function render_user_attempt_summary
(#1047) Short array syntax must be used to define arrays
(#1065) Short array syntax must be used to define arrays
mod/adaptivequiz/tests/completion/custom_completion_test.php
(#1) No one-line description found in phpdocs for docblock of file custom_completion_test.php
(#1) DocBlock missing a @package tag for file custom_completion_test.php. Expected @package mod_adaptivequiz
(#36) No one-line description found in phpdocs for docblock of class custom_completion_test
(#36) DocBlock missing a @package tag for class custom_completion_test. Expected @package mod_adaptivequiz
(#38) There must be a single space between the colon and type in a return type declaration
(#66) Missing docblock for function setup_test_data_xml in testcase
mod/adaptivequiz/tests/lib_test.php
(#1) DocBlock missing a @package tag for file lib_test.php. Expected @package mod_adaptivequiz
(#40) No one-line description found in phpdocs for docblock of class lib_test
(#40) DocBlock missing a @package tag for class lib_test. Expected @package mod_adaptivequiz
(#54) Data provider method "questioncat_association_records" will need to be converted to static in future.
(#54) Data provider method "questioncat_association_records" will need to be converted to static in future.
(#54) Data provider method "questioncat_association_records" must return an array, a Generator or an Iterable.
(#54) Data provider method "questioncat_association_records" must return an array, a Generator or an Iterable.
(#55) Short array syntax must be used to define arrays
(#58) Short array syntax must be used to define arrays
(#59) Short array syntax must be used to define arrays
(#62) Short array syntax must be used to define arrays
(#63) Short array syntax must be used to define arrays
(#66) Short array syntax must be used to define arrays
(#67) Short array syntax must be used to define arrays
(#89) Short array syntax must be used to define arrays
(#93) Short array syntax must be used to define arrays
(#97) Short array syntax must be used to define arrays
(#119) Short array syntax must be used to define arrays
(#122) Short array syntax must be used to define arrays
(#127) Short array syntax must be used to define arrays
(#130) Short array syntax must be used to define arrays
(#135) Short array syntax must be used to define arrays
(#138) Short array syntax must be used to define arrays
(#156) Short array syntax must be used to define arrays
(#157) Short array syntax must be used to define arrays
(#158) Short array syntax must be used to define arrays
(#159) Short array syntax must be used to define arrays
(#191) Short array syntax must be used to define arrays
(#230) Short array syntax must be used to define arrays
mod/adaptivequiz/tests/local/attempt_test.php
(#79) Short array syntax must be used to define arrays
(#86) Short array syntax must be used to define arrays
(#87) There should be a comma after the last array item in a multi-line array.
(#130) Missing docblock for function it_fails_to_set_quba_for_an_attempt_with_an_invalid_argument in testcase
(#242) Short array syntax must be used to define arrays
(#276) Short array syntax must be used to define arrays
(#298) Short array syntax must be used to define arrays
(#311) Invalid docblock tag "@test".
(#313) No one-line description found in phpdocs for docblock of function it_fails_to_find_the_last_question_used_by_attempt_with_an_invalid_argument
(#362) Short array syntax must be used to define arrays
(#362) Short array syntax must be used to define arrays
(#388) Short array syntax must be used to define arrays
(#388) Short array syntax must be used to define arrays
(#414) Short array syntax must be used to define arrays
(#414) Short array syntax must be used to define arrays
(#440) Short array syntax must be used to define arrays
(#440) Short array syntax must be used to define arrays
(#466) Short array syntax must be used to define arrays
(#466) Short array syntax must be used to define arrays
(#520) Short array syntax must be used to define arrays
(#520) Short array syntax must be used to define arrays
(#540) Short array syntax must be used to define arrays
(#540) Short array syntax must be used to define arrays
(#560) Short array syntax must be used to define arrays
(#560) Short array syntax must be used to define arrays
(#662) Short array syntax must be used to define arrays
(#666) Invalid docblock tag "@test".
(#668) No one-line description found in phpdocs for docblock of function it_can_check_if_a_user_has_a_completed_attempt_on_a_quiz
mod/adaptivequiz/tests/local/catalgo_test.php
(#1) DocBlock missing a @package tag for file catalgo_test.php. Expected @package mod_adaptivequiz
(#41) No one-line description found in phpdocs for docblock of class catalgo_test
(#41) DocBlock missing a @package tag for class catalgo_test. Expected @package mod_adaptivequiz
(#69) Short array syntax must be used to define arrays
(#69) Short array syntax must be used to define arrays
(#81) Short array syntax must be used to define arrays
(#81) Short array syntax must be used to define arrays
(#94) Short array syntax must be used to define arrays
(#94) Short array syntax must be used to define arrays
(#118) Short array syntax must be used to define arrays
(#118) Short array syntax must be used to define arrays
(#391) Short array syntax must be used to define arrays
(#412) Short array syntax must be used to define arrays
(#434) Short array syntax must be used to define arrays
(#456) Short array syntax must be used to define arrays
(#477) Short array syntax must be used to define arrays
(#490) Short array syntax must be used to define arrays
(#490) Short array syntax must be used to define arrays
(#506) Short array syntax must be used to define arrays
(#506) Short array syntax must be used to define arrays
mod/adaptivequiz/tests/local/fetchquestion_test.php
(#1) DocBlock missing a @package tag for file fetchquestion_test.php. Expected @package mod_adaptivequiz
(#41) No one-line description found in phpdocs for docblock of class fetchquestion_test
(#41) DocBlock missing a @package tag for class fetchquestion_test. Expected @package mod_adaptivequiz
(#84) Short array syntax must be used to define arrays
(#91) Short array syntax must be used to define arrays
(#92) There should be a comma after the last array item in a multi-line array.
(#121) Short array syntax must be used to define arrays
(#128) Short array syntax must be used to define arrays
(#129) There should be a comma after the last array item in a multi-line array.
(#252) Invalid docblock tag "@test".
(#254) No one-line description found in phpdocs for docblock of function it_fails_when_instantiated_with_a_zero_difficulty_level
(#262) Invalid docblock tag "@test".
(#264) No one-line description found in phpdocs for docblock of function it_fails_when_instantiated_with_a_negative_difficulty_level
(#272) Invalid docblock tag "@test".
(#274) No one-line description found in phpdocs for docblock of function it_fails_when_instantiated_with_a_difficulty_level_as_a_string
(#359) Short array syntax must be used to define arrays
(#359) Short array syntax must be used to define arrays
(#515) Invalid docblock tag "@test".
(#517) No one-line description found in phpdocs for docblock of function it_retrieves_all_tag_ids
(#531) Invalid docblock tag "@test".
(#533) No one-line description found in phpdocs for docblock of function it_throws_an_exception_when_retrieves_all_tag_ids_for_an_empty_tag_prefix
(#544) Data provider method "constructor_throw_coding_exception_provider" will need to be converted to static in future.
(#544) Data provider method "constructor_throw_coding_exception_provider" must return an array, a Generator or an Iterable.
(#545) Short array syntax must be used to define arrays
(#546) Short array syntax must be used to define arrays
(#547) Short array syntax must be used to define arrays
(#548) Short array syntax must be used to define arrays
(#548) There should be a comma after the last array item in a multi-line array.
(#659) Short array syntax must be used to define arrays
(#660) Short array syntax must be used to define arrays
(#674) Short array syntax must be used to define arrays
(#675) Short array syntax must be used to define arrays
mod/adaptivequiz/tests/local/report/questions_difficulty_range_test.php
(#1) No one-line description found in phpdocs for docblock of file questions_difficulty_range_test.php
(#1) DocBlock missing a @package tag for file questions_difficulty_range_test.php. Expected @package mod_adaptivequiz
(#30) No one-line description found in phpdocs for docblock of class questions_difficulty_range_test
(#30) DocBlock missing a @package tag for class questions_difficulty_range_test. Expected @package mod_adaptivequiz
mod/adaptivequiz/tests/local/report/users_attempts/user_preferences/filter_user_preferences_test.php
(#1) No one-line description found in phpdocs for docblock of file filter_user_preferences_test.php
(#1) DocBlock missing a @package tag for file filter_user_preferences_test.php. Expected @package mod_adaptivequiz
(#30) No one-line description found in phpdocs for docblock of class filter_user_preferences_test
(#30) DocBlock missing a @package tag for class filter_user_preferences_test. Expected @package mod_adaptivequiz
mod/adaptivequiz/tests/local/report/users_attempts/user_preferences/user_preferences_repository_test.php
(#1) No one-line description found in phpdocs for docblock of file user_preferences_repository_test.php
(#1) DocBlock missing a @package tag for file user_preferences_repository_test.php. Expected @package mod_adaptivequiz
(#29) No one-line description found in phpdocs for docblock of class user_preferences_repository_test
(#29) DocBlock missing a @package tag for class user_preferences_repository_test. Expected @package mod_adaptivequiz
mod/adaptivequiz/tests/local/report/users_attempts/user_preferences/user_preferences_test.php
(#1) No one-line description found in phpdocs for docblock of file user_preferences_test.php
(#1) DocBlock missing a @package tag for file user_preferences_test.php. Expected @package mod_adaptivequiz
(#31) No one-line description found in phpdocs for docblock of class user_preferences_test
(#31) DocBlock missing a @package tag for class user_preferences_test. Expected @package mod_adaptivequiz
mod/adaptivequiz/tests/local/repository/questions_repository_test.php
(#1) No one-line description found in phpdocs for docblock of file questions_repository_test.php
(#1) DocBlock missing a @package tag for file questions_repository_test.php. Expected @package mod_adaptivequiz
(#38) No one-line description found in phpdocs for docblock of class questions_repository_test
(#38) DocBlock missing a @package tag for class questions_repository_test. Expected @package mod_adaptivequiz
(#214) No one-line description found in phpdocs for docblock of function create_question_tag
mod/adaptivequiz/tests/local/repository/tags_repository_test.php
(#1) No one-line description found in phpdocs for docblock of file tags_repository_test.php
(#1) DocBlock missing a @package tag for file tags_repository_test.php. Expected @package mod_adaptivequiz
(#33) No one-line description found in phpdocs for docblock of class tags_repository_test
(#33) DocBlock missing a @package tag for class tags_repository_test. Expected @package mod_adaptivequiz
mod/adaptivequiz/tests/locallib_test.php
(#53) Data provider method "fail_attempt_data" will need to be converted to static in future.
(#53) Data provider method "fail_attempt_data" must return an array, a Generator or an Iterable.
(#54) Short array syntax must be used to define arrays
(#55) Short array syntax must be used to define arrays
(#56) Short array syntax must be used to define arrays
(#57) Short array syntax must be used to define arrays
(#67) Data provider method "attempts_allowed_data_fail" will need to be converted to static in future.
(#67) Data provider method "attempts_allowed_data_fail" must return an array, a Generator or an Iterable.
(#68) Short array syntax must be used to define arrays
(#69) Short array syntax must be used to define arrays
(#70) Short array syntax must be used to define arrays
(#80) Data provider method "attempts_allowed_data" will need to be converted to static in future.
(#80) Data provider method "attempts_allowed_data" must return an array, a Generator or an Iterable.
(#81) Short array syntax must be used to define arrays
(#82) Short array syntax must be used to define arrays
(#83) Short array syntax must be used to define arrays
(#299) Invalid docblock tag "@test".
(#302) No one-line description found in phpdocs for docblock of function event_is_triggered_on_attempt_completion
mod/adaptivequiz/tests/renderer_test.php
(#1) DocBlock missing a @package tag for file renderer_test.php. Expected @package mod_adaptivequiz
(#44) No one-line description found in phpdocs for docblock of class renderer_test
(#44) DocBlock missing a @package tag for class renderer_test. Expected @package mod_adaptivequiz
(#91) Short array syntax must be used to define arrays
mod/adaptivequiz/viewattemptreport.php
(#1) DocBlock missing a @package tag for file viewattemptreport.php. Expected @package mod_adaptivequiz

Javascript coding style problems

(10 errors, 26 warnings)

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

mod/adaptivequiz/amd/src/attempt_administration_chart_output.js
(#46) Unexpected space before function parentheses. (space-before-function-paren)
(#57) Unexpected space before function parentheses. (space-before-function-paren)
(#88) Unexpected space before function parentheses. (space-before-function-paren)
(#115) Unexpected space before function parentheses. (space-before-function-paren)
(#139) Unexpected space before function parentheses. (space-before-function-paren)
(#169) Unexpected space before function parentheses. (space-before-function-paren)
mod/adaptivequiz/amd/src/attempt_administration_chart_output_htmltable.js
(#27) Unexpected space before function parentheses. (space-before-function-paren)
mod/adaptivequiz/module.js
(#25) Identifier 'mod_adaptivequiz' is not in camel case. (camelcase)
(#27) Identifier 'init_attempt_form' is not in camel case. (camelcase)
(#29) Use '===' to compare with null. (no-eq-null)
(#38) 'e' is defined but never used. (no-unused-vars)
(#39) Missing semicolon. (semi)
(#45) Identifier 'secure_window' is not in camel case. (camelcase)
(#51) Multiple spaces found before 'M'. (no-multi-spaces)
(#52) Multiple spaces found before 'M'. (no-multi-spaces)
(#53) Multiple spaces found before 'M'. (no-multi-spaces)
(#55) Multiple spaces found before 'M'. (no-multi-spaces)
(#56) Multiple spaces found before 'M'. (no-multi-spaces)
(#57) Multiple spaces found before 'M'. (no-multi-spaces)
(#58) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)
(#73) Identifier 'clear_status' is not in camel case. (camelcase)
(#79) Unexpected alert. (no-alert)
(#79) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)
(#83) Identifier 'prevent_mouse' is not in camel case. (camelcase)
(#94) Identifier 'start_attempt_action' is not in camel case. (camelcase)
(#96) 'openpopup' is not defined. (no-undef)
(#101) 'openpopup' is not defined. (no-undef)
(#108) Identifier 'init_close_button' is not in camel case. (camelcase)
(#109) 'e' is defined but never used. (no-unused-vars)
(#110) Missing semicolon. (semi)
(#126) Identifier 'init_comment_popup' is not in camel case. (camelcase)
(#131) Statement inside of curly braces should be on next line. (brace-style)
(#131) Missing semicolon. (semi)
(#131) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#132) Missing semicolon. (semi)
(#134) Identifier 'init_reviewattempt' is not in camel case. (camelcase)

CSS problems

(1 errors, 0 warnings)

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

mod/adaptivequiz/styles.css
(#50) Unexpected !important (declaration-no-important)

PHPDocs style problems

(87 errors, 0 warnings)

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

mod/adaptivequiz/backup/moodle2/restore_adaptivequiz_activity_task.class.php
(#73) Inline phpdocs tag {@link restore_logs_processor} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#75) Inline phpdocs tag {@link restore_log_rule} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#86) Inline phpdocs tag {@link restore_logs_processor} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#88) Inline phpdocs tag {@link restore_log_rule} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
mod/adaptivequiz/backup/moodle2/restore_adaptivequiz_stepslib.php
(#55) Phpdocs for function restore_adaptivequiz_activity_structure_step::process_adaptivequiz has incomplete parameters list
(#74) Phpdocs for function restore_adaptivequiz_activity_structure_step::process_adaptivequiz_question has incomplete parameters list
(#93) Phpdocs for function restore_adaptivequiz_activity_structure_step::process_adaptivequiz_attempt has incomplete parameters list
mod/adaptivequiz/classes/completion/custom_completion.php
(#31) Phpdocs for function custom_completion::get_state has incomplete parameters list
mod/adaptivequiz/classes/local/attempt.php
(#417) Phpdocs for function attempt::was_answer_submitted_to_question has incomplete parameters list
(#532) Phpdocs for function attempt::get_all_questions_in_attempt has incomplete parameters list
(#545) Phpdocs for function attempt::user_has_completed_on_quiz has incomplete parameters list
mod/adaptivequiz/classes/local/catalgo.php
(#234) Phpdocs for function catalgo::was_answer_submitted_to_question has incomplete parameters list
(#582) Phpdocs for function catalgo::get_current_diff_level has incomplete parameters list
(#58) Inline phpdocs tag not enclosed with curly brackets @see found
(#206) Inline phpdocs tag not enclosed with curly brackets @see found
(#232) Inline phpdocs tag not enclosed with curly brackets @see found
(#667) Inline phpdocs tag not enclosed with curly brackets @see found
mod/adaptivequiz/classes/local/fetchquestion.php
(#165) Phpdocs for function fetchquestion::set_minimum_level has incomplete parameters list
(#178) Phpdocs for function fetchquestion::print_debug has incomplete parameters list
(#215) Phpdocs for function fetchquestion::set_tagquestsum has incomplete parameters list
mod/adaptivequiz/classes/local/questionanalysis/attempt_score.php
(#43) Phpdocs for function attempt_score::__construct has incomplete parameters list
mod/adaptivequiz/classes/local/questionanalysis/question_analyser.php
(#65) Phpdocs for function question_analyser::__construct has incomplete parameters list
(#81) Phpdocs for function question_analyser::add_result has incomplete parameters list
(#170) Phpdocs for function question_analyser::map_logit_to_scale has incomplete parameters list
mod/adaptivequiz/classes/local/questionanalysis/question_result.php
(#56) Phpdocs for function question_result::__get has incomplete parameters list
mod/adaptivequiz/classes/local/questionanalysis/statistics/answers_statistic.php
(#169) Phpdocs for function answers_statistic::print_empty_user_result has incomplete parameters list
mod/adaptivequiz/classes/local/questionanalysis/statistics/answers_statistic_result.php
(#37) Phpdocs for function answers_statistic_result::__construct has incomplete parameters list
(#57) Phpdocs for function answers_statistic_result::printable has incomplete parameters list
mod/adaptivequiz/classes/local/questionanalysis/statistics/discrimination_statistic_result.php
(#57) Phpdocs for function discrimination_statistic_result::printable has incomplete parameters list
mod/adaptivequiz/classes/local/questionanalysis/statistics/percent_correct_statistic_result.php
(#53) Phpdocs for function percent_correct_statistic_result::printable has incomplete parameters list
mod/adaptivequiz/classes/local/questionanalysis/statistics/question_statistic_result.php
(#38) Phpdocs for function question_statistic_result::printable has incomplete parameters list
mod/adaptivequiz/classes/local/questionanalysis/statistics/times_used_statistic_result.php
(#53) Phpdocs for function times_used_statistic_result::printable has incomplete parameters list
mod/adaptivequiz/classes/local/report/users_attempts/filter/filter_form.php
(#34) Phpdocs for function filter_form::add_action_buttons has incomplete parameters list
mod/adaptivequiz/classes/local/report/users_attempts/sql/sql_and_params.php
(#53) Inline phpdocs tag {@link \moodle_database::get_records_sql()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#59) Inline phpdocs tag {@link \table_sql::set_count_sql()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#64) Inline phpdocs tag {@link self::$params} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
mod/adaptivequiz/classes/local/report/users_attempts/user_preferences/user_preferences_form.php
(#32) Phpdocs for function user_preferences_form::add_action_buttons has incomplete parameters list
mod/adaptivequiz/classes/local/report/users_attempts/users_attempts_table.php
(#58) Phpdocs for function users_attempts_table::__construct has incomplete parameters list
(#78) Phpdocs for function users_attempts_table::query_db has incomplete parameters list
(#149) Phpdocs for function users_attempts_table::col_measure has incomplete parameters list
(#182) Phpdocs for function users_attempts_table::col_attempttimefinished has incomplete parameters list
(#194) Phpdocs for function users_attempts_table::init has incomplete parameters list
mod/adaptivequiz/classes/local/repository/questions_number_per_difficulty.php
(#19) Inline phpdocs tag {@link questions_repository::count_questions_number_per_difficulty()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
mod/adaptivequiz/classes/local/repository/tags_repository.php
(#62) Phpdocs for function tags_repository::get_tag_id_list_by_tag_names has incomplete parameters list
(#34) Inline phpdocs tag {@link moodle_database::get_records_menu()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
mod/adaptivequiz/classes/local/user_attempts_table.php
(#87) Phpdocs for function user_attempts_table::col_state has incomplete parameters list
mod/adaptivequiz/classes/output/ability_measure.php
(#45) Inline phpdocs tag {@link mod_adaptivequiz_renderer::format_measure()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
mod/adaptivequiz/classes/output/questionanalysis/renderer.php
(#74) Phpdocs for function renderer::get_report_table has incomplete parameters list
(#93) Phpdocs for function renderer::format_report_table_headers has incomplete parameters list
(#128) Phpdocs for function renderer::print_paging_bar has incomplete parameters list
(#166) Phpdocs for function renderer::get_question_details has incomplete parameters list
mod/adaptivequiz/lib.php
(#50) Phpdocs for function adaptivequiz_supports has incomplete parameters list
(#99) Phpdocs for function adaptivequiz_add_instance has incomplete parameters list
(#172) Phpdocs for function adaptivequiz_update_instance has incomplete parameters list
(#207) Phpdocs for function adaptivequiz_delete_instance has incomplete parameters list
(#244) Phpdocs for function adaptivequiz_user_outline has incomplete parameters list
(#264) Phpdocs for function adaptivequiz_user_complete has incomplete parameters list
(#273) Phpdocs for function adaptivequiz_print_recent_activity has incomplete parameters list
(#291) Phpdocs for function adaptivequiz_get_recent_mod_activity has incomplete parameters list
(#519) Phpdocs for function adaptivequiz_extend_navigation has incomplete parameters list
(#548) Phpdocs for function adaptivequiz_grade_item_delete has incomplete parameters list
(#563) Phpdocs for function adaptivequiz_grade_item_update has incomplete parameters list
(#615) Phpdocs for function adaptivequiz_reset_course_form_definition has incomplete parameters list
(#623) Phpdocs for function adaptivequiz_reset_course_form_defaults has incomplete parameters list
(#634) Phpdocs for function adaptivequiz_reset_userdata has incomplete parameters list
(#289) Inline phpdocs tag {@link adaptivequiz_print_recent_mod_activity()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
mod/adaptivequiz/locallib.php
(#225) Phpdocs for function adaptivequiz_complete_attempt has incomplete parameters list
mod/adaptivequiz/mod_form.php
(#253) Phpdocs for function mod_adaptivequiz_mod_form::validate_questions_pool has incomplete parameters list
(#192) Inline phpdocs tag not enclosed with curly brackets @see found
mod/adaptivequiz/renderer.php
(#175) Phpdocs for function mod_adaptivequiz_renderer::attempt_feedback has incomplete parameters list
(#430) Phpdocs for function mod_adaptivequiz_renderer::init_browser_security has incomplete parameters list
(#483) Phpdocs for function mod_adaptivequiz_renderer::format_measure has incomplete parameters list
(#497) Phpdocs for function mod_adaptivequiz_renderer::format_standard_error has incomplete parameters list
(#513) Phpdocs for function mod_adaptivequiz_renderer::format_measure_and_standard_error has incomplete parameters list
(#694) Phpdocs for function mod_adaptivequiz_renderer::attempt_progress has incomplete parameters list
(#701) Phpdocs for function mod_adaptivequiz_renderer::render_attempt_progress has incomplete parameters list
(#805) Phpdocs for function mod_adaptivequiz_renderer::attempt_questions_review has incomplete parameters list
(#867) Phpdocs for function mod_adaptivequiz_renderer::attempt_questions_review_pager has incomplete parameters list
(#1083) Phpdocs for function mod_adaptivequiz_csv_renderer::format_measure has incomplete parameters list
(#1097) Phpdocs for function mod_adaptivequiz_csv_renderer::format_standard_error has incomplete parameters list
(#533) Inline phpdocs tag {@link mod_adaptivequiz_renderer::attempt_report_page_by_tab()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#533) Inline phpdocs tag {@link mod_adaptivequiz_renderer::attempt_report_page_by_tab()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#803) Inline phpdocs tag {@link mod_adaptivequiz_renderer::attempt_report_page_by_tab} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#869) Inline phpdocs tag {@link mod_adaptivequiz_renderer::attempt_questions_review()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
mod/adaptivequiz/tests/lib_test.php
(#76) Phpdocs for function lib_test::test_questioncat_association_insert has incomplete parameters list
(#105) Phpdocs for function lib_test::test_questioncat_association_update has incomplete parameters list
mod/adaptivequiz/tests/local/repository/questions_repository_test.php
(#210) Phpdocs for function questions_repository_test::create_question_tag has incomplete parameters list

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

(1 errors, 1 warnings)

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

Problems running grunt
Task "stylelint:css" failed. Use --force to continue.

shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(2 errors, 2 warnings)

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

mod/adaptivequiz/templates/attempt_administration_report.mustache
(#1) Example context missing.
mod/adaptivequiz/templates/attempt_answers_distribution_report.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error
mod/adaptivequiz/templates/attempt_report_chart.mustache
(#1) Example context missing.
mod/adaptivequiz/templates/report/individual_user_attempt_actions.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]