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

(1005 errors, 77 warnings)

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

public/question/type/sc/backup/moodle2/backup_qtype_sc_plugin.class.php
(#33) Opening brace must not be followed by a blank line
(#50) Opening parenthesis of a multi-line function call must be the last content on the line
(#50) Only one argument is allowed per line in a multi-line function call
(#50) Short array syntax must be used to define arrays
(#51) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#51) Short array syntax must be used to define arrays
(#51) Closing parenthesis of a multi-line function call must be on a line by itself
(#54) Opening parenthesis of a multi-line function call must be the last content on the line
(#54) Only one argument is allowed per line in a multi-line function call
(#54) Short array syntax must be used to define arrays
(#55) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#55) Short array syntax must be used to define arrays
(#55) Closing parenthesis of a multi-line function call must be on a line by itself
(#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
public/question/type/sc/backup/moodle2/restore_qtype_sc_plugin.class.php
(#33) Opening brace must not be followed by a blank line
(#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
(#169) Expected 9 spaces before asterisk; 5 found
(#170) Expected 9 spaces before asterisk; 5 found
(#171) Expected 9 spaces before asterisk; 5 found
(#172) Expected 9 spaces before asterisk; 5 found
(#173) Expected 9 spaces before asterisk; 5 found
(#174) Expected 9 spaces before asterisk; 5 found
(#175) Expected 9 spaces before asterisk; 5 found
(#176) Expected 9 spaces before asterisk; 5 found
(#180) Inline doc block comments are not allowed; use "// Comment." instead
public/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
(#87) Opening parenthesis of a multi-line function call must be the last content on the line
(#88) Multi-line function call not indented correctly; expected 4 spaces but found 15
(#88) Short array syntax must be used to define arrays
(#88) Closing parenthesis of a multi-line function call must be on a line by itself
(#92) Long list syntax is not allowed
(#102) Short array syntax must be used to define arrays
(#102) Blank line found at start of control structure
(#118) Long list syntax is not allowed
(#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
(#202) Blank line found at start of control structure
(#233) Blank line found at start of control structure
(#280) Short array syntax must be used to define arrays
(#320) Blank line found at end of control structure
(#323) Short array syntax must be used to define arrays
(#340) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#340) Short array syntax must be used to define arrays
(#340) Closing parenthesis of a multi-line function call must be on a line by itself
(#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
(#445) Blank line found at start of control structure
(#481) Blank line found at start of control structure
public/question/type/sc/bin/mig_sc_to_multichoice.php
(#67) Short array syntax must be used to define arrays
(#77) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#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.
(#78) Each line in a multi-line control structure must be indented at least once; expected at least 8 spaces, but found 4
(#78) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#85) Opening parenthesis of a multi-line function call must be the last content on the line
(#86) Multi-line function call not indented correctly; expected 4 spaces but found 15
(#86) Short array syntax must be used to define arrays
(#86) Closing parenthesis of a multi-line function call must be on a line by itself
(#90) Long list syntax is not allowed
(#100) Short array syntax must be used to define arrays
(#100) Blank line found at start of control structure
(#116) Long list syntax is not allowed
(#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
(#193) Blank line found at start of control structure
(#224) Blank line found at start of control structure
(#270) Short array syntax must be used to define arrays
(#275) Short array syntax must be used to define arrays
(#340) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#340) Short array syntax must be used to define arrays
(#340) Closing parenthesis of a multi-line function call must be on a line by itself
(#377) Blank line found at end of control structure
(#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
(#441) Blank line found at start of control structure
(#477) Blank line found at start of control structure
public/question/type/sc/classes/output/mobile.php
(#39) Opening brace must not be followed by a blank line
(#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.
public/question/type/sc/classes/privacy/provider.php
(#38) Opening brace must not be followed by a blank line
(#45) There must not be a space before the colon in a return type declaration
public/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.
public/question/type/sc/db/upgradelib.php
(#42) Long list syntax is not allowed
(#49) Blank line found at start of control structure
(#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
(#111) Space found before comma in argument list
(#111) Expected no space between "10" and the comma. Found: 1 space
(#113) Short array syntax must be used to define arrays
(#148) Short array syntax must be used to define arrays
(#156) Blank line found at start of control structure
(#171) Short array syntax must be used to define arrays
public/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
(#31) Space before opening parenthesis of function call prohibited
(#32) "require_once" must be immediately followed by an open parenthesis
(#32) Space before opening parenthesis of function call prohibited
(#33) "require_once" must be immediately followed by an open parenthesis
(#33) Space before opening parenthesis of function call prohibited
(#34) "require_once" must be immediately followed by an open parenthesis
(#34) Space before opening parenthesis of function call prohibited
(#41) Opening brace must not be followed by a blank line
(#83) Short array syntax must be used to define arrays
(#86) Opening parenthesis of a multi-line function call must be the last content on the line
(#86) Only one argument is allowed per line in a multi-line function call
(#86) Only one argument is allowed per line in a multi-line function call
(#87) Multi-line function call not indented correctly; expected 12 spaces but found 28
(#87) Short array syntax must be used to define arrays
(#87) Short array syntax must be used to define arrays
(#87) Closing parenthesis of a multi-line function call must be on a line by itself
(#93) Short array syntax must be used to define arrays
(#94) Opening parenthesis of a multi-line function call must be the last content on the line
(#94) Only one argument is allowed per line in a multi-line function call
(#94) Only one argument is allowed per line in a multi-line function call
(#95) Multi-line function call not indented correctly; expected 12 spaces but found 48
(#95) Short array syntax must be used to define arrays
(#95) Short array syntax must be used to define arrays
(#95) Closing parenthesis of a multi-line function call must be on a line by itself
(#103) Opening parenthesis of a multi-line function call must be the last content on the line
(#103) Only one argument is allowed per line in a multi-line function call
(#103) Only one argument is allowed per line in a multi-line function call
(#104) Multi-line function call not indented correctly; expected 16 spaces but found 52
(#104) Closing parenthesis of a multi-line function call must be on a line by itself
(#112) Opening parenthesis of a multi-line function call must be the last content on the line
(#112) Only one argument is allowed per line in a multi-line function call
(#112) Only one argument is allowed per line in a multi-line function call
(#113) Multi-line function call not indented correctly; expected 16 spaces but found 32
(#113) Short array syntax must be used to define arrays
(#113) Short array syntax must be used to define arrays
(#113) Closing parenthesis of a multi-line function call must be on a line by itself
(#121) Line exceeds 132 characters; contains 134 characters
(#131) Opening parenthesis of a multi-line function call must be the last content on the line
(#131) Only one argument is allowed per line in a multi-line function call
(#131) Only one argument is allowed per line in a multi-line function call
(#132) Multi-line function call not indented correctly; expected 12 spaces but found 28
(#132) Closing parenthesis of a multi-line function call must be on a line by itself
(#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
(#149) Opening parenthesis of a multi-line function call must be the last content on the line
(#149) Only one argument is allowed per line in a multi-line function call
(#149) Only one argument is allowed per line in a multi-line function call
(#150) Multi-line function call not indented correctly; expected 12 spaces but found 28
(#150) Closing parenthesis of a multi-line function call must be on a line by itself
(#152) Opening parenthesis of a multi-line function call must be the last content on the line
(#152) Only one argument is allowed per line in a multi-line function call
(#152) Only one argument is allowed per line in a multi-line function call
(#152) Only one argument is allowed per line in a multi-line function call
(#152) Short array syntax must be used to define arrays
(#153) Multi-line function call not indented correctly; expected 8 spaces but found 24
(#153) Closing parenthesis of a multi-line function call must be on a line by itself
(#165) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#166) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#185) Short array syntax must be used to define arrays
(#190) Opening parenthesis of a multi-line function call must be the last content on the line
(#191) Multi-line function call not indented correctly; expected 20 spaces but found 100
(#191) Only one argument is allowed per line in a multi-line function call
(#191) Closing parenthesis of a multi-line function call must be on a line by itself
(#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
(#222) Opening parenthesis of a multi-line function call must be the last content on the line
(#222) Only one argument is allowed per line in a multi-line function call
(#222) Only one argument is allowed per line in a multi-line function call
(#223) Multi-line function call not indented correctly; expected 8 spaces but found 24
(#223) Closing parenthesis of a multi-line function call must be on a line by itself
(#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
(#252) Opening parenthesis of a multi-line function call must be the last content on the line
(#252) Only one argument is allowed per line in a multi-line function call
(#252) Only one argument is allowed per line in a multi-line function call
(#252) Only one argument is allowed per line in a multi-line function call
(#253) Multi-line function call not indented correctly; expected 8 spaces but found 48
(#253) Only one argument is allowed per line in a multi-line function call
(#253) Closing parenthesis of a multi-line function call must be on a line by itself
(#254) Opening parenthesis of a multi-line function call must be the last content on the line
(#254) Only one argument is allowed per line in a multi-line function call
(#254) Only one argument is allowed per line in a multi-line function call
(#254) Only one argument is allowed per line in a multi-line function call
(#254) Only one argument is allowed per line in a multi-line function call
(#255) Multi-line function call not indented correctly; expected 8 spaces but found 48
(#255) Closing parenthesis of a multi-line function call must be on a line by itself
(#256) Opening parenthesis of a multi-line function call must be the last content on the line
(#256) Only one argument is allowed per line in a multi-line function call
(#256) Only one argument is allowed per line in a multi-line function call
(#256) Only one argument is allowed per line in a multi-line function call
(#257) Multi-line function call not indented correctly; expected 8 spaces but found 48
(#257) Only one argument is allowed per line in a multi-line function call
(#257) Closing parenthesis of a multi-line function call must be on a line by itself
(#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
(#308) Long list syntax is not allowed
(#309) Short array syntax must be used to define arrays
(#349) Opening parenthesis of a multi-line function call must be the last content on the line
(#349) Only one argument is allowed per line in a multi-line function call
(#349) Only one argument is allowed per line in a multi-line function call
(#350) Multi-line function call not indented correctly; expected 20 spaces but found 76
(#350) Only one argument is allowed per line in a multi-line function call
(#351) Multi-line function call not indented correctly; expected 16 spaces but found 76
(#351) Only one argument is allowed per line in a multi-line function call
(#351) Closing parenthesis of a multi-line function call must be on a line by itself
(#358) Opening parenthesis of a multi-line function call must be the last content on the line
(#358) Only one argument is allowed per line in a multi-line function call
(#358) Only one argument is allowed per line in a multi-line function call
(#359) Multi-line function call not indented correctly; expected 20 spaces but found 80
(#360) Multi-line function call not indented correctly; expected 20 spaces but found 80
(#361) Multi-line function call not indented correctly; expected 16 spaces but found 80
(#361) Only one argument is allowed per line in a multi-line function call
(#361) Closing parenthesis of a multi-line function call must be on a line by itself
(#409) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#410) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#430) Line exceeds 132 characters; contains 135 characters
(#433) Whitespace found at end of line
(#447) Long list syntax is not allowed
(#457) Long list syntax is not allowed
public/question/type/sc/grading/qtype_sc_grading.class.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#39) Opening brace must not be followed by a blank line
public/question/type/sc/grading/qtype_sc_grading_aprime.class.php
(#41) Opening brace must not be followed by a blank line
(#69) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#70) The closing parenthesis of a multi-line control structure must be on the line after the last expression
public/question/type/sc/grading/qtype_sc_grading_sconezero.class.php
(#41) Opening brace must not be followed by a blank line
public/question/type/sc/grading/qtype_sc_grading_subpoints.class.php
(#41) Opening brace must not be followed by a blank line
(#69) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#70) The closing parenthesis of a multi-line control structure must be on the line after the last expression
public/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) Expected 1 newline at end of file; 0 found
public/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"
public/question/type/sc/lib.php
(#48) Short array syntax must be used to define arrays
(#51) Expected at least 1 space before "."; 0 found
(#51) Expected at least 1 space after "."; 0 found
public/question/type/sc/question.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#38) Opening brace must not be followed by a blank line
(#80) Missing docblock for function validate_can_regrade_with_other_version
(#91) Missing docblock for function update_attempt_state_data_for_new_version
(#92) Multi-line function declaration not indented correctly; expected 8 spaces but found 20
(#92) Multi-line function declarations must define one parameter per line
(#92) The closing parenthesis of a multi-line function declaration must be on a new line
(#237) Short array syntax must be used to define arrays
(#280) Short array syntax must be used to define arrays
(#283) Long list syntax is not allowed
(#286) Blank line found at start of control structure
(#295) Short array syntax must be used to define arrays
(#298) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#298) Closing parenthesis of a multi-line function call must be on a line by itself
(#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
(#483) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#484) Short array syntax must be used to define arrays
(#484) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#484) Blank line found at start of control structure
(#491) Blank line found at end of control structure
public/question/type/sc/questiontype.php
(#46) Opening brace must not be followed by a blank line
(#71) Opening parenthesis of a multi-line function call must be the last content on the line
(#71) Only one argument is allowed per line in a multi-line function call
(#71) Only one argument is allowed per line in a multi-line function call
(#72) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#72) Only one argument is allowed per line in a multi-line function call
(#72) Only one argument is allowed per line in a multi-line function call
(#72) Closing parenthesis of a multi-line function call must be on a line by itself
(#92) Each class must be in a file by itself
(#92) Opening brace must not be followed by a blank line
(#122) Short array syntax must be used to define arrays
(#135) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#149) Opening parenthesis of a multi-line function call must be the last content on the line
(#150) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#150) Short array syntax must be used to define arrays
(#150) Closing parenthesis of a multi-line function call must be on a line by itself
(#152) Opening parenthesis of a multi-line function call must be the last content on the line
(#153) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#153) Short array syntax must be used to define arrays
(#154) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#154) Only one argument is allowed per line in a multi-line function call
(#154) Only one argument is allowed per line in a multi-line function call
(#154) Only one argument is allowed per line in a multi-line function call
(#154) Closing parenthesis of a multi-line function call must be on a line by itself
(#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
(#222) Blank line found at start of control structure
(#242) Short array syntax must be used to define arrays
(#254) Short array syntax must be used to define arrays
(#275) Opening parenthesis of a multi-line function call must be the last content on the line
(#276) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#276) Short array syntax must be used to define arrays
(#276) Only one argument is allowed per line in a multi-line function call
(#276) Closing parenthesis of a multi-line function call must be on a line by itself
(#309) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#310) Each line in a multi-line control structure must be indented at least once; expected at least 16 spaces, but found 12
(#310) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#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
(#394) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#395) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#401) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#402) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#408) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#409) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#436) Short array syntax must be used to define arrays
(#438) Blank line found at start of control structure
(#447) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#447) Only one argument is allowed per line in a multi-line function call
(#447) Closing parenthesis of a multi-line function call must be on a line by itself
(#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) Multi-line function call not indented correctly; expected 12 spaces but found 20
(#594) Only one argument is allowed per line in a multi-line function call
(#594) Short array syntax must be used to define arrays
(#594) Only one argument is allowed per line in a multi-line function call
(#594) Only one argument is allowed per line in a multi-line function call
(#594) Closing parenthesis of a multi-line function call must be on a line by itself
(#597) Multi-line function call not indented correctly; expected 12 spaces but found 20
(#597) Short array syntax must be used to define arrays
(#597) Closing parenthesis of a multi-line function call must be on a line by itself
(#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) Multi-line function call not indented correctly; expected 12 spaces but found 20
(#615) Only one argument is allowed per line in a multi-line function call
(#615) Short array syntax must be used to define arrays
(#615) Only one argument is allowed per line in a multi-line function call
(#615) Only one argument is allowed per line in a multi-line function call
(#615) Closing parenthesis of a multi-line function call must be on a line by itself
(#618) Multi-line function call not indented correctly; expected 12 spaces but found 20
(#618) Short array syntax must be used to define arrays
(#618) Closing parenthesis of a multi-line function call must be on a line by itself
(#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
public/question/type/sc/renderer.php
(#30) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#38) Opening brace must not be followed by a blank line
(#55) Short array syntax must be used to define arrays
(#60) Opening parenthesis of a multi-line function call must be the last content on the line
(#60) Only one argument is allowed per line in a multi-line function call
(#61) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#61) Short array syntax must be used to define arrays
(#61) Closing parenthesis of a multi-line function call must be on a line by itself
(#76) Short array syntax must be used to define arrays
(#78) Short array syntax must be used to define arrays
(#100) Blank line found at start of control structure
(#114) Multi-line function call not indented correctly; expected 20 spaces but found 24
(#114) Closing parenthesis of a multi-line function call must be on a line by itself
(#121) Multi-line function call not indented correctly; expected 16 spaces but found 28
(#121) Multi-line function call not indented correctly; expected 24 spaces but found 28
(#121) Closing parenthesis of a multi-line function call must be on a line by itself
(#121) Closing parenthesis of a multi-line function call must be on a line by itself
(#177) Short array syntax must be used to define arrays
(#208) Opening parenthesis of a multi-line function call must be the last content on the line
(#208) Only one argument is allowed per line in a multi-line function call
(#208) Only one argument is allowed per line in a multi-line function call
(#208) Only one argument is allowed per line in a multi-line function call
(#208) Only one argument is allowed per line in a multi-line function call
(#209) Closing parenthesis of a multi-line function call must be on a line by itself
(#216) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#218) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#221) Multi-line function call not indented correctly; expected 28 spaces but found 36
(#221) Opening parenthesis of a multi-line function call must be the last content on the line
(#229) Multi-line function call not indented correctly; expected 40 spaces but found 48
(#229) Multi-line function call not indented correctly; expected 44 spaces but found 48
(#229) Closing parenthesis of a multi-line function call must be on a line by itself
(#229) Closing parenthesis of a multi-line function call must be on a line by itself
(#230) Multi-line function call not indented correctly; expected 24 spaces but found 40
(#230) Multi-line function call not indented correctly; expected 36 spaces but found 40
(#230) Short array syntax must be used to define arrays
(#230) Closing parenthesis of a multi-line function call must be on a line by itself
(#230) Closing parenthesis of a multi-line function call must be on a line by itself
(#301) Opening parenthesis of a multi-line function call must be the last content on the line
(#303) Short array syntax must be used to define arrays
(#305) Multi-line function call not indented correctly; expected 12 spaces but found 20
(#305) Closing parenthesis of a multi-line function call must be on a line by itself
(#339) Long list syntax is not allowed
(#343) Only one argument is allowed per line in a multi-line function call
(#343) Only one argument is allowed per line in a multi-line function call
(#343) Only one argument is allowed per line in a multi-line function call
(#343) Only one argument is allowed per line in a multi-line function call
(#343) Only one argument is allowed per line in a multi-line function call
(#347) Only one argument is allowed per line in a multi-line function call
(#347) Only one argument is allowed per line in a multi-line function call
(#347) Only one argument is allowed per line in a multi-line function call
(#347) Only one argument is allowed per line in a multi-line function call
(#347) Only one argument is allowed per line in a multi-line function call
(#347) Only one argument is allowed per line in a multi-line function call
(#381) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#381) Multi-line function declarations must define one parameter per line
(#381) Multi-line function declarations must define one parameter per line
(#381) Multi-line function declarations must define one parameter per line
(#381) Multi-line function declarations must define one parameter per line
(#382) Multi-line function declarations must define one parameter per line
(#382) The closing parenthesis of a multi-line function declaration must be on a new line
(#423) Short array syntax must be used to define arrays
(#439) Multi-line function call not indented correctly; expected 20 spaces but found 28
(#439) Multi-line function call not indented correctly; expected 24 spaces but found 28
(#439) Only one argument is allowed per line in a multi-line function call
(#439) Only one argument is allowed per line in a multi-line function call
(#439) Closing parenthesis of a multi-line function call must be on a line by itself
(#439) Closing parenthesis of a multi-line function call must be on a line by itself
(#448) Multi-line function call not indented correctly; expected 20 spaces but found 28
(#448) Multi-line function call not indented correctly; expected 24 spaces but found 28
(#448) Only one argument is allowed per line in a multi-line function call
(#448) Only one argument is allowed per line in a multi-line function call
(#448) Closing parenthesis of a multi-line function call must be on a line by itself
(#448) Closing parenthesis of a multi-line function call must be on a line by itself
(#476) Expected 1 space after SWITCH keyword; 0 found
public/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.
(#44) Opening parenthesis of a multi-line function call must be the last content on the line
(#46) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#46) Only one argument is allowed per line in a multi-line function call
(#46) Only one argument is allowed per line in a multi-line function call
(#46) Closing parenthesis of a multi-line function call must be on a line by itself
(#49) Opening parenthesis of a multi-line function call must be the last content on the line
(#51) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#51) Only one argument is allowed per line in a multi-line function call
(#51) Closing parenthesis of a multi-line function call must be on a line by itself
(#54) Opening parenthesis of a multi-line function call must be the last content on the line
(#56) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#56) Only one argument is allowed per line in a multi-line function call
(#56) Closing parenthesis of a multi-line function call must be on a line by itself
public/question/type/sc/tests/helper.php
(#40) Opening brace must not be followed by a blank line
(#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.
public/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
(#41) Opening brace must not be followed by a blank line
(#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
(#125) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#125) Closing parenthesis of a multi-line function call must be on a line by itself
(#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) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#135) Short array syntax must be used to define arrays
(#135) Closing parenthesis of a multi-line function call must be on a line by itself
(#136) Expected 0 spaces before closing parenthesis; newline found
(#138) Short array syntax must be used to define arrays
(#139) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#139) Closing parenthesis of a multi-line function call must be on a line by itself
(#140) Expected 0 spaces before closing parenthesis; newline found
(#142) Short array syntax must be used to define arrays
(#143) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#143) Closing parenthesis of a multi-line function call must be on a line by itself
(#144) Expected 0 spaces before closing parenthesis; newline found
(#146) Short array syntax must be used to define arrays
(#147) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#147) Closing parenthesis of a multi-line function call must be on a line by itself
(#148) Expected 0 spaces before closing parenthesis; newline found
(#150) Short array syntax must be used to define arrays
(#152) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#152) Closing parenthesis of a multi-line function call must be on a line by itself
(#153) Expected 0 spaces before closing parenthesis; newline found
(#156) Short array syntax must be used to define arrays
(#160) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#160) Closing parenthesis of a multi-line function call must be on a line by itself
(#161) Expected 0 spaces before closing parenthesis; newline found
(#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) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#172) Short array syntax must be used to define arrays
(#172) Closing parenthesis of a multi-line function call must be on a line by itself
(#173) Expected 0 spaces before closing parenthesis; newline found
(#175) Short array syntax must be used to define arrays
(#176) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#176) Closing parenthesis of a multi-line function call must be on a line by itself
(#177) Expected 0 spaces before closing parenthesis; newline found
(#179) Short array syntax must be used to define arrays
(#180) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#180) Closing parenthesis of a multi-line function call must be on a line by itself
(#181) Expected 0 spaces before closing parenthesis; newline found
(#183) Short array syntax must be used to define arrays
(#184) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#184) Closing parenthesis of a multi-line function call must be on a line by itself
(#185) Expected 0 spaces before closing parenthesis; newline found
(#187) Short array syntax must be used to define arrays
(#189) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#189) Closing parenthesis of a multi-line function call must be on a line by itself
(#190) Expected 0 spaces before closing parenthesis; newline found
(#192) Short array syntax must be used to define arrays
(#196) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#196) Closing parenthesis of a multi-line function call must be on a line by itself
(#197) Expected 0 spaces before closing parenthesis; newline found
(#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) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#208) Short array syntax must be used to define arrays
(#208) Closing parenthesis of a multi-line function call must be on a line by itself
(#209) Expected 0 spaces before closing parenthesis; newline found
(#211) Short array syntax must be used to define arrays
(#212) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#212) Closing parenthesis of a multi-line function call must be on a line by itself
(#213) Expected 0 spaces before closing parenthesis; newline found
(#215) Short array syntax must be used to define arrays
(#216) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#216) Closing parenthesis of a multi-line function call must be on a line by itself
(#217) Expected 0 spaces before closing parenthesis; newline found
(#219) Short array syntax must be used to define arrays
(#220) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#220) Closing parenthesis of a multi-line function call must be on a line by itself
(#221) Expected 0 spaces before closing parenthesis; newline found
(#223) Short array syntax must be used to define arrays
(#225) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#225) Closing parenthesis of a multi-line function call must be on a line by itself
(#226) Expected 0 spaces before closing parenthesis; newline found
(#228) Short array syntax must be used to define arrays
(#232) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#232) Closing parenthesis of a multi-line function call must be on a line by itself
(#233) Expected 0 spaces before closing parenthesis; newline found
(#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) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#244) Short array syntax must be used to define arrays
(#244) Closing parenthesis of a multi-line function call must be on a line by itself
(#245) Expected 0 spaces before closing parenthesis; newline found
(#247) Short array syntax must be used to define arrays
(#248) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#248) Closing parenthesis of a multi-line function call must be on a line by itself
(#249) Expected 0 spaces before closing parenthesis; newline found
(#251) Short array syntax must be used to define arrays
(#252) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#252) Closing parenthesis of a multi-line function call must be on a line by itself
(#253) Expected 0 spaces before closing parenthesis; newline found
(#255) Short array syntax must be used to define arrays
(#256) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#256) Closing parenthesis of a multi-line function call must be on a line by itself
(#257) Expected 0 spaces before closing parenthesis; newline found
(#259) Short array syntax must be used to define arrays
(#261) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#261) Closing parenthesis of a multi-line function call must be on a line by itself
(#262) Expected 0 spaces before closing parenthesis; newline found
(#264) Short array syntax must be used to define arrays
(#268) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#268) Closing parenthesis of a multi-line function call must be on a line by itself
(#269) Expected 0 spaces before closing parenthesis; newline found
(#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
(#279) Space after opening parenthesis of function call prohibited
(#283) Space after opening parenthesis of function call prohibited
(#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) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#294) Short array syntax must be used to define arrays
(#294) Closing parenthesis of a multi-line function call must be on a line by itself
(#296) Short array syntax must be used to define arrays
(#297) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#297) Short array syntax must be used to define arrays
(#297) Closing parenthesis of a multi-line function call must be on a line by itself
(#299) Short array syntax must be used to define arrays
(#300) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#300) Short array syntax must be used to define arrays
(#300) Closing parenthesis of a multi-line function call must be on a line by itself
(#302) Short array syntax must be used to define arrays
(#303) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#303) Short array syntax must be used to define arrays
(#303) Closing parenthesis of a multi-line function call must be on a line by itself
(#305) Short array syntax must be used to define arrays
(#306) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#306) Short array syntax must be used to define arrays
(#306) Closing parenthesis of a multi-line function call must be on a line by itself
(#308) Short array syntax must be used to define arrays
(#309) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#309) Short array syntax must be used to define arrays
(#309) Closing parenthesis of a multi-line function call must be on a line by itself
(#311) Short array syntax must be used to define arrays
(#312) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#312) Short array syntax must be used to define arrays
(#312) Closing parenthesis of a multi-line function call must be on a line by itself
(#314) Short array syntax must be used to define arrays
(#315) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#315) Short array syntax must be used to define arrays
(#315) Closing parenthesis of a multi-line function call must be on a line by itself
(#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) Opening parenthesis of a multi-line function call must be the last content on the line
(#324) Short array syntax must be used to define arrays
(#325) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#325) Closing parenthesis of a multi-line function call must be on a line by itself
(#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) Opening parenthesis of a multi-line function call must be the last content on the line
(#334) Short array syntax must be used to define arrays
(#335) Closing parenthesis of a multi-line function call must be on a line by itself
(#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) Opening parenthesis of a multi-line function call must be the last content on the line
(#346) Short array syntax must be used to define arrays
(#347) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#347) Short array syntax must be used to define arrays
(#347) Closing parenthesis of a multi-line function call must be on a line by itself
(#349) Opening parenthesis of a multi-line function call must be the last content on the line
(#349) Short array syntax must be used to define arrays
(#350) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#350) Short array syntax must be used to define arrays
(#350) Closing parenthesis of a multi-line function call must be on a line by itself
(#352) Opening parenthesis of a multi-line function call must be the last content on the line
(#352) Short array syntax must be used to define arrays
(#353) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#353) Short array syntax must be used to define arrays
(#353) Closing parenthesis of a multi-line function call must be on a line by itself
(#355) Opening parenthesis of a multi-line function call must be the last content on the line
(#355) Short array syntax must be used to define arrays
(#356) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#356) Short array syntax must be used to define arrays
(#356) Closing parenthesis of a multi-line function call must be on a line by itself
(#358) Opening parenthesis of a multi-line function call must be the last content on the line
(#358) Short array syntax must be used to define arrays
(#359) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#359) Short array syntax must be used to define arrays
(#359) Closing parenthesis of a multi-line function call must be on a line by itself
(#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
(#369) Opening parenthesis of a multi-line function call must be the last content on the line
(#370) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#370) Closing parenthesis of a multi-line function call must be on a line by itself
(#371) Opening parenthesis of a multi-line function call must be the last content on the line
(#372) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#372) Closing parenthesis of a multi-line function call must be on a line by itself
(#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) Opening parenthesis of a multi-line function call must be the last content on the line
(#393) Short array syntax must be used to define arrays
(#394) Short array syntax must be used to define arrays
(#395) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#395) Closing parenthesis of a multi-line function call must be on a line by itself
(#396) Opening parenthesis of a multi-line function call must be the last content on the line
(#396) Short array syntax must be used to define arrays
(#397) Short array syntax must be used to define arrays
(#398) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#398) Closing parenthesis of a multi-line function call must be on a line by itself
(#399) Opening parenthesis of a multi-line function call must be the last content on the line
(#399) Short array syntax must be used to define arrays
(#400) Short array syntax must be used to define arrays
(#401) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#401) Closing parenthesis of a multi-line function call must be on a line by itself
(#402) Opening parenthesis of a multi-line function call must be the last content on the line
(#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
(#405) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#405) Closing parenthesis of a multi-line function call must be on a line by itself
(#406) Opening parenthesis of a multi-line function call must be the last content on the line
(#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
(#410) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#410) Closing parenthesis of a multi-line function call must be on a line by itself
(#411) Opening parenthesis of a multi-line function call must be the last content on the line
(#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
(#417) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#417) Closing parenthesis of a multi-line function call must be on a line by itself
(#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) Opening parenthesis of a multi-line function call must be the last content on the line
(#427) Short array syntax must be used to define arrays
(#428) Short array syntax must be used to define arrays
(#429) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#429) Closing parenthesis of a multi-line function call must be on a line by itself
(#430) Opening parenthesis of a multi-line function call must be the last content on the line
(#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
(#433) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#433) Closing parenthesis of a multi-line function call must be on a line by itself
(#434) Opening parenthesis of a multi-line function call must be the last content on the line
(#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
(#438) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#438) Closing parenthesis of a multi-line function call must be on a line by itself
(#439) Opening parenthesis of a multi-line function call must be the last content on the line
(#439) Short array syntax must be used to define arrays
(#440) Short array syntax must be used to define arrays
(#441) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#441) Closing parenthesis of a multi-line function call must be on a line by itself
(#442) Opening parenthesis of a multi-line function call must be the last content on the line
(#442) Short array syntax must be used to define arrays
(#443) Short array syntax must be used to define arrays
(#444) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#444) Closing parenthesis of a multi-line function call must be on a line by itself
(#445) Opening parenthesis of a multi-line function call must be the last content on the line
(#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
(#448) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#448) Closing parenthesis of a multi-line function call must be on a line by itself
(#449) Opening parenthesis of a multi-line function call must be the last content on the line
(#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
(#453) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#453) Closing parenthesis of a multi-line function call must be on a line by itself
(#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) Opening parenthesis of a multi-line function call must be the last content on the line
(#463) Short array syntax must be used to define arrays
(#464) Short array syntax must be used to define arrays
(#465) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#465) Closing parenthesis of a multi-line function call must be on a line by itself
(#466) Opening parenthesis of a multi-line function call must be the last content on the line
(#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
(#469) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#469) Closing parenthesis of a multi-line function call must be on a line by itself
(#470) Opening parenthesis of a multi-line function call must be the last content on the line
(#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
(#474) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#474) Closing parenthesis of a multi-line function call must be on a line by itself
(#475) Opening parenthesis of a multi-line function call must be the last content on the line
(#475) Short array syntax must be used to define arrays
(#476) Short array syntax must be used to define arrays
(#477) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#477) Closing parenthesis of a multi-line function call must be on a line by itself
(#478) Opening parenthesis of a multi-line function call must be the last content on the line
(#478) Short array syntax must be used to define arrays
(#479) Short array syntax must be used to define arrays
(#480) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#480) Closing parenthesis of a multi-line function call must be on a line by itself
(#481) Opening parenthesis of a multi-line function call must be the last content on the line
(#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
(#484) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#484) Closing parenthesis of a multi-line function call must be on a line by itself
(#485) Opening parenthesis of a multi-line function call must be the last content on the line
(#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
(#489) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#489) Closing parenthesis of a multi-line function call must be on a line by itself
(#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) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#499) Only one argument is allowed per line in a multi-line function call
(#499) Short array syntax must be used to define arrays
(#499) Closing parenthesis of a multi-line function call must be on a line by itself
(#501) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#501) Only one argument is allowed per line in a multi-line function call
(#501) Short array syntax must be used to define arrays
(#501) Closing parenthesis of a multi-line function call must be on a line by itself
(#503) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#503) Only one argument is allowed per line in a multi-line function call
(#503) Short array syntax must be used to define arrays
(#503) Closing parenthesis of a multi-line function call must be on a line by itself
(#505) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#505) Only one argument is allowed per line in a multi-line function call
(#505) Short array syntax must be used to define arrays
(#505) Closing parenthesis of a multi-line function call must be on a line by itself
(#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) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#516) Only one argument is allowed per line in a multi-line function call
(#516) Short array syntax must be used to define arrays
(#516) Closing parenthesis of a multi-line function call must be on a line by itself
(#518) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#518) Only one argument is allowed per line in a multi-line function call
(#518) Short array syntax must be used to define arrays
(#518) Closing parenthesis of a multi-line function call must be on a line by itself
(#520) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#520) Only one argument is allowed per line in a multi-line function call
(#520) Short array syntax must be used to define arrays
(#520) Closing parenthesis of a multi-line function call must be on a line by itself
(#522) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#522) Only one argument is allowed per line in a multi-line function call
(#522) Short array syntax must be used to define arrays
(#522) Closing parenthesis of a multi-line function call must be on a line by itself
(#524) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#524) Only one argument is allowed per line in a multi-line function call
(#524) Short array syntax must be used to define arrays
(#524) Closing parenthesis of a multi-line function call must be on a line by itself
(#526) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#526) Only one argument is allowed per line in a multi-line function call
(#526) Short array syntax must be used to define arrays
(#526) Closing parenthesis of a multi-line function call must be on a line by itself
(#528) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#528) Only one argument is allowed per line in a multi-line function call
(#528) Short array syntax must be used to define arrays
(#528) Closing parenthesis of a multi-line function call must be on a line by itself
(#530) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#530) Only one argument is allowed per line in a multi-line function call
(#530) Short array syntax must be used to define arrays
(#530) Closing parenthesis of a multi-line function call must be on a line by itself
(#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) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#541) Only one argument is allowed per line in a multi-line function call
(#541) Short array syntax must be used to define arrays
(#541) Closing parenthesis of a multi-line function call must be on a line by itself
(#543) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#543) Only one argument is allowed per line in a multi-line function call
(#543) Short array syntax must be used to define arrays
(#543) Closing parenthesis of a multi-line function call must be on a line by itself
(#545) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#545) Only one argument is allowed per line in a multi-line function call
(#545) Short array syntax must be used to define arrays
(#545) Closing parenthesis of a multi-line function call must be on a line by itself
(#547) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#547) Only one argument is allowed per line in a multi-line function call
(#547) Short array syntax must be used to define arrays
(#547) Closing parenthesis of a multi-line function call must be on a line by itself
(#549) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#549) Only one argument is allowed per line in a multi-line function call
(#549) Short array syntax must be used to define arrays
(#549) Closing parenthesis of a multi-line function call must be on a line by itself
(#551) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#551) Only one argument is allowed per line in a multi-line function call
(#551) Short array syntax must be used to define arrays
(#551) Closing parenthesis of a multi-line function call must be on a line by itself
(#553) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#553) Only one argument is allowed per line in a multi-line function call
(#553) Short array syntax must be used to define arrays
(#553) Closing parenthesis of a multi-line function call must be on a line by itself
(#555) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#555) Only one argument is allowed per line in a multi-line function call
(#555) Short array syntax must be used to define arrays
(#555) Closing parenthesis of a multi-line function call must be on a line by itself
public/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
(#44) Opening brace must not be followed by a blank line
(#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) Opening parenthesis of a multi-line function call must be the last content on the line
(#168) Short array syntax must be used to define arrays
(#169) Short array syntax must be used to define arrays
(#174) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#174) Closing parenthesis of a multi-line function call must be on a line by itself
(#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
public/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
(#43) Opening brace must not be followed by a blank line
(#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
(#142) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#142) Closing parenthesis of a multi-line function call must be on a line by itself
public/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]

public/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]

public/question/type/sc/amd/build/question_behaviour.min.js
Uncommitted change detected.
public/question/type/sc/amd/build/question_behaviour.min.js.map
Uncommitted change detected.
public/question/type/sc/amd/build/question_edit.min.js
Uncommitted change detected.
public/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]