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

(5 errors, 0 warnings)

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

question/type/pmatchjme/backup/moodle2/backup_qtype_pmatchjme_plugin.class.php
(#98) The use of the AS keyword to alias tables is bad for cross-db
question/type/pmatchjme/question.php
(#69) Expected 1 space before "?"; 0 found
(#69) Expected 1 space after "?"; 0 found
(#69) Expected 1 space before ":"; 0 found
(#69) Expected 1 space after ":"; 0 found

Javascript coding style problems

(0 errors, 294 warnings)

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

question/type/pmatchjme/module.js
(#2) Line is too long.
(#2) 'PluginDetect' was used before it was defined.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Value of 'd' may be overwritten in IE 8 and earlier.
(#2) Expected '!==' and instead saw '!='.
(#2) Variables should not be deleted.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '!==' and instead saw '!='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '!==' and instead saw '!='.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Expected '!==' and instead saw '!='.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Expected '!==' and instead saw '!='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Expected '!==' and instead saw '!='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '!==' and instead saw '!='.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Expected '!==' and instead saw '!='.
(#2) Expected '!==' and instead saw '!='.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Unreachable 'return' after 'return'.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '!==' and instead saw '!='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '!==' and instead saw '!='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Empty block.
(#2) Expected '!==' and instead saw '!='.
(#2) Missing semicolon.
(#2) Expected '!==' and instead saw '!='.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Unnecessary semicolon.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '!==' and instead saw '!='.
(#2) Expected '!==' and instead saw '!='.
(#2) Missing semicolon.
(#2) Value of 'c' may be overwritten in IE 8 and earlier.
(#2) Expected '!==' and instead saw '!='.
(#2) Missing semicolon.
(#2) Value of 'f' may be overwritten in IE 8 and earlier.
(#2) Missing semicolon.
(#2) Empty block.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '!==' and instead saw '!='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Expected '!==' and instead saw '!='.
(#2) Expected '===' and instead saw '=='.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Expected '!==' and instead saw '!='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Expected '!==' and instead saw '!='.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Expected '!==' and instead saw '!='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Expected '!==' and instead saw '!='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '!==' and instead saw '!='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Value of 'h' may be overwritten in IE 8 and earlier.
(#2) Expected '!==' and instead saw '!='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Value of 'h' may be overwritten in IE 8 and earlier.
(#2) Expected '!==' and instead saw '!='.
(#2) Missing semicolon.
(#2) Value of 'h' may be overwritten in IE 8 and earlier.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Expected '!==' and instead saw '!='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Unnecessary semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '!==' and instead saw '!='.
(#2) Missing semicolon.
(#2) Value of 'f' may be overwritten in IE 8 and earlier.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Value of 'h' may be overwritten in IE 8 and earlier.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Value of 'h' may be overwritten in IE 8 and earlier.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Value of 'c' may be overwritten in IE 8 and earlier.
(#2) Missing semicolon.
(#2) Value of 'b' may be overwritten in IE 8 and earlier.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Expected '===' and instead saw '=='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Expected '!==' and instead saw '!='.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Value of 'j' may be overwritten in IE 8 and earlier.
(#2) Missing semicolon.
(#2) Value of 'j' may be overwritten in IE 8 and earlier.
(#2) Missing semicolon.
(#2) Value of 'j' may be overwritten in IE 8 and earlier.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#2) Value of 'j' may be overwritten in IE 8 and earlier.
(#2) Missing semicolon.
(#2) Missing semicolon.
(#10) The array literal notation [] is preferable.
(#34) Missing semicolon.
(#49) Creating global 'for' variable. Should be 'for (var appletno ...'.
(#50) Expected '===' and instead saw '=='.
(#64) Expected '===' and instead saw '=='.
(#66) Expected '===' and instead saw '=='.
(#114) Expected '!==' and instead saw '!='.
(#116) Expected '===' and instead saw '=='.
(#123) Expected '===' and instead saw '=='.
(#139) Missing semicolon.
(#2) 'd' is defined but never used.
(#2) 'a' is defined but never used.
(#2) 'b' is defined but never used.
(#2) 'e' is defined but never used.
(#2) 'b' is defined but never used.
(#2) 'c' is defined but never used.
(#2) 'f' is defined but never used.
(#2) 'b' is defined but never used.
(#2) 'a' is defined but never used.
(#2) 'd' is defined but never used.
(#2) 'e' is defined but never used.
(#2) 'g' is defined but never used.
(#2) 'g' is defined but never used.
(#2) 'd' is defined but never used.
(#2) 'c' is defined but never used.
(#2) 'f' is defined but never used.
(#2) 'h' is defined but never used.
(#2) 'f' is defined but never used.
(#2) 'h' is defined but never used.
(#2) 'c' is defined but never used.
(#2) 'd' is defined but never used.
(#2) 'b' is defined but never used.
(#2) 'j' is defined but never used.
(#2) 'm' is defined but never used.
(#2) 'f' is defined but never used.

CSS problems

(0 errors, 1 warnings)

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

question/type/pmatchjme/styles.css
(#3) width can't be used with display: inline.

PHPDocs style problems

(52 errors, 0 warnings)

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

question/type/pmatchjme/backup/moodle2/backup_qtype_pmatchjme_plugin.class.php
(#79) Function backup_qtype_pmatchjme_plugin::add_question_qtype_pmatchjme_answers is not documented
(#17) No one-line description found in phpdocs for file
question/type/pmatchjme/backup/moodle2/restore_qtype_pmatchjme_plugin.class.php
(#17) No one-line description found in phpdocs for file
(#27) No one-line description found in phpdocs for class restore_qtype_pmatchjme_plugin
(#62) Phpdocs for function restore_qtype_pmatchjme_plugin::process_pmatch has incomplete parameters list
(#88) Phpdocs for function restore_qtype_pmatchjme_plugin::process_pmatchjme_answer has incomplete parameters list
(#109) Phpdocs for function restore_qtype_pmatchjme_plugin::process_synonym has incomplete parameters list
question/type/pmatchjme/edit_pmatchjme_form.php
(#37) Function qtype_pmatchjme_edit_form::qtype is not documented
(#41) Function qtype_pmatchjme_edit_form::general_answer_fields is not documented
(#49) Function qtype_pmatchjme_edit_form::get_per_answer_fields is not documented
(#56) Function qtype_pmatchjme_edit_form::add_other_answer_fields is not documented
(#61) Function qtype_pmatchjme_edit_form::data_preprocessing_hints is not documented
(#68) Function qtype_pmatchjme_edit_form::get_hint_fields is not documented
(#96) Function qtype_pmatchjme_edit_form::data_preprocessing_other_answer is not documented
(#112) Function qtype_pmatchjme_edit_form::straight_smiles_string_match is not documented
(#117) Function qtype_pmatchjme_edit_form::validation is not documented
(#141) Function qtype_pmatchjme_edit_form::place_holder_errors is not documented
(#81) Phpdocs for function qtype_pmatchjme_edit_form::data_preprocessing_answers has incomplete parameters list
(#20) Package qtype is not valid
question/type/pmatchjme/lang/en/qtype_pmatchjme.php
(#21) Package qtype is not valid
question/type/pmatchjme/lib.php
(#32) Phpdocs for function qtype_pmatchjme_pluginfile has incomplete parameters list
(#21) Package qtype is not valid
question/type/pmatchjme/question.php
(#38) Function qtype_pmatchjme_question::get_expected_data is not documented
(#42) Function qtype_pmatchjme_question::get_correct_response is not documented
(#57) Function qtype_pmatchjme_question::check_atom_count is not documented
(#84) Function qtype_pmatchjme_question::part_comparison is not documented
(#144) Function qtype_pmatchjme_question::start_attempt is not documented
(#147) Function qtype_pmatchjme_question::apply_attempt_state is not documented
(#99) There is no description in phpdocs for function get_part_name
(#116) Phpdocs for function qtype_pmatchjme_question::count_compound_parts has incomplete parameters list
(#20) Package qtype is not valid
question/type/pmatchjme/questiontype.php
(#60) Function qtype_pmatchjme::save_question_options is not documented
(#72) Function qtype_pmatchjme::save_hints is not documented
(#75) Function qtype_pmatchjme::extra_answer_fields is not documented
(#78) Function qtype_pmatchjme::save_extra_answer_data is not documented
(#109) Function qtype_pmatchjme::delete_question is not documented
(#114) Function qtype_pmatchjme::delete_extra_answer_records is not documented
(#31) No one-line description found in phpdocs for class qtype_pmatchjme_answer
(#38) Phpdocs for function qtype_pmatchjme_answer::__construct has incomplete parameters list
(#31) Class qtype_pmatchjme_answer does not have @copyright tag
(#31) Class qtype_pmatchjme_answer does not have @license tag
(#20) Package qtype is not valid
question/type/pmatchjme/renderer.php
(#38) Function qtype_pmatchjme_renderer::formulation_and_controls is not documented
(#92) Function qtype_pmatchjme_renderer::require_js is not documented
(#126) Function qtype_pmatchjme_renderer::hidden_fields is not documented
(#137) Function qtype_pmatchjme_renderer::hidden_field_for_qt_var is not documented
(#148) Function qtype_pmatchjme_renderer::fraction_for_last_response is not documented
(#161) Function qtype_pmatchjme_renderer::get_last_response is not documented
(#171) Function qtype_pmatchjme_renderer::specific_feedback is not documented
(#20) Package qtype is not valid
question/type/pmatchjme/tests/chemicalexpressionmatching_test.php
(#40) Function pmatchjme_parse_string_test::match is not documented
(#36) Invalid phpdocs tag @group used

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]