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

(330 errors, 0 warnings)

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

course/format/multitopic/_course_changenumsections.php
(#32) Expected at least 1 space before "."; 0 found
(#32) Expected at least 1 space after "."; 0 found
(#33) Expected at least 1 space before "."; 0 found
(#33) Expected at least 1 space after "."; 0 found
(#34) Expected at least 1 space before "."; 0 found
(#34) Expected at least 1 space after "."; 0 found
(#108) Blank line found at end of control structure
(#116) Expected no spaces between $i and the increment operator; 1 found
course/format/multitopic/_course_editsection.php
(#59) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#60) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#93) Opening parenthesis of a multi-line function call must be the last content on the line
(#93) Only one argument is allowed per line in a multi-line function call
(#94) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#94) Closing parenthesis of a multi-line function call must be on a line by itself
(#151) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#152) The closing parenthesis of a multi-line control structure must be on the line after the last expression
course/format/multitopic/_course_view.php
(#33) Blank line found at start of control structure
(#130) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#131) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#259) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#262) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#303) Opening parenthesis of a multi-line function call must be the last content on the line
(#303) Only one argument is allowed per line in a multi-line function call
(#304) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#304) Closing parenthesis of a multi-line function call must be on a line by itself
(#312) Blank line found at start of control structure
(#368) Blank line found at end of control structure
course/format/multitopic/backup/moodle2/restore_format_multitopic_plugin.class.php
(#38) Opening brace must not be followed by a blank line
(#58) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#93) Function closing brace must go on the next line following the body; found 1 blank lines before brace
course/format/multitopic/classes/coursecontentheaderfooter.php
(#52) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#54) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#79) Opening parenthesis of a multi-line function call must be the last content on the line
(#79) Only one argument is allowed per line in a multi-line function call
(#80) Multi-line function call not indented correctly; expected 12 spaces but found 36
(#80) Closing parenthesis of a multi-line function call must be on a line by itself
(#96) The closing brace for the class must go on the next line after the body
course/format/multitopic/classes/courseformat/stateactions.php
(#21) Expected at least 1 space before "."; 0 found
(#21) Expected at least 1 space after "."; 0 found
(#39) Opening brace must not be followed by a blank line
(#83) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#86) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#161) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#164) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#234) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#237) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#304) The closing brace for the class must go on the next line after the body
course/format/multitopic/classes/courseheader.php
(#75) Opening parenthesis of a multi-line function call must be the last content on the line
(#75) Space found before comma in argument list
(#75) Expected no space between "'/pluginfile.php'" and the comma. Found: 1 space
(#76) Multi-line function call not indented correctly; expected 20 spaces but found 24
(#77) Multi-line function call not indented correctly; expected 16 spaces but found 24
(#77) Closing parenthesis of a multi-line function call must be on a line by itself
(#86) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#117) The closing brace for the class must go on the next line after the body
course/format/multitopic/classes/global_navigation_wrapper.php
(#114) Parentheses must be used when instantiating a new class
(#157) Long list syntax is not allowed
(#164) Opening parenthesis of a multi-line function call must be the last content on the line
(#165) Multi-line function call not indented correctly; expected 8 spaces but found 29
(#165) Only one argument is allowed per line in a multi-line function call
(#165) Closing parenthesis of a multi-line function call must be on a line by itself
(#174) Blank line found at start of control structure
(#186) Boolean operators between conditions must be at the beginning or end of the line, but not both
(#186) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#190) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#210) Opening parenthesis of a multi-line function call must be the last content on the line
(#210) Only one argument is allowed per line in a multi-line function call
(#210) Only one argument is allowed per line in a multi-line function call
(#211) Only one argument is allowed per line in a multi-line function call
(#213) Multi-line function call not indented correctly; expected 20 spaces but found 97
(#213) Only one argument is allowed per line in a multi-line function call
(#213) Closing parenthesis of a multi-line function call must be on a line by itself
(#226) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#228) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#235) Blank line found at end of control structure
(#250) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#250) Multi-line function declarations must define one parameter per line
(#250) Multi-line function declarations must define one parameter per line
(#251) Multi-line function declaration not indented correctly; expected 8 spaces but found 48
(#251) The closing parenthesis of a multi-line function declaration must be on a new line
(#319) The closing brace for the class must go on the next line after the body
course/format/multitopic/classes/output/courseformat/content.php
(#41) Opening brace must not be followed by a blank line
(#72) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#77) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#101) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#104) Each line in a multi-line control structure must be indented at least once; expected at least 12 spaces, but found 8
(#104) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#123) Opening parenthesis of a multi-line function call must be the last content on the line
(#124) Multi-line function call not indented correctly; expected 8 spaces but found 28
(#124) Only one argument is allowed per line in a multi-line function call
(#124) Closing parenthesis of a multi-line function call must be on a line by itself
(#125) Opening parenthesis of a multi-line function call must be the last content on the line
(#126) Multi-line function call not indented correctly; expected 8 spaces but found 37
(#126) Only one argument is allowed per line in a multi-line function call
(#126) Closing parenthesis of a multi-line function call must be on a line by itself
(#140) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#141) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#141) Blank line found at start of control structure
(#150) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#155) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#155) Blank line found at start of control structure
(#158) Opening parenthesis of a multi-line function call must be the last content on the line
(#158) Only one argument is allowed per line in a multi-line function call
(#166) Multi-line function call not indented correctly; expected 20 spaces but found 24
(#166) Closing parenthesis of a multi-line function call must be on a line by itself
(#180) Blank line found at end of control structure
(#187) Blank line found at end of control structure
(#191) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#192) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#192) Blank line found at start of control structure
(#197) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#197) Opening parenthesis of a multi-line function call must be the last content on the line
(#198) Multi-line function call not indented correctly; expected 16 spaces but found 36
(#198) Closing parenthesis of a multi-line function call must be on a line by itself
(#200) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#200) Blank line found at start of control structure
(#223) Opening parenthesis of a multi-line function call must be the last content on the line
(#226) Multi-line function call not indented correctly; expected 20 spaces but found 24
(#226) Closing parenthesis of a multi-line function call must be on a line by itself
(#235) Blank line found at end of control structure
(#237) Blank line found at end of control structure
(#239) Blank line found at end of control structure
(#243) Opening parenthesis of a multi-line function call must be the last content on the line
(#245) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#245) Closing parenthesis of a multi-line function call must be on a line by itself
(#272) Expected 1 space between the comma and "// ADDED.". Found: 49 spaces
(#295) Opening parenthesis of a multi-line function call must be the last content on the line
(#296) Multi-line function call not indented correctly; expected 8 spaces but found 92
(#296) Closing parenthesis of a multi-line function call must be on a line by itself
(#328) Opening parenthesis of a multi-line function call must be the last content on the line
(#328) Only one argument is allowed per line in a multi-line function call
(#328) Only one argument is allowed per line in a multi-line function call
(#329) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#329) Closing parenthesis of a multi-line function call must be on a line by itself
(#378) The closing brace for the class must go on the next line after the body
course/format/multitopic/classes/output/courseformat/content/addsection.php
(#38) Opening brace must not be followed by a blank line
(#101) Expected 1 space between the comma and "// CHANGED.". Found: 31 spaces
course/format/multitopic/classes/output/courseformat/content/bulkedittools.php
(#35) Opening brace must not be followed by a blank line
(#94) The closing brace for the class must go on the next line after the body
course/format/multitopic/classes/output/courseformat/content/section.php
(#39) Opening brace must not be followed by a blank line
(#217) The closing brace for the class must go on the next line after the body
course/format/multitopic/classes/output/courseformat/content/section/controlmenu.php
(#41) Opening brace must not be followed by a blank line
(#82) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#84) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#84) Blank line found at start of control structure
(#103) Expected 1 space between the comma and "// CHANGED.". Found: 7 spaces
(#121) Expected 1 space between the comma and "// CHANGED.". Found: 5 spaces
(#160) Blank line found at end of control structure
(#161) Blank line found at start of control structure
(#218) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#219) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#233) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#234) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#246) Blank line found at end of control structure
(#248) Blank line found at end of control structure
(#273) Opening parenthesis of a multi-line function call must be the last content on the line
(#274) Multi-line function call not indented correctly; expected 12 spaces but found 20
(#274) Closing parenthesis of a multi-line function call must be on a line by itself
(#308) Expected 1 space after comma in argument list; 2 found
(#308) Expected 1 space between the comma and "$section". Found: 2 spaces
(#329) Expected 1 space after comma in argument list; 2 found
(#329) Expected 1 space between the comma and "$section". Found: 2 spaces
(#351) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#353) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#359) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#361) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#376) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#378) The closing parenthesis of a multi-line control structure must be on the line after the last expression
course/format/multitopic/classes/output/courseformat/content/section/header.php
(#38) Opening brace must not be followed by a blank line
course/format/multitopic/classes/output/courseformat/content/section/summary.php
(#41) Opening brace must not be followed by a blank line
(#90) Opening parenthesis of a multi-line function call must be the last content on the line
(#90) Space found before comma in argument list
(#90) Expected no space between "'/pluginfile.php'" and the comma. Found: 1 space
(#91) Multi-line function call not indented correctly; expected 16 spaces but found 36
(#91) 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
(#113) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#113) Only one argument is allowed per line in a multi-line function call
(#113) Only one argument is allowed per line in a multi-line function call
(#113) Only one argument is allowed per line in a multi-line function call
(#113) Closing parenthesis of a multi-line function call must be on a line by itself
(#121) The closing brace for the class must go on the next line after the body
course/format/multitopic/classes/output/courseformat/content/sectionnavigation.php
(#40) Opening brace must not be followed by a blank line
course/format/multitopic/classes/output/courseformat/state/course.php
(#34) Opening brace must not be followed by a blank line
course/format/multitopic/classes/output/courseformat/state/section.php
(#19) Header blocks must not contain blank lines
(#33) Opening brace must not be followed by a blank line
(#89) The closing brace for the class must go on the next line after the body
course/format/multitopic/classes/output/renderer.php
(#48) Opening brace must not be followed by a blank line
(#63) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#66) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#72) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#134) Blank line found at start of control structure
(#145) Blank line found at end of control structure
(#207) Multi-line function declaration not indented correctly; expected 8 spaces but found 28
(#207) The closing parenthesis of a multi-line function declaration must be on a new line
(#212) The closing brace for the class must go on the next line after the body
course/format/multitopic/classes/privacy/provider.php
(#37) Opening brace must not be followed by a blank line
course/format/multitopic/classes/section_info_extra.php
(#29) Opening brace must not be followed by a blank line
(#101) The closing brace for the class must go on the next line after the body
course/format/multitopic/db/upgrade.php
(#35) Blank line found at start of control structure
(#47) Blank line found at start of control structure
(#68) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#71) The closing parenthesis of a multi-line control structure must be on the line after the last expression
course/format/multitopic/lib.php
(#66) Opening brace must not be followed by a blank line
(#180) Blank line found at start of control structure
(#183) Blank line found at end of control structure
(#184) Blank line found at start of control structure
(#204) Opening parenthesis of a multi-line function call must be the last content on the line
(#205) Multi-line function call not indented correctly; expected 12 spaces but found 44
(#205) Only one argument is allowed per line in a multi-line function call
(#205) Closing parenthesis of a multi-line function call must be on a line by itself
(#208) Opening parenthesis of a multi-line function call must be the last content on the line
(#209) Multi-line function call not indented correctly; expected 12 spaces but found 40
(#209) 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
(#211) Blank line found at start of control structure
(#225) Opening parenthesis of a multi-line function call must be the last content on the line
(#226) Closing parenthesis of a multi-line function call must be on a line by itself
(#289) Blank line found at end of control structure
(#294) Blank line found at end of control structure
(#297) Blank line found at start of control structure
(#302) Opening parenthesis of a multi-line function call must be the last content on the line
(#303) Multi-line function call not indented correctly; expected 12 spaces but found 44
(#303) Only one argument is allowed per line in a multi-line function call
(#303) Closing parenthesis of a multi-line function call must be on a line by itself
(#341) Blank line found at end of control structure
(#346) Blank line found at end of control structure
(#351) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#451) Opening parenthesis of a multi-line function call must be the last content on the line
(#451) Only one argument is allowed per line in a multi-line function call
(#452) Multi-line function call not indented correctly; expected 12 spaces but found 20
(#452) Closing parenthesis of a multi-line function call must be on a line by itself
(#707) Space after opening parenthesis of function call prohibited
(#714) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#715) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#726) Space after opening parenthesis of function call prohibited
(#786) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#787) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#863) Expected 1 space between the comma and "// CHANGED.". Found: 42 spaces
(#892) Expected 1 space between the comma and "// CHANGED.". Found: 20 spaces
(#893) Expected 1 space between the comma and "// CHANGED.". Found: 33 spaces
(#991) Expected 1 space between the comma and "// CHANGED.". Found: 9 spaces
(#997) Expected 1 space between the comma and "// ADDED.". Found: 42 spaces
(#1014) Expected 1 space between the comma and "// CHANGED.". Found: 8 spaces
(#1019) Expected 1 space between the comma and "// CHANGED.". Found: 5 spaces
(#1031) Expected 1 space between the comma and "// CHANGED.". Found: 20 spaces
(#1032) Expected 1 space between the comma and "// CHANGED.". Found: 33 spaces
(#1167) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#1185) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#1226) Multi-line function call not indented correctly; expected 16 spaces but found 24
(#1227) Multi-line function call not indented correctly; expected 16 spaces but found 24
(#1228) Multi-line function call not indented correctly; expected 16 spaces but found 24
(#1229) Multi-line function call not indented correctly; expected 12 spaces but found 20
(#1251) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#1254) Each line in a multi-line control structure must be indented at least once; expected at least 16 spaces, but found 12
(#1254) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#1290) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#1290) Multi-line function declarations must define one parameter per line
(#1291) Multi-line function declaration not indented correctly; expected 8 spaces but found 12
(#1291) Multi-line function declarations must define one parameter per line
(#1291) Multi-line function declarations must define one parameter per line
(#1291) The closing parenthesis of a multi-line function declaration must be on a new line
(#1306) Opening parenthesis of a multi-line function call must be the last content on the line
(#1307) Multi-line function call not indented correctly; expected 12 spaces but found 20
(#1307) Closing parenthesis of a multi-line function call must be on a line by itself
(#1331) Opening parenthesis of a multi-line function call must be the last content on the line
(#1331) Only one argument is allowed per line in a multi-line function call
(#1331) Only one argument is allowed per line in a multi-line function call
(#1331) Only one argument is allowed per line in a multi-line function call
(#1332) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#1332) Only one argument is allowed per line in a multi-line function call
(#1332) Only one argument is allowed per line in a multi-line function call
(#1332) Only one argument is allowed per line in a multi-line function call
(#1332) Closing parenthesis of a multi-line function call must be on a line by itself
(#1418) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#1418) Only one argument is allowed per line in a multi-line function call
(#1418) Closing parenthesis of a multi-line function call must be on a line by itself
course/format/multitopic/locallib.php
(#50) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#54) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#63) Long list syntax is not allowed
(#69) Opening parenthesis of a multi-line function call must be the last content on the line
(#70) Multi-line function call not indented correctly; expected 12 spaces but found 44
(#70) Closing parenthesis of a multi-line function call must be on a line by itself
(#131) Opening parenthesis of a multi-line function call must be the last content on the line
(#132) Multi-line function call not indented correctly; expected 8 spaces but found 48
(#132) Closing parenthesis of a multi-line function call must be on a line by itself
(#212) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#213) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#298) Blank line found at start of control structure
(#319) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#322) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#326) Blank line found at end of control structure
(#354) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#357) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#386) Parentheses must be used when instantiating a new class
(#399) Parentheses must be used when instantiating a new class
(#411) Parentheses must be used when instantiating a new class
(#420) Parentheses must be used when instantiating a new class
(#434) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#464) Opening parenthesis of a multi-line function call must be the last content on the line
(#464) Only one argument is allowed per line in a multi-line function call
(#466) Multi-line function call not indented correctly; expected 4 spaces but found 28
(#466) Closing parenthesis of a multi-line function call must be on a line by itself
(#468) Opening parenthesis of a multi-line function call must be the last content on the line
(#468) Only one argument is allowed per line in a multi-line function call
(#470) Multi-line function call not indented correctly; expected 8 spaces but found 32
(#470) Closing parenthesis of a multi-line function call must be on a line by itself
(#473) Opening parenthesis of a multi-line function call must be the last content on the line
(#473) Only one argument is allowed per line in a multi-line function call
(#474) Multi-line function call not indented correctly; expected 8 spaces but found 32
(#474) Closing parenthesis of a multi-line function call must be on a line by itself
(#492) Expected 1 space after SWITCH keyword; 0 found
(#559) Function closing brace must go on the next line following the body; found 1 blank lines before brace
course/format/multitopic/settings.php
(#28) Blank line found at start of control structure
(#36) Expected 1 space after comma in argument list; 2 found
(#36) Expected 1 space between the comma and "'calendar'". Found: 2 spaces
(#37) Expected 1 space after comma in argument list; 2 found
(#37) Expected 1 space between the comma and "'calendar'". Found: 2 spaces
(#38) Expected 1 space after comma in argument list; 2 found
(#38) Expected 1 space between the comma and "'calendar'". Found: 2 spaces
(#45) Expected 1 space after comma in argument list; 4 found
(#45) Expected 1 space between the comma and "'format_multitopic'". Found: 4 spaces
(#53) Expected 1 space after comma in argument list; 4 found
(#53) Expected 1 space between the comma and "'format_multitopic'". Found: 4 spaces
(#58) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#59) Each line in a multi-line control structure must be indented at least once; expected at least 8 spaces, but found 5
(#60) Each line in a multi-line control structure must be indented at least once; expected at least 8 spaces, but found 5
(#60) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#74) Blank line found at end of control structure

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(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

(0 errors, 0 warnings)

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


shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 0 warnings)

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


Gherkin .feature problems

(0 errors, 0 warnings)

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