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

(102 errors, 431 warnings)

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

question/type/sc/backup/moodle2/backup_qtype_sc_plugin.class.php
(#50) Short array syntax must be used to define arrays
(#51) 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
(#63) Short array syntax must be used to define arrays
(#64) Short array syntax must be used to define arrays
(#75) Short array syntax must be used to define arrays
question/type/sc/backup/moodle2/restore_qtype_sc_plugin.class.php
(#39) Short array syntax must be used to define arrays
(#110) Short array syntax must be used to define arrays
(#148) Short array syntax must be used to define arrays
(#161) Short array syntax must be used to define arrays
(#163) Short array syntax must be used to define arrays
question/type/sc/bin/mig_multichoice_to_sc.php
(#70) Short array syntax must be used to define arrays
(#80) Short array syntax must be used to define arrays
(#88) Short array syntax must be used to define arrays
(#102) Short array syntax must be used to define arrays
(#122) Short array syntax must be used to define arrays
(#145) Short array syntax must be used to define arrays
(#154) Short array syntax must be used to define arrays
(#164) Short array syntax must be used to define arrays
(#280) Short array syntax must be used to define arrays
(#323) Short array syntax must be used to define arrays
(#340) Short array syntax must be used to define arrays
(#404) Short array syntax must be used to define arrays
(#419) Short array syntax must be used to define arrays
(#422) Short array syntax must be used to define arrays
question/type/sc/bin/mig_sc_to_multichoice.php
(#67) Short array syntax must be used to define arrays
(#77) Short array syntax must be used to define arrays
(#77) There should be a comma after the last array item in a multi-line array.
(#86) Short array syntax must be used to define arrays
(#100) Short array syntax must be used to define arrays
(#120) Short array syntax must be used to define arrays
(#143) Short array syntax must be used to define arrays
(#152) Short array syntax must be used to define arrays
(#155) Short array syntax must be used to define arrays
(#270) Short array syntax must be used to define arrays
(#275) Short array syntax must be used to define arrays
(#340) Short array syntax must be used to define arrays
(#399) Short array syntax must be used to define arrays
(#414) Short array syntax must be used to define arrays
(#417) Short array syntax must be used to define arrays
question/type/sc/classes/output/mobile.php
(#60) There should be a comma after the last array item in a multi-line array.
(#62) There should be a comma after the last array item in a multi-line array.
question/type/sc/classes/privacy/provider.php
(#45) There must not be a space before the colon in a return type declaration
question/type/sc/db/mobile.php
(#44) There should be a comma after the last array item in a multi-line array.
(#45) There should be a comma after the last array item in a multi-line array.
(#46) There should be a comma after the last array item in a multi-line array.
(#47) There should be a comma after the last array item in a multi-line array.
(#48) There should be a comma after the last array item in a multi-line array.
question/type/sc/db/upgradelib.php
(#51) Short array syntax must be used to define arrays
(#52) Short array syntax must be used to define arrays
(#53) Short array syntax must be used to define arrays
(#97) Short array syntax must be used to define arrays
(#103) Short array syntax must be used to define arrays
(#108) Short array syntax must be used to define arrays
(#113) Short array syntax must be used to define arrays
(#148) Short array syntax must be used to define arrays
(#171) Short array syntax must be used to define arrays
question/type/sc/edit_sc_form.php
(#11) Line 10 of the opening comment must start "// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the".
(#15) Line 14 of the opening comment must start "// along with Moodle. If not, see <https://www.gnu.org/licenses/>.".
(#31) "require_once" must be immediately followed by an open parenthesis
(#32) "require_once" must be immediately followed by an open parenthesis
(#33) "require_once" must be immediately followed by an open parenthesis
(#34) "require_once" must be immediately followed by an open parenthesis
(#83) Short array syntax must be used to define arrays
(#87) Short array syntax must be used to define arrays
(#87) Short array syntax must be used to define arrays
(#93) Short array syntax must be used to define arrays
(#95) Short array syntax must be used to define arrays
(#95) Short array syntax must be used to define arrays
(#113) Short array syntax must be used to define arrays
(#113) Short array syntax must be used to define arrays
(#121) Line exceeds 132 characters; contains 134 characters
(#135) Short array syntax must be used to define arrays
(#139) Short array syntax must be used to define arrays
(#143) Short array syntax must be used to define arrays
(#146) Short array syntax must be used to define arrays
(#152) Short array syntax must be used to define arrays
(#185) Short array syntax must be used to define arrays
(#195) Line exceeds 132 characters; contains 134 characters
(#200) Short array syntax must be used to define arrays
(#205) Line exceeds 132 characters; contains 136 characters
(#206) Short array syntax must be used to define arrays
(#237) Short array syntax must be used to define arrays
(#238) Short array syntax must be used to define arrays
(#250) Short array syntax must be used to define arrays
(#251) Short array syntax must be used to define arrays
(#259) Short array syntax must be used to define arrays
(#264) Short array syntax must be used to define arrays
(#277) Short array syntax must be used to define arrays
(#278) Short array syntax must be used to define arrays
(#293) Short array syntax must be used to define arrays
(#309) Short array syntax must be used to define arrays
(#430) Line exceeds 132 characters; contains 135 characters
(#433) Whitespace found at end of line
question/type/sc/grading/qtype_sc_grading.class.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
question/type/sc/lang/de/qtype_sc.php
(#54) The string key "mustsupplyvalidvalue" is not in the correct order, it should be before "mustsupplyvalue"
(#79) The string key "scoringmethod" is not in the correct order, it should be before "showscoringmethod_help"
(#91) Unexpected string end, it should be a line feed after a semicolon
(#91) File must end with a newline character
question/type/sc/lang/en/qtype_sc.php
(#54) The string key "mustsupplyvalidvalue" is not in the correct order, it should be before "mustsupplyvalue"
(#79) The string key "scoringmethod" is not in the correct order, it should be before "showscoringmethod_help"
(#91) The string key "numberchoicehaschanged" is not in the correct order, it should be before "warningreduceoptions"
question/type/sc/lib.php
(#48) Short array syntax must be used to define arrays
question/type/sc/question.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#80) Missing docblock for function validate_can_regrade_with_other_version
(#91) Missing docblock for function update_attempt_state_data_for_new_version
(#237) Short array syntax must be used to define arrays
(#280) Short array syntax must be used to define arrays
(#295) Short array syntax must be used to define arrays
(#336) Short array syntax must be used to define arrays
(#374) Short array syntax must be used to define arrays
(#387) Short array syntax must be used to define arrays
(#484) Short array syntax must be used to define arrays
question/type/sc/questiontype.php
(#122) Short array syntax must be used to define arrays
(#150) Short array syntax must be used to define arrays
(#153) Short array syntax must be used to define arrays
(#178) Short array syntax must be used to define arrays
(#208) Short array syntax must be used to define arrays
(#217) Short array syntax must be used to define arrays
(#242) Short array syntax must be used to define arrays
(#254) Short array syntax must be used to define arrays
(#276) Short array syntax must be used to define arrays
(#340) Short array syntax must be used to define arrays
(#379) Short array syntax must be used to define arrays
(#380) Short array syntax must be used to define arrays
(#436) Short array syntax must be used to define arrays
(#451) Short array syntax must be used to define arrays
(#491) Short array syntax must be used to define arrays
(#508) Short array syntax must be used to define arrays
(#579) Short array syntax must be used to define arrays
(#580) Short array syntax must be used to define arrays
(#581) Short array syntax must be used to define arrays
(#582) Short array syntax must be used to define arrays
(#583) Short array syntax must be used to define arrays
(#589) Short array syntax must be used to define arrays
(#591) Short array syntax must be used to define arrays
(#594) Short array syntax must be used to define arrays
(#597) Short array syntax must be used to define arrays
(#599) Short array syntax must be used to define arrays
(#602) Short array syntax must be used to define arrays
(#602) Short array syntax must be used to define arrays
(#612) Short array syntax must be used to define arrays
(#615) Short array syntax must be used to define arrays
(#618) Short array syntax must be used to define arrays
(#621) Short array syntax must be used to define arrays
(#623) Short array syntax must be used to define arrays
(#623) Short array syntax must be used to define arrays
question/type/sc/renderer.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#55) Short array syntax must be used to define arrays
(#61) Short array syntax must be used to define arrays
(#76) Short array syntax must be used to define arrays
(#78) Short array syntax must be used to define arrays
(#177) Short array syntax must be used to define arrays
(#230) Short array syntax must be used to define arrays
(#303) Short array syntax must be used to define arrays
(#423) Short array syntax must be used to define arrays
question/type/sc/settings.php
(#39) Short array syntax must be used to define arrays
(#41) There should be a comma after the last array item in a multi-line array.
question/type/sc/tests/helper.php
(#47) Short array syntax must be used to define arrays
(#85) Short array syntax must be used to define arrays
(#86) Short array syntax must be used to define arrays
(#93) There should be a comma after the last array item in a multi-line array.
(#95) Short array syntax must be used to define arrays
(#102) There should be a comma after the last array item in a multi-line array.
(#104) Short array syntax must be used to define arrays
(#111) There should be a comma after the last array item in a multi-line array.
(#112) There should be a comma after the last array item in a multi-line array.
(#114) Short array syntax must be used to define arrays
(#115) Short array syntax must be used to define arrays
(#122) There should be a comma after the last array item in a multi-line array.
(#124) Short array syntax must be used to define arrays
(#131) There should be a comma after the last array item in a multi-line array.
(#132) There should be a comma after the last array item in a multi-line array.
(#150) Short array syntax must be used to define arrays
(#153) There should be a comma after the last array item in a multi-line array.
(#155) Short array syntax must be used to define arrays
(#158) There should be a comma after the last array item in a multi-line array.
(#169) Short array syntax must be used to define arrays
(#171) There should be a comma after the last array item in a multi-line array.
(#173) Short array syntax must be used to define arrays
(#175) There should be a comma after the last array item in a multi-line array.
(#177) Short array syntax must be used to define arrays
(#179) There should be a comma after the last array item in a multi-line array.
(#181) Short array syntax must be used to define arrays
(#183) There should be a comma after the last array item in a multi-line array.
(#185) Short array syntax must be used to define arrays
(#187) There should be a comma after the last array item in a multi-line array.
(#189) Short array syntax must be used to define arrays
(#191) There should be a comma after the last array item in a multi-line array.
(#193) Short array syntax must be used to define arrays
(#194) Short array syntax must be used to define arrays
(#196) There should be a comma after the last array item in a multi-line array.
(#198) Short array syntax must be used to define arrays
(#200) There should be a comma after the last array item in a multi-line array.
(#241) Short array syntax must be used to define arrays
(#242) Short array syntax must be used to define arrays
(#249) There should be a comma after the last array item in a multi-line array.
(#251) Short array syntax must be used to define arrays
(#258) There should be a comma after the last array item in a multi-line array.
(#260) Short array syntax must be used to define arrays
(#267) There should be a comma after the last array item in a multi-line array.
(#268) There should be a comma after the last array item in a multi-line array.
(#270) Short array syntax must be used to define arrays
(#271) Short array syntax must be used to define arrays
(#278) There should be a comma after the last array item in a multi-line array.
(#280) Short array syntax must be used to define arrays
(#287) 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.
(#305) Short array syntax must be used to define arrays
(#308) There should be a comma after the last array item in a multi-line array.
(#310) Short array syntax must be used to define arrays
(#313) There should be a comma after the last array item in a multi-line array.
(#325) 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.
(#329) Short array syntax must be used to define arrays
(#331) There should be a comma after the last array item in a multi-line array.
(#333) Short array syntax must be used to define arrays
(#335) There should be a comma after the last array item in a multi-line array.
(#337) Short array syntax must be used to define arrays
(#339) There should be a comma after the last array item in a multi-line array.
(#341) Short array syntax must be used to define arrays
(#343) There should be a comma after the last array item in a multi-line array.
(#345) Short array syntax must be used to define arrays
(#347) There should be a comma after the last array item in a multi-line array.
(#349) Short array syntax must be used to define arrays
(#350) Short array syntax must be used to define arrays
(#352) There should be a comma after the last array item in a multi-line array.
(#354) Short array syntax must be used to define arrays
(#356) There should be a comma after the last array item in a multi-line array.
(#374) Short array syntax must be used to define arrays
(#377) There should be a comma after the last array item in a multi-line array.
(#379) Short array syntax must be used to define arrays
(#382) There should be a comma after the last array item in a multi-line array.
(#394) Short array syntax must be used to define arrays
(#396) There should be a comma after the last array item in a multi-line array.
(#398) Short array syntax must be used to define arrays
(#400) There should be a comma after the last array item in a multi-line array.
(#402) Short array syntax must be used to define arrays
(#404) There should be a comma after the last array item in a multi-line array.
(#406) Short array syntax must be used to define arrays
(#408) There should be a comma after the last array item in a multi-line array.
(#410) Short array syntax must be used to define arrays
(#412) There should be a comma after the last array item in a multi-line array.
(#414) Short array syntax must be used to define arrays
(#416) There should be a comma after the last array item in a multi-line array.
(#418) Short array syntax must be used to define arrays
(#420) There should be a comma after the last array item in a multi-line array.
(#422) Short array syntax must be used to define arrays
(#424) There should be a comma after the last array item in a multi-line array.
(#426) Short array syntax must be used to define arrays
(#428) There should be a comma after the last array item in a multi-line array.
(#430) Short array syntax must be used to define arrays
(#432) There should be a comma after the last array item in a multi-line array.
(#434) Short array syntax must be used to define arrays
(#435) Short array syntax must be used to define arrays
(#437) There should be a comma after the last array item in a multi-line array.
(#439) Short array syntax must be used to define arrays
(#441) There should be a comma after the last array item in a multi-line array.
(#460) Short array syntax must be used to define arrays
(#463) There should be a comma after the last array item in a multi-line array.
(#465) Short array syntax must be used to define arrays
(#468) There should be a comma after the last array item in a multi-line array.
(#479) Short array syntax must be used to define arrays
(#481) There should be a comma after the last array item in a multi-line array.
(#483) Short array syntax must be used to define arrays
(#485) There should be a comma after the last array item in a multi-line array.
(#487) Short array syntax must be used to define arrays
(#489) There should be a comma after the last array item in a multi-line array.
(#491) Short array syntax must be used to define arrays
(#493) There should be a comma after the last array item in a multi-line array.
(#495) Short array syntax must be used to define arrays
(#497) There should be a comma after the last array item in a multi-line array.
(#499) Short array syntax must be used to define arrays
(#501) There should be a comma after the last array item in a multi-line array.
(#503) Short array syntax must be used to define arrays
(#505) There should be a comma after the last array item in a multi-line array.
(#507) Short array syntax must be used to define arrays
(#509) There should be a comma after the last array item in a multi-line array.
(#511) Short array syntax must be used to define arrays
(#513) There should be a comma after the last array item in a multi-line array.
(#515) Short array syntax must be used to define arrays
(#517) There should be a comma after the last array item in a multi-line array.
(#519) Short array syntax must be used to define arrays
(#520) Short array syntax must be used to define arrays
(#522) There should be a comma after the last array item in a multi-line array.
(#524) Short array syntax must be used to define arrays
(#526) There should be a comma after the last array item in a multi-line array.
question/type/sc/tests/question_test.php
(#41) Unit test qtype_sc_question_test should be declared as final.
(#41) PHPUnit testcase name "qtype_sc_question_test" does not match file name "question_test"
(#41) PHPUnit class "qtype_sc_question_test" does not have any namespace. It is recommended to add it to the "qtype_sc" namespace, using more levels if needed, in order to match the code being tested
(#62) Short array syntax must be used to define arrays
(#63) Short array syntax must be used to define arrays
(#70) There should be a comma after the last array item in a multi-line array.
(#72) Short array syntax must be used to define arrays
(#79) There should be a comma after the last array item in a multi-line array.
(#81) Short array syntax must be used to define arrays
(#88) There should be a comma after the last array item in a multi-line array.
(#89) There should be a comma after the last array item in a multi-line array.
(#91) Short array syntax must be used to define arrays
(#92) 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.
(#100) Short array syntax must be used to define arrays
(#106) There should be a comma after the last array item in a multi-line array.
(#107) There should be a comma after the last array item in a multi-line array.
(#115) Test method test_get_expected_data() is missing any coverage information, own or at class level
(#115) Test method test_get_expected_data() is missing a return type
(#119) Short array syntax must be used to define arrays
(#131) Test method test_is_complete_response() is missing any coverage information, own or at class level
(#131) Test method test_is_complete_response() is missing a return type
(#135) Short array syntax must be used to define arrays
(#138) Short array syntax must be used to define arrays
(#142) Short array syntax must be used to define arrays
(#146) Short array syntax must be used to define arrays
(#150) Short array syntax must be used to define arrays
(#156) Short array syntax must be used to define arrays
(#167) Test method test_is_gradable_response_sconezero() is missing any coverage information, own or at class level
(#167) Test method test_is_gradable_response_sconezero() is missing a return type
(#172) Short array syntax must be used to define arrays
(#175) Short array syntax must be used to define arrays
(#179) Short array syntax must be used to define arrays
(#183) Short array syntax must be used to define arrays
(#187) Short array syntax must be used to define arrays
(#192) Short array syntax must be used to define arrays
(#203) Test method test_is_gradable_response_aprime() is missing any coverage information, own or at class level
(#203) Test method test_is_gradable_response_aprime() is missing a return type
(#208) Short array syntax must be used to define arrays
(#211) Short array syntax must be used to define arrays
(#215) Short array syntax must be used to define arrays
(#219) Short array syntax must be used to define arrays
(#223) Short array syntax must be used to define arrays
(#228) Short array syntax must be used to define arrays
(#239) Test method test_is_gradable_response_subpoints() is missing any coverage information, own or at class level
(#239) Test method test_is_gradable_response_subpoints() is missing a return type
(#244) Short array syntax must be used to define arrays
(#247) Short array syntax must be used to define arrays
(#251) Short array syntax must be used to define arrays
(#255) Short array syntax must be used to define arrays
(#259) Short array syntax must be used to define arrays
(#264) Short array syntax must be used to define arrays
(#275) Test method test_get_order() is missing any coverage information, own or at class level
(#275) Test method test_get_order() is missing a return type
(#283) Short array syntax must be used to define arrays
(#289) Test method test_is_same_response() is missing any coverage information, own or at class level
(#289) Test method test_is_same_response() is missing a return type
(#293) Short array syntax must be used to define arrays
(#294) Short array syntax must be used to define arrays
(#296) Short array syntax must be used to define arrays
(#297) Short array syntax must be used to define arrays
(#299) Short array syntax must be used to define arrays
(#300) Short array syntax must be used to define arrays
(#302) Short array syntax must be used to define arrays
(#303) Short array syntax must be used to define arrays
(#305) Short array syntax must be used to define arrays
(#306) Short array syntax must be used to define arrays
(#308) Short array syntax must be used to define arrays
(#309) Short array syntax must be used to define arrays
(#311) Short array syntax must be used to define arrays
(#312) Short array syntax must be used to define arrays
(#314) Short array syntax must be used to define arrays
(#315) Short array syntax must be used to define arrays
(#321) Test method test_grading() is missing any coverage information, own or at class level
(#321) Test method test_grading() is missing a return type
(#324) Short array syntax must be used to define arrays
(#331) Test method test_summarise_response() is missing any coverage information, own or at class level
(#331) Test method test_summarise_response() is missing a return type
(#334) Short array syntax must be used to define arrays
(#342) Test method test_classify_response() is missing any coverage information, own or at class level
(#342) Test method test_classify_response() is missing a return type
(#346) Short array syntax must be used to define arrays
(#347) Short array syntax must be used to define arrays
(#349) Short array syntax must be used to define arrays
(#350) Short array syntax must be used to define arrays
(#352) Short array syntax must be used to define arrays
(#353) Short array syntax must be used to define arrays
(#355) Short array syntax must be used to define arrays
(#356) Short array syntax must be used to define arrays
(#358) Short array syntax must be used to define arrays
(#359) Short array syntax must be used to define arrays
(#365) Test method test_make_html_inline() is missing any coverage information, own or at class level
(#365) Test method test_make_html_inline() is missing a return type
(#380) Test method test_get_hint() is missing any coverage information, own or at class level
(#380) Test method test_get_hint() is missing a return type
(#390) Test method test_compute_final_grade_sconezero() is missing any coverage information, own or at class level
(#390) Test method test_compute_final_grade_sconezero() is missing a return type
(#393) Short array syntax must be used to define arrays
(#394) Short array syntax must be used to define arrays
(#396) Short array syntax must be used to define arrays
(#397) Short array syntax must be used to define arrays
(#399) Short array syntax must be used to define arrays
(#400) Short array syntax must be used to define arrays
(#402) Short array syntax must be used to define arrays
(#403) Short array syntax must be used to define arrays
(#404) Short array syntax must be used to define arrays
(#406) Short array syntax must be used to define arrays
(#407) Short array syntax must be used to define arrays
(#408) Short array syntax must be used to define arrays
(#409) Short array syntax must be used to define arrays
(#411) Short array syntax must be used to define arrays
(#412) Short array syntax must be used to define arrays
(#413) Short array syntax must be used to define arrays
(#414) Short array syntax must be used to define arrays
(#415) Short array syntax must be used to define arrays
(#416) Short array syntax must be used to define arrays
(#423) Test method test_compute_final_grade_aprime() is missing any coverage information, own or at class level
(#423) Test method test_compute_final_grade_aprime() is missing a return type
(#427) Short array syntax must be used to define arrays
(#428) Short array syntax must be used to define arrays
(#430) Short array syntax must be used to define arrays
(#431) Short array syntax must be used to define arrays
(#432) Short array syntax must be used to define arrays
(#434) Short array syntax must be used to define arrays
(#435) 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
(#439) Short array syntax must be used to define arrays
(#440) Short array syntax must be used to define arrays
(#442) Short array syntax must be used to define arrays
(#443) Short array syntax must be used to define arrays
(#445) Short array syntax must be used to define arrays
(#446) Short array syntax must be used to define arrays
(#447) Short array syntax must be used to define arrays
(#449) Short array syntax must be used to define arrays
(#450) Short array syntax must be used to define arrays
(#451) Short array syntax must be used to define arrays
(#452) Short array syntax must be used to define arrays
(#459) Test method test_compute_final_grade_subpoints() is missing any coverage information, own or at class level
(#459) Test method test_compute_final_grade_subpoints() is missing a return type
(#463) Short array syntax must be used to define arrays
(#464) Short array syntax must be used to define arrays
(#466) Short array syntax must be used to define arrays
(#467) Short array syntax must be used to define arrays
(#468) Short array syntax must be used to define arrays
(#470) Short array syntax must be used to define arrays
(#471) Short array syntax must be used to define arrays
(#472) Short array syntax must be used to define arrays
(#473) Short array syntax must be used to define arrays
(#475) Short array syntax must be used to define arrays
(#476) Short array syntax must be used to define arrays
(#478) Short array syntax must be used to define arrays
(#479) Short array syntax must be used to define arrays
(#481) Short array syntax must be used to define arrays
(#482) Short array syntax must be used to define arrays
(#483) Short array syntax must be used to define arrays
(#485) Short array syntax must be used to define arrays
(#486) Short array syntax must be used to define arrays
(#487) Short array syntax must be used to define arrays
(#488) Short array syntax must be used to define arrays
(#495) Test method test_grade_response_sconezero() is missing any coverage information, own or at class level
(#495) Test method test_grade_response_sconezero() is missing a return type
(#499) Short array syntax must be used to define arrays
(#501) Short array syntax must be used to define arrays
(#503) Short array syntax must be used to define arrays
(#505) Short array syntax must be used to define arrays
(#511) Test method test_grade_response_aprime() is missing any coverage information, own or at class level
(#511) Test method test_grade_response_aprime() is missing a return type
(#516) Short array syntax must be used to define arrays
(#518) Short array syntax must be used to define arrays
(#520) Short array syntax must be used to define arrays
(#522) Short array syntax must be used to define arrays
(#524) Short array syntax must be used to define arrays
(#526) Short array syntax must be used to define arrays
(#528) Short array syntax must be used to define arrays
(#530) Short array syntax must be used to define arrays
(#536) Test method test_grade_response_subpoints() is missing any coverage information, own or at class level
(#536) Test method test_grade_response_subpoints() is missing a return type
(#541) Short array syntax must be used to define arrays
(#543) Short array syntax must be used to define arrays
(#545) Short array syntax must be used to define arrays
(#547) Short array syntax must be used to define arrays
(#549) Short array syntax must be used to define arrays
(#551) Short array syntax must be used to define arrays
(#553) Short array syntax must be used to define arrays
(#555) Short array syntax must be used to define arrays
question/type/sc/tests/questiontype_test.php
(#44) Unit test qtype_sc_test should be declared as final.
(#44) PHPUnit testcase name "qtype_sc_test" does not match file name "questiontype_test"
(#44) PHPUnit class "qtype_sc_test" does not have any namespace. It is recommended to add it to the "qtype_sc" namespace, using more levels if needed, in order to match the code being tested
(#49) The setUp() method in unit tests must always call to parent::setUp().
(#53) The tearDown() method in unit tests must always call to parent::tearDown().
(#57) Test method test_name() is missing any coverage information, own or at class level
(#57) Test method test_name() is missing a return type
(#97) Short array syntax must be used to define arrays
(#98) Short array syntax must be used to define arrays
(#105) There should be a comma after the last array item in a multi-line array.
(#107) Short array syntax must be used to define arrays
(#114) There should be a comma after the last array item in a multi-line array.
(#116) Short array syntax must be used to define arrays
(#123) There should be a comma after the last array item in a multi-line array.
(#124) There should be a comma after the last array item in a multi-line array.
(#132) Test method test_can_analyse_responses() is missing any coverage information, own or at class level
(#132) Test method test_can_analyse_responses() is missing a return type
(#139) Test method test_get_random_guess_score_sc() is missing any coverage information, own or at class level
(#139) Test method test_get_random_guess_score_sc() is missing a return type
(#147) Test method test_get_random_guess_score_sconzero() is missing any coverage information, own or at class level
(#147) Test method test_get_random_guess_score_sconzero() is missing a return type
(#156) Test method test_get_random_guess_score_aprime() is missing any coverage information, own or at class level
(#156) Test method test_get_random_guess_score_aprime() is missing a return type
(#165) Test method test_get_possible_responses() is missing any coverage information, own or at class level
(#165) Test method test_get_possible_responses() is missing a return type
(#168) Short array syntax must be used to define arrays
(#169) Short array syntax must be used to define arrays
(#180) Data provider method "get_question_saving_which" will need to be converted to static in future.
(#180) Data provider method "get_question_saving_which" must return an array, a Generator or an Iterable.
(#181) Short array syntax must be used to define arrays
(#181) Short array syntax must be used to define arrays
(#181) Short array syntax must be used to define arrays
(#189) Test method test_question_saving_question_one() is missing any coverage information, own or at class level
(#189) Test method test_question_saving_question_one() is missing a return type
(#195) Short array syntax must be used to define arrays
(#202) Short array syntax must be used to define arrays
(#206) Short array syntax must be used to define arrays
(#206) Line exceeds 132 characters; contains 145 characters
(#218) Short array syntax must be used to define arrays
(#226) Short array syntax must be used to define arrays
(#236) Test method test_get_question_options() is missing any coverage information, own or at class level
(#236) Test method test_get_question_options() is missing a return type
(#243) Short array syntax must be used to define arrays
question/type/sc/tests/walkthrough_test.php
(#43) Unit test qtype_sc_walkthrough_test should be declared as final.
(#43) PHPUnit testcase name "qtype_sc_walkthrough_test" does not match file name "walkthrough_test"
(#43) PHPUnit class "qtype_sc_walkthrough_test" does not have any namespace. It is recommended to add it to the "qtype_sc" namespace, using more levels if needed, in order to match the code being tested
(#66) Short array syntax must be used to define arrays
(#92) Short array syntax must be used to define arrays
(#93) Short array syntax must be used to define arrays
(#100) There should be a comma after the last array item in a multi-line array.
(#102) Short array syntax must be used to define arrays
(#109) There should be a comma after the last array item in a multi-line array.
(#111) Short array syntax must be used to define arrays
(#118) There should be a comma after the last array item in a multi-line array.
(#119) There should be a comma after the last array item in a multi-line array.
(#127) Test method test_deferredfeedback_feedback_sc() is missing any coverage information, own or at class level
(#127) Test method test_deferredfeedback_feedback_sc() is missing a return type
(#133) Short array syntax must be used to define arrays
question/type/sc/version.php
(#12) Whitespace found at end of line

Javascript coding style problems

(5 errors, 5 warnings)

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

question/type/sc/mobile/sc.js
(#4) Method 'componentInit' has a complexity of 21. Maximum allowed is 20. (complexity)
(#13) Missing semicolon. (semi)
(#24) Missing semicolon. (semi)
(#32) Expected space(s) after "if". (keyword-spacing)
(#43) Missing semicolon. (semi)
(#87) Do not nest ternary expressions. (no-nested-ternary)
(#93) This line has a length of 164. Maximum allowed is 132. (max-len)
(#93) Do not nest ternary expressions. (no-nested-ternary)
(#98) Do not nest ternary expressions. (no-nested-ternary)
(#128) Expected an assignment or function call and instead saw an expression. (no-unused-expressions)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(0 errors, 0 warnings)

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


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

(4 errors, 0 warnings)

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

question/type/sc/amd/build/question_behaviour.min.js
Uncommitted change detected.
question/type/sc/amd/build/question_behaviour.min.js.map
Uncommitted change detected.
question/type/sc/amd/build/question_edit.min.js
Uncommitted change detected.
question/type/sc/amd/build/question_edit.min.js.map
Uncommitted change detected.

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]