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

(191 errors, 0 warnings)

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

public/course/format/flexsections/classes/courseformat/stateactions.php
(#32) Expected 1 space before "core_courseformat"; 2 found
(#103) Expected 1 space after FUNCTION keyword; 0 found
(#276) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#276) Multi-line function declarations must define one parameter per line
(#276) Multi-line function declarations must define one parameter per line
(#277) Multi-line function declaration not indented correctly; expected 8 spaces but found 28
(#277) Multi-line function declarations must define one parameter per line
(#277) The closing parenthesis of a multi-line function declaration must be on a new line
(#301) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#301) Multi-line function declarations must define one parameter per line
(#301) Multi-line function declarations must define one parameter per line
(#302) Multi-line function declaration not indented correctly; expected 8 spaces but found 28
(#302) Multi-line function declarations must define one parameter per line
(#302) The closing parenthesis of a multi-line function declaration must be on a new line
(#373) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#373) Multi-line function declarations must define one parameter per line
(#373) Multi-line function declarations must define one parameter per line
(#374) Multi-line function declaration not indented correctly; expected 8 spaces but found 43
(#374) Multi-line function declarations must define one parameter per line
(#374) The closing parenthesis of a multi-line function declaration must be on a new line
(#400) The closing brace for the class must go on the next line after the body
public/course/format/flexsections/classes/courseformat/stateupdates.php
(#26) Opening brace must not be followed by a blank line
public/course/format/flexsections/classes/local/helpers/preferences.php
(#29) Opening brace must not be followed by a blank line
(#50) Expected 1 space after FUNCTION keyword; 0 found
(#71) Expected 1 space after FUNCTION keyword; 0 found
public/course/format/flexsections/classes/local/hooks/before_activitychooserbutton_exported.php
(#26) Opening brace must not be followed by a blank line
public/course/format/flexsections/classes/local/hooks/output/before_footer_html_generation.php
(#26) Opening brace must not be followed by a blank line
(#37) Expected at least 1 space before "."; 0 found
(#37) Expected at least 1 space after "."; 0 found
public/course/format/flexsections/classes/output/courseformat/content.php
(#30) Opening brace must not be followed by a blank line
(#109) Expected 1 space after FUNCTION keyword; 0 found
public/course/format/flexsections/classes/output/courseformat/content/bulkedittools.php
(#26) Opening brace must not be followed by a blank line
public/course/format/flexsections/classes/output/courseformat/content/cm/controlmenu.php
(#39) Opening brace must not be followed by a blank line
public/course/format/flexsections/classes/output/courseformat/content/cm/delegatedcontrolmenu.php
(#26) Opening brace must not be followed by a blank line
public/course/format/flexsections/classes/output/courseformat/content/section.php
(#28) Opening brace must not be followed by a blank line
(#74) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#75) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#90) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#91) The closing parenthesis of a multi-line control structure must be on the line after the last expression
public/course/format/flexsections/classes/output/courseformat/content/section/controlmenu.php
(#35) 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
(#71) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#114) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#115) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#139) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#140) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#145) Only one argument is allowed per line in a multi-line function call
(#153) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#154) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#159) Only one argument is allowed per line in a multi-line function call
(#163) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#163) Closing parenthesis of a multi-line function call must be on a line by itself
public/course/format/flexsections/classes/output/courseformat/content/section/header.php
(#26) Opening brace must not be followed by a blank line
public/course/format/flexsections/classes/output/courseformat/state/cm.php
(#26) Opening brace must not be followed by a blank line
public/course/format/flexsections/classes/output/courseformat/state/course.php
(#26) Opening brace must not be followed by a blank line
(#41) Opening parenthesis of a multi-line function call must be the last content on the line
(#42) Multi-line function call not indented correctly; expected 12 spaces but found 8
(#42) Expected 1 space after FUNCTION keyword; 0 found
(#45) Closing parenthesis of a multi-line function call must be on a line by itself
public/course/format/flexsections/classes/output/courseformat/state/section.php
(#27) Opening brace must not be followed by a blank line
public/course/format/flexsections/classes/output/renderer.php
(#36) Opening brace must not be followed by a blank line
(#86) PHP return type declarations must be lowercase; expected "string" but found "String"
public/course/format/flexsections/classes/privacy/provider.php
(#28) Opening brace must not be followed by a blank line
public/course/format/flexsections/format.php
(#27) Expected at least 1 space before "."; 0 found
(#27) Expected at least 1 space after "."; 0 found
(#28) Expected at least 1 space before "."; 0 found
(#28) Expected at least 1 space after "."; 0 found
public/course/format/flexsections/lib.php
(#26) Expected at least 1 space before "."; 0 found
(#113) Opening parenthesis of a multi-line function call must be the last content on the line
(#113) Only one argument is allowed per line in a multi-line function call
(#114) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#114) Closing parenthesis of a multi-line function call must be on a line by itself
(#192) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#193) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#261) 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
(#330) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#331) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#557) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#557) Multi-line function declarations must define one parameter per line
(#558) Multi-line function declaration not indented correctly; expected 8 spaces but found 12
(#558) Multi-line function declarations must define one parameter per line
(#558) Multi-line function declarations must define one parameter per line
(#558) The closing parenthesis of a multi-line function declaration must be on a new line
(#803) Opening parenthesis of a multi-line function call must be the last content on the line
(#805) Multi-line function call not indented correctly; expected 16 spaces but found 24
(#805) Closing parenthesis of a multi-line function call must be on a line by itself
(#827) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#828) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#852) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#853) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#880) Opening parenthesis of a multi-line function call must be the last content on the line
(#880) Only one argument is allowed per line in a multi-line function call
(#881) Multi-line function call not indented correctly; expected 20 spaces but found 24
(#881) Closing parenthesis of a multi-line function call must be on a line by itself
(#1082) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#1082) Multi-line function declarations must define one parameter per line
(#1082) Multi-line function declarations must define one parameter per line
(#1083) Multi-line function declaration not indented correctly; expected 8 spaces but found 40
(#1083) Multi-line function declarations must define one parameter per line
(#1083) The closing parenthesis of a multi-line function declaration must be on a new line
(#1125) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#1126) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#1245) Opening parenthesis of a multi-line function call must be the last content on the line
(#1246) Multi-line function call not indented correctly; expected 24 spaces but found 28
(#1246) Closing parenthesis of a multi-line function call must be on a line by itself
(#1295) Blank line found at end of control structure
(#1330) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#1330) Closing parenthesis of a multi-line function call must be on a line by itself
(#1488) Expected 1 space after FUNCTION keyword; 0 found
(#1576) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#1576) Only one argument is allowed per line in a multi-line function call
(#1576) Closing parenthesis of a multi-line function call must be on a line by itself
(#1597) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#1603) The closing parenthesis of a multi-line control structure must be on the line after the last expression
public/course/format/flexsections/settings.php
(#35) Expected at least 1 space before "."; 0 found
(#35) Expected at least 1 space after "."; 0 found
(#35) Expected at least 1 space before "."; 0 found
(#35) Expected at least 1 space after "."; 0 found
(#38) Opening parenthesis of a multi-line function call must be the last content on the line
(#40) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#40) Only one argument is allowed per line in a multi-line function call
(#40) Only one argument is allowed per line in a multi-line function call
(#40) Only one argument is allowed per line in a multi-line function call
(#40) Closing parenthesis of a multi-line function call must be on a line by itself
(#41) Opening parenthesis of a multi-line function call must be the last content on the line
(#43) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#43) Only one argument is allowed per line in a multi-line function call
(#43) 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) 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
(#52) Opening parenthesis of a multi-line function call must be the last content on the line
(#54) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#54) Only one argument is allowed per line in a multi-line function call
(#54) Closing parenthesis of a multi-line function call must be on a line by itself
(#55) Opening parenthesis of a multi-line function call must be the last content on the line
(#57) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#57) Only one argument is allowed per line in a multi-line function call
(#57) Closing parenthesis of a multi-line function call must be on a line by itself
public/course/format/flexsections/tests/behat/behat_format_flexsections.php
(#29) Opening brace must not be followed by a blank line
public/course/format/flexsections/tests/format_flexsections_test.php
(#34) Opening brace must not be followed by a blank line
(#55) 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 8 spaces but found 12
(#56) Closing parenthesis of a multi-line function call must be on a line by itself
(#81) Opening parenthesis of a multi-line function call must be the last content on the line
(#82) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#82) Closing parenthesis of a multi-line function call must be on a line by itself
(#115) Opening parenthesis of a multi-line function call must be the last content on the line
(#116) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#116) Closing parenthesis of a multi-line function call must be on a line by itself
(#147) Opening parenthesis of a multi-line function call must be the last content on the line
(#148) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#148) Closing parenthesis of a multi-line function call must be on a line by itself
(#156) Opening parenthesis of a multi-line function call must be the last content on the line
(#157) Multi-line function call not indented correctly; expected 12 spaces but found 20
(#157) Closing parenthesis of a multi-line function call must be on a line by itself
(#181) Opening parenthesis of a multi-line function call must be the last content on the line
(#182) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#182) Closing parenthesis of a multi-line function call must be on a line by itself
(#190) Opening parenthesis of a multi-line function call must be the last content on the line
(#190) Only one argument is allowed per line in a multi-line function call
(#191) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#191) Closing parenthesis of a multi-line function call must be on a line by itself
(#243) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#279) Opening parenthesis of a multi-line function call must be the last content on the line
(#280) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#280) Closing parenthesis of a multi-line function call must be on a line by itself
public/course/format/flexsections/tests/generator/lib.php
(#42) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#42) Closing parenthesis of a multi-line function call must be on a line by itself
(#46) Opening parenthesis of a multi-line function call must be the last content on the line
(#46) Only one argument is allowed per line in a multi-line function call
(#47) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#47) Only one argument is allowed per line in a multi-line function call
(#47) Closing parenthesis of a multi-line function call must be on a line by itself
public/course/format/flexsections/tests/local/helpers/preferences_test.php
(#29) Opening brace must not be followed by a blank line
(#88) Opening parenthesis of a multi-line function call must be the last content on the line
(#89) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#89) Closing parenthesis of a multi-line function call must be on a line by itself
(#113) Opening parenthesis of a multi-line function call must be the last content on the line
(#114) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#114) Closing parenthesis of a multi-line function call must be on a line by itself
(#137) Opening parenthesis of a multi-line function call must be the last content on the line
(#138) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#138) Closing parenthesis of a multi-line function call must be on a line by itself
(#162) Opening parenthesis of a multi-line function call must be the last content on the line
(#163) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#163) Closing parenthesis of a multi-line function call must be on a line by itself
public/course/format/flexsections/version.php
(#32) Expected 1 blank line at end of file; 2 found

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]

public/course/format/flexsections/templates/back_link_in_cms.mustache
(#1) ESLint did not run
public/course/format/flexsections/templates/local/content.mustache
(#1) ESLint did not run
public/course/format/flexsections/templates/local/content/addsection.mustache
(#1) Template produced no content
public/course/format/flexsections/templates/local/courseindex/courseindex.mustache
(#1) ESLint did not run
public/course/format/flexsections/templates/local/courseindex/drawer.mustache
(#1) ESLint did not run
public/course/format/flexsections/templates/local/courseindex/placeholders.mustache
(#1) ESLint did not run
public/course/format/flexsections/templates/local/courseindex/section.mustache
(#1) ESLint did not run

Gherkin .feature problems

(0 errors, 0 warnings)

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