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

(17 errors, 9 warnings)

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

question/type/ddmatch/db/upgrade.php
(#26) Expected MOODLE_INTERNAL check or config.php inclusion
question/type/ddmatch/edit_ddmatch_form.php
(#142) Expected 1 space after "="; newline found
(#150) Expected 1 space after "="; newline found
(#154) Expected 1 space after "="; newline found
question/type/ddmatch/lang/en/qtype_ddmatch.php
(#20) Whitespace found at end of line
question/type/ddmatch/lib.php
(#24) Expected MOODLE_INTERNAL check or config.php inclusion
question/type/ddmatch/tests/upgradelibnewqe_test.php
(#235) Line exceeds maximum limit of 180 characters; contains 493 characters
(#236) Line exceeds maximum limit of 180 characters; contains 309 characters
(#237) Line exceeds maximum limit of 180 characters; contains 313 characters
(#281) Expected 1 space after "="; newline found
(#294) Line exceeds 132 characters; contains 143 characters
(#390) Line exceeds 132 characters; contains 134 characters
(#453) Line exceeds maximum limit of 180 characters; contains 407 characters
(#454) Line exceeds maximum limit of 180 characters; contains 330 characters
(#455) Line exceeds maximum limit of 180 characters; contains 334 characters
(#483) Expected 1 space after "="; newline found
(#555) Line exceeds 132 characters; contains 162 characters
(#559) Line exceeds 132 characters; contains 161 characters
(#567) Line exceeds 132 characters; contains 170 characters
(#603) Line exceeds 132 characters; contains 133 characters
(#718) Line exceeds maximum limit of 180 characters; contains 407 characters
(#719) Line exceeds maximum limit of 180 characters; contains 330 characters
(#720) Line exceeds maximum limit of 180 characters; contains 333 characters
(#774) Inline comments must end in full-stops, exclamation marks, or question marks
(#784) Expected 1 space after "="; newline found
question/type/ddmatch/tests/walkthrough_test.php
(#360) Expected 1 space after "="; newline found

Javascript coding style problems

(0 errors, 3 warnings)

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

question/type/ddmatch/yui/dragdrop/dragdrop.js
(#24) Invalid typeof value 'null'
(#1) 'NAME' is defined but never used.
(#51) 'drop' is defined but never used.

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(76 errors, 0 warnings)

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

question/type/ddmatch/backup/moodle1/lib.php
(#17) No one-line description found in phpdocs for file
(#30) There is no description in phpdocs for function get_question_subpaths
(#39) Phpdocs for function moodle1_qtype_ddmatch_handler::process_question has incomplete parameters list
(#25) Class moodle1_qtype_ddmatch_handler does not have @copyright tag
(#25) Class moodle1_qtype_ddmatch_handler does not have @license tag
question/type/ddmatch/backup/moodle2/backup_qtype_ddmatch_plugin.class.php
(#17) No one-line description found in phpdocs for file
question/type/ddmatch/backup/moodle2/restore_qtype_ddmatch_plugin.class.php
(#167) Function restore_qtype_ddmatch_plugin::recode_response is not documented
(#17) No one-line description found in phpdocs for file
(#27) No one-line description found in phpdocs for class restore_qtype_ddmatch_plugin
(#57) Phpdocs for function restore_qtype_ddmatch_plugin::process_matchoptions has incomplete parameters list
(#98) Phpdocs for function restore_qtype_ddmatch_plugin::process_match has incomplete parameters list
(#177) Phpdocs for function restore_qtype_ddmatch_plugin::recode_legacy_state_answer has incomplete parameters list
question/type/ddmatch/db/upgrade.php
(#26) Function xmldb_qtype_ddmatch_upgrade is not documented
question/type/ddmatch/db/upgradelib.php
(#44) Function qtype_ddmatch_qe2_attempt_updater::question_summary is not documented
(#67) Function qtype_ddmatch_qe2_attempt_updater::right_answer is not documented
(#75) Function qtype_ddmatch_qe2_attempt_updater::explode_answer is not documented
(#88) Function qtype_ddmatch_qe2_attempt_updater::make_summary is not documented
(#96) Function qtype_ddmatch_qe2_attempt_updater::lookup_choice is not documented
(#109) Function qtype_ddmatch_qe2_attempt_updater::response_summary is not documented
(#137) Function qtype_ddmatch_qe2_attempt_updater::was_answered is not documented
(#147) Function qtype_ddmatch_qe2_attempt_updater::set_first_step_data_elements is not documented
(#164) Function qtype_ddmatch_qe2_attempt_updater::supply_missing_first_step_data is not documented
(#171) Function qtype_ddmatch_qe2_attempt_updater::set_data_elements_for_step is not documented
(#37) Variable qtype_ddmatch_qe2_attempt_updater::$stems is not documented
(#38) Variable qtype_ddmatch_qe2_attempt_updater::$choices is not documented
(#39) Variable qtype_ddmatch_qe2_attempt_updater::$right is not documented
(#40) Variable qtype_ddmatch_qe2_attempt_updater::$stemorder is not documented
(#41) Variable qtype_ddmatch_qe2_attempt_updater::$choiceorder is not documented
(#42) Variable qtype_ddmatch_qe2_attempt_updater::$flippedchoiceorder is not documented
(#27) No one-line description found in phpdocs for class qtype_ddmatch_qe2_attempt_updater
question/type/ddmatch/edit_ddmatch_form.php
(#36) Function qtype_ddmatch_edit_form::get_per_answer_fields is not documented
(#77) Function qtype_ddmatch_edit_form::data_preprocessing is not documented
(#126) Function qtype_ddmatch_edit_form::validation is not documented
(#160) Function qtype_ddmatch_edit_form::qtype is not documented
(#29) Class qtype_ddmatch_edit_form does not have @copyright tag
question/type/ddmatch/lib.php
(#17) File-level phpdocs block is not found
(#17) Phpdocs for function qtype_ddmatch_pluginfile has incomplete parameters list
question/type/ddmatch/question.php
(#38) Function qtype_ddmatch_question::get_question_summary is not documented
(#55) Function qtype_ddmatch_question::summarise_response is not documented
(#76) Function qtype_ddmatch_question::check_file_access is not documented
(#96) Function qtype_ddmatch_question::get_field_name is not documented
(#30) No one-line description found in phpdocs for class qtype_ddmatch_question
(#30) Class qtype_ddmatch_question does not have @copyright tag
question/type/ddmatch/questiontype.php
(#39) Function qtype_ddmatch::get_question_options is not documented
(#49) Function qtype_ddmatch::save_question_options is not documented
(#118) Function qtype_ddmatch::initialise_question_instance is not documented
(#145) Function qtype_ddmatch::make_hint is not documented
(#149) Function qtype_ddmatch::delete_question is not documented
(#158) Function qtype_ddmatch::get_random_guess_score is not documented
(#163) Function qtype_ddmatch::get_possible_responses is not documented
(#187) Function qtype_ddmatch::move_files is not documented
(#206) Function qtype_ddmatch::delete_files is not documented
(#225) Phpdocs for function qtype_ddmatch::export_to_xml has incomplete parameters list
(#256) Phpdocs for function qtype_ddmatch::import_from_xml has incomplete parameters list
(#32) Class qtype_ddmatch does not have @copyright tag
question/type/ddmatch/renderer.php
(#86) Function qtype_ddmatch_renderer::specific_feedback is not documented
(#90) Function qtype_ddmatch_renderer::correct_response is not documented
(#191) Function qtype_ddmatch_renderer::construct_stem_cell is not documented
(#197) Function qtype_ddmatch_renderer::construct_choice_cell_select is not documented
(#202) Function qtype_ddmatch_renderer::construct_choice_cell_dragdrop is not documented
(#38) Phpdocs for function qtype_ddmatch_renderer::formulation_and_controls has incomplete parameters list
(#71) Phpdocs for function qtype_ddmatch_renderer::format_choices has incomplete parameters list
(#119) Phpdocs for function qtype_ddmatch_renderer::construct_questiontext has incomplete parameters list
(#131) Phpdocs for function qtype_ddmatch_renderer::construct_answerblock has incomplete parameters list
(#245) Phpdocs for function qtype_ddmatch_renderer::construct_available_dragdrop_choices has incomplete parameters list
(#17) File-level phpdocs block does not have @copyright tag
(#28) Class qtype_ddmatch_renderer does not have @copyright tag
question/type/ddmatch/tests/helper.php
(#20) Package qtype is not valid
question/type/ddmatch/tests/question_test.php
(#20) Package qtype is not valid
question/type/ddmatch/tests/questiontype_test.php
(#52) Function qtype_ddmatch_test::get_test_question_data is not documented
(#20) Package qtype is not valid
question/type/ddmatch/tests/upgradelibnewqe_test.php
(#17) No one-line description found in phpdocs for file
(#21) Package qtype is not valid
question/type/ddmatch/tests/walkthrough_test.php
(#17) No one-line description found in phpdocs for file
(#21) Package qtype is not valid
question/type/ddmatch/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]