Prechecker results: error


Overview

(0 errors, 0 warnings)

This section shows the general problems detected when processing the code [More info]


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

(347 errors, 44 warnings)

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

public/question/type/matrix/backup/moodle1/lib.php
(#17) Missing @copyright tag
(#17) Missing @license tag
(#20) DocBlock missing a @package tag for class moodle1_qtype_matrix_handler. Expected @package qtype_matrix
(#20) Opening brace must not be followed by a blank line
(#33) There should be a comma after the last array item in a multi-line array.
(#75) Missing docblock for function create_id
(#80) The closing brace for the class must go on the next line after the body
public/question/type/matrix/backup/moodle2/backup_qtype_matrix_plugin.class.php
(#17) Missing @copyright tag
(#17) Missing @license tag
(#20) DocBlock missing a @package tag for class backup_qtype_matrix_plugin. Expected @package qtype_matrix
(#20) Opening brace must not be followed by a blank line
(#38) Opening parenthesis of a multi-line function call must be the last content on the line
(#40) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#40) Closing parenthesis of a multi-line function call must be on a line by itself
public/question/type/matrix/backup/moodle2/restore_qtype_matrix_plugin.class.php
(#17) Missing @copyright tag
(#17) Missing @license tag
(#22) DocBlock missing a @package tag for class restore_qtype_matrix_plugin. Expected @package qtype_matrix
(#22) Opening brace must not be followed by a blank line
(#58) Expected 1 space after closing brace; newline found
(#59) Expected "} else {\n"; found "}\n else {\n"
(#194) Missing docblock for function recode_response
(#260) Expected 6 spaces before asterisk; 5 found
(#261) Expected 6 spaces before asterisk; 5 found
(#262) Expected 6 spaces before asterisk; 5 found
(#263) Expected 6 spaces before asterisk; 5 found
(#264) Expected 6 spaces before asterisk; 5 found
(#265) Expected 6 spaces before asterisk; 5 found
(#268) Whitespace found at end of line
(#272) Whitespace found at end of line
(#279) Whitespace found at end of line
(#283) Whitespace found at end of line
(#284) Inline comments must end in full-stops, exclamation marks, or question marks
(#294) There should be a comma after the last array item in a multi-line array.
(#300) There should be a comma after the last array item in a multi-line array.
(#308) Inline comments must end in full-stops, exclamation marks, or question marks
(#318) There should be a comma after the last array item in a multi-line array.
(#325) Whitespace found at end of line
(#326) Line indented incorrectly; expected at least 12 spaces, found 11
(#326) Inline doc block comments are not allowed; use "// Comment." instead
(#331) Inline comments must start with a capital letter, digit or 3-dots sequence
(#331) Inline comments must end in full-stops, exclamation marks, or question marks
(#354) Whitespace found at end of line
public/question/type/matrix/classes/local/grading/all.php
(#25) Missing @copyright tag
(#25) Missing @license tag
(#32) DocBlock missing a @package tag for class all. Expected @package qtype_matrix
(#32) Opening brace must not be followed by a blank line
(#34) Missing docblock for constant all::TYPE
(#36) Missing docblock for function get_name
(#44) No one-line description found in phpdocs for docblock of function get_title
public/question/type/matrix/classes/local/grading/difference.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#24) Missing @copyright tag
(#24) Missing @license tag
(#24) Missing docblock for class difference
(#24) Opening brace must not be followed by a blank line
(#26) Missing docblock for constant difference::TYPE
(#28) Missing docblock for function get_name
(#36) No one-line description found in phpdocs for docblock of function get_title
(#53) Missing docblock for function grade_question
public/question/type/matrix/classes/local/grading/kany.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#24) Missing @copyright tag
(#24) Missing @license tag
(#30) DocBlock missing a @package tag for class kany. Expected @package qtype_matrix
(#30) Opening brace must not be followed by a blank line
(#32) Missing docblock for constant kany::TYPE
(#34) Missing docblock for function get_name
(#42) No one-line description found in phpdocs for docblock of function get_title
(#59) Missing docblock for function grade_question
public/question/type/matrix/classes/local/grading/kprime.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#23) Missing @copyright tag
(#23) Missing @license tag
(#31) DocBlock missing a @package tag for class kprime. Expected @package qtype_matrix
(#31) Opening brace must not be followed by a blank line
(#33) Missing docblock for constant kprime::TYPE
(#35) Missing docblock for function get_name
(#39) Missing docblock for function get_title
(#93) The closing brace for the class must go on the next line after the body
public/question/type/matrix/classes/local/interfaces/grading.php
(#18) Missing @copyright tag
(#18) Missing @license tag
(#18) Missing docblock for interface grading
(#19) Missing docblock for function create_grade
(#21) Missing docblock for function get_name
(#23) Missing docblock for function get_title
public/question/type/matrix/classes/local/lang.php
(#21) Missing @copyright tag
(#21) Missing @license tag
(#24) DocBlock missing a @package tag for class lang. Expected @package qtype_matrix
(#24) Opening brace must not be followed by a blank line
(#26) Missing docblock for constant lang::COMPONENT
(#34) No one-line description found in phpdocs for docblock of function get
(#34) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $a.
(#42) No one-line description found in phpdocs for docblock of function use_dnd_ui
(#50) No one-line description found in phpdocs for docblock of function shuffle_answers
(#58) No one-line description found in phpdocs for docblock of function must_define_1_by_1
(#66) No one-line description found in phpdocs for docblock of function multiple_allowed
(#74) No one-line description found in phpdocs for docblock of function grade_method
(#82) No one-line description found in phpdocs for docblock of function col_description
(#90) No one-line description found in phpdocs for docblock of function row_feedback
(#98) No one-line description found in phpdocs for docblock of function row_long
(#106) No one-line description found in phpdocs for docblock of function true_
(#114) No one-line description found in phpdocs for docblock of function false_
(#122) No one-line description found in phpdocs for docblock of function one_answer_per_row
(#126) The closing brace for the class must go on the next line after the body
public/question/type/matrix/classes/local/matrix_form_builder.php
(#24) Missing @copyright tag
(#24) Missing @license tag
(#27) DocBlock missing a @package tag for class matrix_form_builder. Expected @package qtype_matrix
(#27) Opening brace must not be followed by a blank line
(#32) Property name "$_form" should not be prefixed with an underscore to indicate visibility
(#34) Missing docblock for function __construct
(#44) No one-line description found in phpdocs for docblock of function create_text
(#59) No one-line description found in phpdocs for docblock of function create_htmlpopup
(#81) Missing docblock for function create_static
(#86) Missing docblock for function create_name
(#97) No one-line description found in phpdocs for docblock of function create_htmleditor
(#106) Missing docblock for function create_hidden
(#119) No one-line description found in phpdocs for docblock of function create_group
(#119) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#123) The closing parenthesis of a multi-line function declaration must be on a new line
(#138) No one-line description found in phpdocs for docblock of function create_header
(#154) No one-line description found in phpdocs for docblock of function create_submit
(#163) Missing docblock for function add_javascript
(#169) Missing docblock for function create_javascript
(#183) No one-line description found in phpdocs for docblock of function add_selectyesno
(#192) Missing docblock for function add_help_button
(#192) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#196) The closing parenthesis of a multi-line function declaration must be on a new line
(#203) Missing docblock for function set_default
(#207) Missing docblock for function insert_element_before
(#211) Missing docblock for function disabled_if
(#215) Missing docblock for function register_no_submit_button
(#219) Missing docblock for function register_hook_multiple
public/question/type/matrix/classes/local/qtype_matrix_grading.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#22) Missing @copyright tag
(#22) Missing @license tag
(#25) Docblock tag "@abstract" is not recommended.
(#27) DocBlock missing a @package tag for class qtype_matrix_grading. Expected @package qtype_matrix
(#27) Opening brace must not be followed by a blank line
(#35) No one-line description found in phpdocs for docblock of function gradings
(#50) Missing docblock for function default_grading
(#74) No one-line description found in phpdocs for docblock of function get_title
(#78) Missing docblock for function get_name
(#153) Missing docblock for function col_count
(#157) Missing docblock for function row_count
public/question/type/matrix/classes/local/question_matrix_store.php
(#22) Missing @copyright tag
(#22) Missing @license tag
(#22) Missing docblock for class question_matrix_store
(#22) Opening brace must not be followed by a blank line
(#24) Missing docblock for constant question_matrix_store::COMPONENT
(#25) Missing docblock for constant question_matrix_store::TABLE_QUESTION_MATRIX
(#26) Missing docblock for constant question_matrix_store::TABLE_QUESTION_MATRIX_ROWS
(#27) Missing docblock for constant question_matrix_store::TABLE_QUESTION_MATRIX_COLS
(#28) Missing docblock for constant question_matrix_store::TABLE_QUESTION_MATRIX_WEIGHTS
(#63) There should be a comma after the last array item in a multi-line array.
(#77) No one-line description found in phpdocs for docblock of function update_matrix
(#86) There should be a comma after the last array item in a multi-line array.
(#97) No one-line description found in phpdocs for docblock of function delete_question
(#104) Opening parenthesis of a multi-line function call must be the last content on the line
(#110) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#110) Closing parenthesis of a multi-line function call must be on a line by itself
(#113) Opening parenthesis of a multi-line function call must be the last content on the line
(#117) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#117) Closing parenthesis of a multi-line function call must be on a line by itself
(#120) Opening parenthesis of a multi-line function call must be the last content on the line
(#124) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#124) Closing parenthesis of a multi-line function call must be on a line by itself
(#138) No one-line description found in phpdocs for docblock of function get_matrix_rows_by_matrix_id
(#147) There should be a comma after the last array item in a multi-line array.
(#151) There should be a comma after the last array item in a multi-line array.
(#177) There should be a comma after the last array item in a multi-line array.
(#190) No one-line description found in phpdocs for docblock of function update_matrix_row
(#198) There should be a comma after the last array item in a multi-line array.
(#209) No one-line description found in phpdocs for docblock of function delete_matrix_row
(#226) No one-line description found in phpdocs for docblock of function get_matrix_cols_by_matrix_id
(#237) There should be a comma after the last array item in a multi-line array.
(#261) There should be a comma after the last array item in a multi-line array.
(#275) No one-line description found in phpdocs for docblock of function update_matrix_col
(#283) There should be a comma after the last array item in a multi-line array.
(#295) No one-line description found in phpdocs for docblock of function delete_matrix_col
(#312) No one-line description found in phpdocs for docblock of function get_matrix_weights_by_question_id
(#334) No one-line description found in phpdocs for docblock of function delete_matrix_weights
(#351) No one-line description found in phpdocs for docblock of function insert_matrix_weight
(#357) There should be a comma after the last array item in a multi-line array.
(#364) The closing brace for the class must go on the next line after the body
public/question/type/matrix/classes/local/setting.php
(#20) Missing @copyright tag
(#20) Missing @license tag
(#23) DocBlock missing a @package tag for class setting. Expected @package qtype_matrix
(#24) Missing docblock for constant setting::COMPONENT
(#26) Missing docblock for function show_kprime_gui
(#29) Opening parenthesis of a multi-line function call must be the last content on the line
(#30) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#30) Closing parenthesis of a multi-line function call must be on a line by itself
(#37) No one-line description found in phpdocs for docblock of function allow_dnd_ui
(#52) The closing brace for the class must go on the next line after the body
public/question/type/matrix/classes/output/renderer.php
(#28) Missing @copyright tag
(#28) Missing @license tag
(#31) DocBlock missing a @package tag for class renderer. Expected @package qtype_matrix
(#31) Opening brace must not be followed by a blank line
(#110) Opening parenthesis of a multi-line function call must be the last content on the line
(#112) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#112) Closing parenthesis of a multi-line function call must be on a line by itself
(#118) Missing docblock for function matrix_header
(#136) Missing docblock for function checkbox
(#142) Missing docblock for function radio
(#148) The closing brace for the class must go on the next line after the body
public/question/type/matrix/classes/privacy/provider.php
(#29) Missing docblock for class provider
(#29) Opening brace must not be followed by a blank line
public/question/type/matrix/db/upgrade.php
(#37) Missing @copyright tag
(#37) Missing @license tag
(#46) No one-line description found in phpdocs for docblock of function xmldb_qtype_matrix_upgrade
(#46) DocBlock missing a @package tag for function xmldb_qtype_matrix_upgrade. Expected @package qtype_matrix
public/question/type/matrix/edit_matrix_form.php
(#31) Missing @copyright tag
(#31) Missing @license tag
(#37) DocBlock missing a @package tag for class qtype_matrix_edit_form. Expected @package qtype_matrix
(#37) Opening brace must not be followed by a blank line
(#39) Missing docblock for constant qtype_matrix_edit_form::PARAM_COLS
(#40) Missing docblock for constant qtype_matrix_edit_form::DEFAULT_COLS
(#41) Missing docblock for constant qtype_matrix_edit_form::PARAM_ADD_COLUMNS
(#42) Missing docblock for constant qtype_matrix_edit_form::PARAM_ROWS
(#43) Missing docblock for constant qtype_matrix_edit_form::DEFAULT_ROWS
(#44) Missing docblock for constant qtype_matrix_edit_form::PARAM_ADD_ROWS
(#45) Missing docblock for constant qtype_matrix_edit_form::PARAM_GRADE_METHOD
(#46) Missing docblock for constant qtype_matrix_edit_form::PARAM_MULTIPLE
(#47) Missing docblock for constant qtype_matrix_edit_form::DEFAULT_MULTIPLE
(#48) Missing docblock for constant qtype_matrix_edit_form::PARAM_USE_DND_UI
(#49) Missing docblock for constant qtype_matrix_edit_form::DEFAULT_USE_DND_UI
(#50) Missing docblock for constant qtype_matrix_edit_form::PARAM_SHUFFLE_ANSERS
(#51) Missing docblock for constant qtype_matrix_edit_form::DEFAULT_SHUFFLE_ANSWERS
(#59) Missing docblock for function qtype
(#69) No one-line description found in phpdocs for docblock of function definition_inner
(#93) No one-line description found in phpdocs for docblock of function add_multiple
(#111) No one-line description found in phpdocs for docblock of function add_grading
(#122) Opening parenthesis of a multi-line function call must be the last content on the line
(#127) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#127) Closing parenthesis of a multi-line function call must be on a line by itself
(#155) No one-line description found in phpdocs for docblock of function add_matrix
(#313) No one-line description found in phpdocs for docblock of function param_rows
(#362) Missing docblock for function get_javascript
(#479) Missing docblock for function col_count
(#483) Missing docblock for function row_count
public/question/type/matrix/lang/en/qtype_matrix.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file qtype_matrix.php
(#16) Boilerplate comment must be followed by a single blank line or end of file
(#16) Variable "$CFG" is not expected in a lang file
(#19) Variable "$CFG" is not expected in a lang file
(#19) Variable "$CFG" is not expected in a lang file
(#20) The string key "pluginname" is duplicated
(#22) The string key "pluginnameadding" is not in the correct order, it should be before "pluginnamesummary"
(#24) The string key "pluginname_help" is not in the correct order, it should be before "pluginnameediting"
(#26) The string key "grademethod_help" is not in the correct order, it should be before "pluginname_help"
(#33) The string key "pluginname" is duplicated
(#34) The string key "pluginnamesummary" is duplicated
(#35) The string key "pluginnameadding" is duplicated
(#36) The string key "pluginnameediting" is duplicated
(#37) The string key "pluginname_help" is duplicated
(#38) The string key "grademethod_help" is duplicated
(#49) Unexpected comment found. Auto-fixing will not work after this comment
(#50) The string key "all" is not in the correct order, it should be before "pluginname_link"
(#53) The string key "difference" is not in the correct order, it should be before "kprime"
(#55) Unexpected comment found. Auto-fixing will not work after this comment
(#57) The string key "false" is not in the correct order, it should be before "true"
(#59) Unexpected comment found. Auto-fixing will not work after this comment
(#62) The string key "grademethod" is not in the correct order, it should be before "multipleallowed"
(#69) The string key "rows_shorttext" is not in the correct order, it should be before "rowsheader_desc"
(#70) The string key "rows_description" is not in the correct order, it should be before "rows_shorttext"
(#73) The string key "colsheader" is not in the correct order, it should be before "rows_feedback"
(#78) The string key "cols_shorttext" is not in the correct order, it should be before "colsheader_desc"
(#79) The string key "cols_description" is not in the correct order, it should be before "cols_shorttext"
(#83) The string key "matrixheader" is not in the correct order, it should be before "refresh_matrix"
(#86) The string key "mustaddupto100" is not in the correct order, it should be before "mustdefine1by1"
(#88) The string key "oneanswerperrow" is not in the correct order, it should be before "weightednomultiple"
(#92) The string key "show_non_kprime_gui" is not in the correct order, it should be before "shuffleanswers_help"
(#94) The string key "allow_dnd_ui" is not in the correct order, it should be before "show_non_kprime_gui"
(#97) The string key "privacy:metadata" is not in the correct order, it should be before "use_dnd_ui"
(#98) The string key "correctresponse" is not in the correct order, it should be before "privacy:metadata"
(#98) Expected 1 blank line at end of file; 2 found
public/question/type/matrix/question.php
(#1) DocBlock missing a @package tag for file question.php. Expected @package qtype_matrix
(#17) Missing @copyright tag
(#17) Missing @license tag
(#28) DocBlock missing a @package tag for class qtype_matrix_question. Expected @package qtype_matrix
(#28) Opening brace must not be followed by a blank line
(#30) Missing docblock for constant qtype_matrix_question::KEY_ROWS_ORDER
(#32) Missing member variable doc comment
(#33) Missing member variable doc comment
(#34) Missing member variable doc comment
(#35) Missing member variable doc comment
(#36) Missing member variable doc comment
(#37) Missing member variable doc comment
(#38) Missing member variable doc comment
(#102) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $multiple.
(#180) No one-line description found in phpdocs for docblock of function shuffle_answers
(#197) Docblock tag "@global" is not recommended.
(#198) Docblock tag "@global" is not recommended.
(#207) Inline comments must end in full-stops, exclamation marks, or question marks
(#310) No one-line description found in phpdocs for docblock of function get_order
(#320) No one-line description found in phpdocs for docblock of function init_order
(#404) Missing docblock for function is_question_partial_gradable
(#598) Line exceeds 132 characters; contains 134 characters
(#601) Missing docblock for function classify_multi_response
(#606) Expected at least 1 space before "."; 0 found
(#606) Expected at least 1 space after "."; 0 found
(#606) Expected at least 1 space before "."; 0 found
(#606) Expected at least 1 space after "."; 0 found
(#606) Expected at least 1 space before "."; 0 found
(#606) Expected at least 1 space after "."; 0 found
(#624) Missing docblock for function classify_simple_response
(#626) Blank line found at start of control structure
(#654) Missing docblock for function get_selected_columns
public/question/type/matrix/questiontype.php
(#1) DocBlock missing a @package tag for file questiontype.php. Expected @package qtype_matrix
(#17) Missing @copyright tag
(#17) Missing @license tag
(#34) DocBlock missing a @package tag for class qtype_matrix. Expected @package qtype_matrix
(#34) Opening brace must not be followed by a blank line
(#36) Missing docblock for function gradings
(#40) Missing docblock for function grading
(#78) No one-line description found in phpdocs for docblock of function is_manual_graded
(#151) Missing docblock for function defaut_grading
(#197) Inline comments must start with a capital letter, digit or 3-dots sequence
(#197) This comment is 72% valid code; is this commented out code?
(#197) No space found before comment text; expected "// $isnew = !$rowid;" but found "//$isnew = !$rowid;"
(#203) There should be a comma after the last array item in a multi-line array.
(#227) Inline comments must start with a capital letter, digit or 3-dots sequence
(#227) This comment is 72% valid code; is this commented out code?
(#227) No space found before comment text; expected "// $isnew = !$colid;" but found "//$isnew = !$colid;"
(#232) There should be a comma after the last array item in a multi-line array.
(#288) There should be a comma after the last array item in a multi-line array.
(#321) Invalid docblock tag "@result".
(#392) Missing docblock for function name
(#396) Missing docblock for function extra_question_fields
(#422) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#422) Closing parenthesis of a multi-line function call must be on a line by itself
(#436) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#436) Closing parenthesis of a multi-line function call must be on a line by itself
(#442) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#442) Closing parenthesis of a multi-line function call must be on a line by itself
(#469) There should be a comma after the last array item in a multi-line array.
(#476) There should be a comma after the last array item in a multi-line array.
(#496) There should be a comma after the last array item in a multi-line array.
(#632) Blank line found at start of control structure
(#650) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#650) Only one argument is allowed per line in a multi-line function call
(#650) Closing parenthesis of a multi-line function call must be on a line by itself
(#650) Line exceeds 132 characters; contains 144 characters
public/question/type/matrix/settings.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file settings.php
(#19) Blank line found at start of control structure
(#21) Opening parenthesis of a multi-line function call must be the last content on the line
(#23) Only one argument is allowed per line in a multi-line function call
(#24) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#24) Only one argument is allowed per line in a multi-line function call
(#24) Closing parenthesis of a multi-line function call must be on a line by itself
(#26) Opening parenthesis of a multi-line function call must be the last content on the line
(#28) Only one argument is allowed per line in a multi-line function call
(#29) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#29) Only one argument is allowed per line in a multi-line function call
(#29) Closing parenthesis of a multi-line function call must be on a line by itself
(#30) Blank line found at end of control structure
public/question/type/matrix/tests/backup_test.php
(#35) Opening brace must not be followed by a blank line
(#40) Test method test_duplicate_matrix_question() is missing any coverage information, own or at class level
public/question/type/matrix/tests/helper.php
(#1) DocBlock missing a @package tag for file helper.php. Expected @package qtype_matrix
(#17) Missing @copyright tag
(#17) Missing @license tag
(#24) DocBlock missing a @package tag for class qtype_matrix_test_helper. Expected @package qtype_matrix
(#24) Opening brace must not be followed by a blank line
(#26) Missing docblock for function get_test_questions
(#164) No one-line description found in phpdocs for docblock of function init_matrix_question
public/question/type/matrix/tests/qtype_matrix_question_test.php
(#30) Missing @copyright tag
(#30) Missing @license tag
(#34) Unit test qtype_matrix_question_test should be declared as final.
(#34) DocBlock missing a @package tag for class qtype_matrix_question_test. Expected @package qtype_matrix
(#34) Opening brace must not be followed by a blank line
(#40) No one-line description found in phpdocs for docblock of function test_is_complete_response
(#110) No one-line description found in phpdocs for docblock of function test_get_correct_response
(#133) No one-line description found in phpdocs for docblock of function test_get_question_summary
(#143) No one-line description found in phpdocs for docblock of function test_summarise_response
(#171) No one-line description found in phpdocs for docblock of function test_is_same_response
(#189) No one-line description found in phpdocs for docblock of function test_grading
(#214) Missing docblock for function question_grading_pass in testcase
(#316) The closing brace for the class must go on the next line after the body
public/question/type/matrix/tests/qtype_matrix_test.php
(#27) Missing @copyright tag
(#27) Missing @license tag
(#30) Unit test qtype_matrix_test should be declared as final.
(#30) DocBlock missing a @package tag for class qtype_matrix_test. Expected @package qtype_matrix
(#30) Opening brace must not be followed by a blank line
(#32) Missing member variable doc comment
(#34) The setUp() method in unit tests must always call to parent::setUp().
(#38) The tearDown() method in unit tests must always call to parent::tearDown().
(#55) No one-line description found in phpdocs for docblock of function test_cell_name
public/question/type/matrix/version.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file version.php
(#21) Inline comments must end in full-stops, exclamation marks, or question marks

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(227 errors, 11 warnings)

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

public/question/type/matrix/stylesheets/styles.less
(#10) Unexpected whitespace at end of line (no-eol-whitespace)
(#11) Unexpected whitespace at end of line (no-eol-whitespace)
public/question/type/matrix/stylesheets/css/base.css
(#46) Unexpected !important (declaration-no-important)
(#77) Unexpected !important (declaration-no-important)
(#81) Unexpected !important (declaration-no-important)
(#85) Unexpected !important (declaration-no-important)
(#89) Unexpected !important (declaration-no-important)
public/question/type/matrix/stylesheets/css/styles_back.css
(#50) Unexpected !important (declaration-no-important)
(#70) Unexpected !important (declaration-no-important)
(#71) Unexpected !important (declaration-no-important)
(#75) Unexpected !important (declaration-no-important)
(#76) Unexpected !important (declaration-no-important)
(#82) Unexpected !important (declaration-no-important)
(#86) Unexpected !important (declaration-no-important)
(#90) Unexpected !important (declaration-no-important)
(#94) Unexpected !important (declaration-no-important)
(#171) Unexpected !important (declaration-no-important)
public/question/type/matrix/stylesheets/less/base.less
(#51) Can't parse value "1px solid @border-color" (csstree/validator)
(#50) Expected "#EEEEEE" to be "#eeeeee" (color-hex-case)
(#184) Expected "#FFFFFF" to be "#ffffff" (color-hex-case)
(#203) Expected "#BBBBBB" to be "#bbbbbb" (color-hex-case)
(#50) Expected "#EEEEEE" to be "#EEE" (color-hex-length)
(#167) Expected "#000000" to be "#000" (color-hex-length)
(#176) Expected "#000000" to be "#000" (color-hex-length)
(#184) Expected "#FFFFFF" to be "#FFF" (color-hex-length)
(#203) Expected "#BBBBBB" to be "#BBB" (color-hex-length)
(#211) Expected "#000000" to be "#000" (color-hex-length)
(#226) Expected "#000000" to be "#000" (color-hex-length)
(#5) Expected indentation of 4 spaces (indentation)
(#7) Expected indentation of 4 spaces (indentation)
(#6) Expected indentation of 8 spaces (indentation)
(#9) Expected indentation of 4 spaces (indentation)
(#16) Expected indentation of 4 spaces (indentation)
(#10) Expected indentation of 4 spaces (indentation)
(#11) Expected indentation of 4 spaces (indentation)
(#12) Expected indentation of 8 spaces (indentation)
(#13) Expected indentation of 8 spaces (indentation)
(#14) Expected indentation of 8 spaces (indentation)
(#15) Expected indentation of 8 spaces (indentation)
(#18) Expected indentation of 4 spaces (indentation)
(#23) Expected indentation of 4 spaces (indentation)
(#19) Expected indentation of 4 spaces (indentation)
(#20) Expected indentation of 8 spaces (indentation)
(#21) Expected indentation of 8 spaces (indentation)
(#22) Expected indentation of 8 spaces (indentation)
(#25) Expected indentation of 4 spaces (indentation)
(#27) Expected indentation of 4 spaces (indentation)
(#26) Expected indentation of 8 spaces (indentation)
(#29) Expected indentation of 4 spaces (indentation)
(#31) Expected indentation of 4 spaces (indentation)
(#30) Expected indentation of 8 spaces (indentation)
(#33) Expected indentation of 4 spaces (indentation)
(#37) Expected indentation of 4 spaces (indentation)
(#34) Expected indentation of 8 spaces (indentation)
(#35) Expected indentation of 8 spaces (indentation)
(#36) Expected indentation of 8 spaces (indentation)
(#39) Expected indentation of 4 spaces (indentation)
(#41) Expected indentation of 4 spaces (indentation)
(#44) Expected indentation of 4 spaces (indentation)
(#42) Expected indentation of 4 spaces (indentation)
(#43) Expected indentation of 8 spaces (indentation)
(#46) Expected indentation of 4 spaces (indentation)
(#62) Expected indentation of 4 spaces (indentation)
(#47) Expected indentation of 8 spaces (indentation)
(#48) Expected indentation of 8 spaces (indentation)
(#50) Expected indentation of 8 spaces (indentation)
(#51) Expected indentation of 8 spaces (indentation)
(#53) Expected indentation of 8 spaces (indentation)
(#55) Expected indentation of 8 spaces (indentation)
(#57) Expected indentation of 8 spaces (indentation)
(#59) Expected indentation of 8 spaces (indentation)
(#61) Expected indentation of 8 spaces (indentation)
(#60) Expected indentation of 12 spaces (indentation)
(#64) Expected indentation of 4 spaces (indentation)
(#74) Expected indentation of 4 spaces (indentation)
(#65) Expected indentation of 8 spaces (indentation)
(#67) Expected indentation of 8 spaces (indentation)
(#66) Expected indentation of 12 spaces (indentation)
(#69) Expected indentation of 8 spaces (indentation)
(#73) Expected indentation of 8 spaces (indentation)
(#70) Expected indentation of 12 spaces (indentation)
(#72) Expected indentation of 12 spaces (indentation)
(#71) Expected indentation of 16 spaces (indentation)
(#76) Expected indentation of 4 spaces (indentation)
(#87) Expected indentation of 4 spaces (indentation)
(#77) Expected indentation of 8 spaces (indentation)
(#80) Expected indentation of 8 spaces (indentation)
(#78) Expected indentation of 12 spaces (indentation)
(#79) Expected indentation of 12 spaces (indentation)
(#82) Expected indentation of 8 spaces (indentation)
(#86) Expected indentation of 8 spaces (indentation)
(#83) Expected indentation of 12 spaces (indentation)
(#85) Expected indentation of 12 spaces (indentation)
(#84) Expected indentation of 16 spaces (indentation)
(#94) Expected indentation of 4 spaces (indentation)
(#98) Expected indentation of 4 spaces (indentation)
(#100) Expected indentation of 4 spaces (indentation)
(#102) Expected indentation of 4 spaces (indentation)
(#101) Expected indentation of 8 spaces (indentation)
(#104) Expected indentation of 4 spaces (indentation)
(#106) Expected indentation of 4 spaces (indentation)
(#105) Expected indentation of 8 spaces (indentation)
(#111) Expected indentation of 4 spaces (indentation)
(#113) Expected indentation of 4 spaces (indentation)
(#112) Expected indentation of 8 spaces (indentation)
(#115) Expected indentation of 4 spaces (indentation)
(#117) Expected indentation of 4 spaces (indentation)
(#116) Expected indentation of 8 spaces (indentation)
(#123) Expected indentation of 4 spaces (indentation)
(#130) Expected indentation of 4 spaces (indentation)
(#124) Expected indentation of 8 spaces (indentation)
(#126) Expected indentation of 8 spaces (indentation)
(#129) Expected indentation of 8 spaces (indentation)
(#127) Expected indentation of 12 spaces (indentation)
(#128) Expected indentation of 12 spaces (indentation)
(#133) Expected indentation of 4 spaces (indentation)
(#138) Expected indentation of 4 spaces (indentation)
(#134) Expected indentation of 8 spaces (indentation)
(#135) Expected indentation of 8 spaces (indentation)
(#136) Expected indentation of 8 spaces (indentation)
(#137) Expected indentation of 8 spaces (indentation)
(#140) Expected indentation of 4 spaces (indentation)
(#144) Expected indentation of 4 spaces (indentation)
(#141) Expected indentation of 4 spaces (indentation)
(#142) Expected indentation of 4 spaces (indentation)
(#143) Expected indentation of 8 spaces (indentation)
(#146) Expected indentation of 4 spaces (indentation)
(#152) Expected indentation of 4 spaces (indentation)
(#147) Expected indentation of 4 spaces (indentation)
(#148) Expected indentation of 8 spaces (indentation)
(#149) Expected indentation of 8 spaces (indentation)
(#150) Expected indentation of 8 spaces (indentation)
(#151) Expected indentation of 8 spaces (indentation)
(#154) Expected indentation of 4 spaces (indentation)
(#158) Expected indentation of 4 spaces (indentation)
(#155) Expected indentation of 4 spaces (indentation)
(#156) Expected indentation of 8 spaces (indentation)
(#157) Expected indentation of 8 spaces (indentation)
(#160) Expected indentation of 4 spaces (indentation)
(#178) Expected indentation of 4 spaces (indentation)
(#161) Expected indentation of 8 spaces (indentation)
(#162) Expected indentation of 8 spaces (indentation)
(#164) Expected indentation of 8 spaces (indentation)
(#165) Expected indentation of 8 spaces (indentation)
(#167) Expected indentation of 8 spaces (indentation)
(#168) Expected indentation of 8 spaces (indentation)
(#169) Expected indentation of 8 spaces (indentation)
(#171) Expected indentation of 8 spaces (indentation)
(#172) Expected indentation of 8 spaces (indentation)
(#174) Expected indentation of 8 spaces (indentation)
(#177) Expected indentation of 8 spaces (indentation)
(#175) Expected indentation of 12 spaces (indentation)
(#176) Expected indentation of 12 spaces (indentation)
(#181) Expected indentation of 4 spaces (indentation)
(#215) Expected indentation of 4 spaces (indentation)
(#182) Expected indentation of 8 spaces (indentation)
(#183) Expected indentation of 8 spaces (indentation)
(#184) Expected indentation of 8 spaces (indentation)
(#185) Expected indentation of 8 spaces (indentation)
(#186) Expected indentation of 8 spaces (indentation)
(#187) Expected indentation of 8 spaces (indentation)
(#188) Expected indentation of 8 spaces (indentation)
(#190) Expected indentation of 8 spaces (indentation)
(#207) Expected indentation of 8 spaces (indentation)
(#191) Expected indentation of 12 spaces (indentation)
(#192) Expected indentation of 12 spaces (indentation)
(#193) Expected indentation of 12 spaces (indentation)
(#195) Expected indentation of 12 spaces (indentation)
(#196) Expected indentation of 12 spaces (indentation)
(#197) Expected indentation of 12 spaces (indentation)
(#198) Expected indentation of 12 spaces (indentation)
(#200) Expected indentation of 12 spaces (indentation)
(#201) Expected indentation of 12 spaces (indentation)
(#203) Expected indentation of 12 spaces (indentation)
(#204) Expected indentation of 12 spaces (indentation)
(#205) Expected indentation of 12 spaces (indentation)
(#206) Expected indentation of 12 spaces (indentation)
(#209) Expected indentation of 8 spaces (indentation)
(#214) Expected indentation of 8 spaces (indentation)
(#210) Expected indentation of 12 spaces (indentation)
(#211) Expected indentation of 12 spaces (indentation)
(#212) Expected indentation of 12 spaces (indentation)
(#213) Expected indentation of 12 spaces (indentation)
(#220) Expected indentation of 4 spaces (indentation)
(#221) Expected indentation of 4 spaces (indentation)
(#222) Expected indentation of 4 spaces (indentation)
(#224) Expected indentation of 4 spaces (indentation)
(#227) Expected indentation of 4 spaces (indentation)
(#225) Expected indentation of 8 spaces (indentation)
(#226) Expected indentation of 8 spaces (indentation)
public/question/type/matrix/stylesheets/less/dndui.less
(#91) Unexpected unit (length-zero-no-unit)
(#40) Expected newline after "," (selector-list-comma-newline-after)
(#87) Expected newline after "," (selector-list-comma-newline-after)
(#7) Expected indentation of 4 spaces (indentation)
(#8) Expected indentation of 4 spaces (indentation)
(#12) Expected indentation of 4 spaces (indentation)
(#13) Expected indentation of 4 spaces (indentation)
(#17) Expected indentation of 4 spaces (indentation)
(#21) Expected indentation of 4 spaces (indentation)
(#25) Expected indentation of 4 spaces (indentation)
(#29) Expected indentation of 4 spaces (indentation)
(#30) Expected indentation of 4 spaces (indentation)
(#31) Expected indentation of 4 spaces (indentation)
(#32) Expected indentation of 4 spaces (indentation)
(#36) Expected indentation of 4 spaces (indentation)
(#37) Expected indentation of 4 spaces (indentation)
(#41) Expected indentation of 4 spaces (indentation)
(#42) Expected indentation of 4 spaces (indentation)
(#43) Expected indentation of 4 spaces (indentation)
(#44) Expected indentation of 4 spaces (indentation)
(#48) Expected indentation of 4 spaces (indentation)
(#49) Expected indentation of 4 spaces (indentation)
(#50) Expected indentation of 4 spaces (indentation)
(#51) Expected indentation of 4 spaces (indentation)
(#52) Expected indentation of 4 spaces (indentation)
(#53) Expected indentation of 4 spaces (indentation)
(#54) Expected indentation of 4 spaces (indentation)
(#55) Expected indentation of 4 spaces (indentation)
(#56) Expected indentation of 4 spaces (indentation)
(#57) Expected indentation of 4 spaces (indentation)
(#61) Expected indentation of 4 spaces (indentation)
(#62) Expected indentation of 4 spaces (indentation)
(#66) Expected indentation of 4 spaces (indentation)
(#70) Expected indentation of 4 spaces (indentation)
(#76) Expected indentation of 4 spaces (indentation)
(#80) Expected indentation of 4 spaces (indentation)
(#84) Expected indentation of 4 spaces (indentation)
(#88) Expected indentation of 4 spaces (indentation)
(#89) Expected indentation of 4 spaces (indentation)
(#90) Expected indentation of 4 spaces (indentation)
(#91) Expected indentation of 4 spaces (indentation)
public/question/type/matrix/stylesheets/less/pix.less
(#3) Expected indentation of 4 spaces (indentation)
(#4) Expected indentation of 4 spaces (indentation)
(#5) Expected indentation of 4 spaces (indentation)
(#6) Expected indentation of 4 spaces (indentation)
(#7) Expected indentation of 4 spaces (indentation)
(#8) Expected indentation of 4 spaces (indentation)
public/question/type/matrix/stylesheets/less/variables.less
(#1) Unknown at-rule `@border-color:` (csstree/validator)

PHPDocs style problems

(24 errors, 0 warnings)

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

public/question/type/matrix/backup/moodle2/restore_qtype_matrix_plugin.class.php
(#43) Phpdocs for function restore_qtype_matrix_plugin::process_matrix has incomplete parameters list
(#76) Phpdocs for function restore_qtype_matrix_plugin::process_col has incomplete parameters list
(#116) Phpdocs for function restore_qtype_matrix_plugin::process_row has incomplete parameters list
(#156) Phpdocs for function restore_qtype_matrix_plugin::process_weight has incomplete parameters list
(#175) Phpdocs for function restore_qtype_matrix_plugin::recode_legacy_state_answer has incomplete parameters list
public/question/type/matrix/edit_matrix_form.php
(#64) Phpdocs for function qtype_matrix_edit_form::definition_inner has incomplete parameters list
(#394) Phpdocs for function qtype_matrix_edit_form::set_data has incomplete parameters list
(#452) Phpdocs for function qtype_matrix_edit_form::validation has incomplete parameters list
public/question/type/matrix/question.php
(#97) Phpdocs for function qtype_matrix_question::key has incomplete parameters list
(#152) Inline phpdocs tag {@link question_attempt} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#156) Inline phpdocs tag {@link get_num_variants()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#227) Inline phpdocs tag {@link question_attempt} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#227) Inline phpdocs tag {@link question_attempt} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#332) Inline phpdocs tag {@link grade_response()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#351) Inline phpdocs tag {@link question_state} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#355) Inline phpdocs tag {@link question_attempt_step::get_qt_data()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#378) Inline phpdocs tag {@link question_attempt_step::get_qt_data()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#472) Inline phpdocs tag {@link grade_response()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#496) Inline phpdocs tag {@link question_attempt_step::get_qt_data()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
(#546) Inline phpdocs tag {@link question_attempt::get_field_prefix()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}
public/question/type/matrix/questiontype.php
(#319) Phpdocs for function qtype_matrix::to_weigth_matrix has incomplete parameters list
(#404) Phpdocs for function qtype_matrix::import_from_xml has incomplete parameters list
(#538) Phpdocs for function qtype_matrix::export_to_xml has incomplete parameters list
(#157) Inline phpdocs tag {@link save_question()} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}

Update savepoints problems

(0 errors, 0 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]


Third party library modification problems

(0 errors, 0 warnings)

This section shows problems detected with the modification of third party libraries [More info]


grunt changes

(0 errors, 0 warnings)

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


shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 0 warnings)

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


Gherkin .feature problems

(0 errors, 0 warnings)

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