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

(180 errors, 1 warnings)

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

mod/contentdesigner/backup/moodle2/restore_contentdesigner_stepslib.php
(#48) Opening parenthesis of a multi-line function call must be the last content on the line
(#49) 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
(#55) Closing parenthesis of a multi-line function call must be on a line by itself
(#58) Opening parenthesis of a multi-line function call must be the last content on the line
(#59) Closing parenthesis of a multi-line function call must be on a line by itself
mod/contentdesigner/cdelement/chapter/classes/element.php
(#183) Expected 0 spaces before closing parenthesis; newline found
(#293) Long list syntax is not allowed
(#401) Expected at least 1 space after "."; 0 found
mod/contentdesigner/cdelement/chapter/classes/privacy/provider.php
(#40) The interface names in a "class implements" statement should be ordered alphabetically. Expected: \core_privacy\local\metadata\provider, \core_privacy\local\request\core_userlist_provider, \mod_contentdesigner\privacy\contentdesignerelements_provider; Found: \mod_contentdesigner\privacy\contentdesignerelements_provider, \core_privacy\local\request\core_userlist_provider, \core_privacy\local\metadata\provider
(#137) Opening parenthesis of a multi-line function call must be the last content on the line
(#138) Only one argument is allowed per line in a multi-line function call
(#138) Closing parenthesis of a multi-line function call must be on a line by itself
mod/contentdesigner/cdelement/h5p/classes/element.php
(#99) Opening parenthesis of a multi-line function call must be the last content on the line
(#99) Only one argument is allowed per line in a multi-line function call
(#99) Only one argument is allowed per line in a multi-line function call
(#99) Only one argument is allowed per line in a multi-line function call
(#99) Only one argument is allowed per line in a multi-line function call
(#100) Closing parenthesis of a multi-line function call must be on a line by itself
(#166) Only one argument is allowed per line in a multi-line function call
(#166) Only one argument is allowed per line in a multi-line function call
mod/contentdesigner/cdelement/h5p/classes/privacy/provider.php
(#40) The interface names in a "class implements" statement should be ordered alphabetically. Expected: \core_privacy\local\metadata\provider, \core_privacy\local\request\core_userlist_provider, \mod_contentdesigner\privacy\contentdesignerelements_provider; Found: \mod_contentdesigner\privacy\contentdesignerelements_provider, \core_privacy\local\request\core_userlist_provider, \core_privacy\local\metadata\provider
mod/contentdesigner/cdelement/outro/classes/element.php
(#140) Opening parenthesis of a multi-line function call must be the last content on the line
(#140) Only one argument is allowed per line in a multi-line function call
(#140) Only one argument is allowed per line in a multi-line function call
(#141) 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
(#156) Only one argument is allowed per line in a multi-line function call
(#156) Only one argument is allowed per line in a multi-line function call
(#157) Closing parenthesis of a multi-line function call must be on a line by itself
(#204) Expected 0 spaces before closing parenthesis; newline found
(#307) Opening parenthesis of a multi-line function call must be the last content on the line
(#307) Only one argument is allowed per line in a multi-line function call
(#307) Only one argument is allowed per line in a multi-line function call
(#307) Only one argument is allowed per line in a multi-line function call
(#308) Only one argument is allowed per line in a multi-line function call
(#308) Closing parenthesis of a multi-line function call must be on a line by itself
mod/contentdesigner/cdelement/outro/db/upgrade.php
(#42) Blank line found at start of control structure
(#70) Opening parenthesis of a multi-line function call must be the last content on the line
(#70) Only one argument is allowed per line in a multi-line function call
(#70) Only one argument is allowed per line in a multi-line function call
(#70) 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
(#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
(#71) Closing parenthesis of a multi-line function call must be on a line by itself
mod/contentdesigner/classes/editor.php
(#182) Opening parenthesis of a multi-line function call must be the last content on the line
(#182) Only one argument is allowed per line in a multi-line function call
(#331) Opening parenthesis of a multi-line function call must be the last content on the line
(#331) Only one argument is allowed per line in a multi-line function call
(#331) Only one argument is allowed per line in a multi-line function call
(#331) Only one argument is allowed per line in a multi-line function call
(#332) Only one argument is allowed per line in a multi-line function call
(#332) Closing parenthesis of a multi-line function call must be on a line by itself
(#333) Expected 0 spaces before closing bracket; 1 found
(#338) Multi-line function call not indented correctly; expected 12 spaces but found 8
(#339) Multi-line function call not indented correctly; expected 12 spaces but found 8
(#340) Multi-line function call not indented correctly; expected 12 spaces but found 8
(#341) Multi-line function call not indented correctly; expected 12 spaces but found 8
(#342) Multi-line function call not indented correctly; expected 12 spaces but found 8
(#343) Multi-line function call not indented correctly; expected 12 spaces but found 8
(#344) Closing parenthesis of a multi-line function call must be on a line by itself
(#442) Expected 0 spaces before closing parenthesis; newline found
mod/contentdesigner/classes/elements.php
(#203) Expected 1 space after comma in argument list; 2 found
(#203) Expected 1 space between the comma and "'cdelement_'". Found: 2 spaces
(#215) Opening parenthesis of a multi-line function call must be the last content on the line
(#215) Only one argument is allowed per line in a multi-line function call
(#216) Multi-line function call not indented correctly; expected 16 spaces but found 12
(#216) Only one argument is allowed per line in a multi-line function call
(#216) Only one argument is allowed per line in a multi-line function call
(#223) Only one argument is allowed per line in a multi-line function call
(#223) Only one argument is allowed per line in a multi-line function call
(#223) Only one argument is allowed per line in a multi-line function call
(#224) Only one argument is allowed per line in a multi-line function call
(#224) Expected at least 1 space before "."; 0 found
(#224) Expected at least 1 space after "."; 0 found
(#224) Only one argument is allowed per line in a multi-line function call
(#238) Opening parenthesis of a multi-line function call must be the last content on the line
(#238) Only one argument is allowed per line in a multi-line function call
(#238) Only one argument is allowed per line in a multi-line function call
(#239) Only one argument is allowed per line in a multi-line function call
(#239) Only one argument is allowed per line in a multi-line function call
(#239) Closing parenthesis of a multi-line function call must be on a line by itself
(#245) Only one argument is allowed per line in a multi-line function call
(#245) Only one argument is allowed per line in a multi-line function call
(#245) Only one argument is allowed per line in a multi-line function call
(#245) Only one argument is allowed per line in a multi-line function call
(#246) Expected at least 1 space before "."; 0 found
(#246) Expected at least 1 space after "."; 0 found
(#246) Only one argument is allowed per line in a multi-line function call
(#374) Opening parenthesis of a multi-line function call must be the last content on the line
(#374) Only one argument is allowed per line in a multi-line function call
(#374) Only one argument is allowed per line in a multi-line function call
(#375) Multi-line function call not indented correctly; expected 12 spaces but found 8
(#375) Only one argument is allowed per line in a multi-line function call
(#375) Only one argument is allowed per line in a multi-line function call
(#375) Only one argument is allowed per line in a multi-line function call
(#376) 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) Only one argument is allowed per line in a multi-line function call
(#450) Only one argument is allowed per line in a multi-line function call
(#450) Only one argument is allowed per line in a multi-line function call
(#450) Only one argument is allowed per line in a multi-line function call
(#450) Closing parenthesis of a multi-line function call must be on a line by itself
(#494) Expected at least 1 space before "."; 0 found
(#494) Expected at least 1 space after "."; 0 found
(#494) Expected at least 1 space before "."; 0 found
(#494) Expected at least 1 space after "."; 0 found
(#505) Only one argument is allowed per line in a multi-line function call
(#505) Only one argument is allowed per line in a multi-line function call
(#506) Only one argument is allowed per line in a multi-line function call
(#506) Expected at least 1 space before "."; 0 found
(#506) Expected at least 1 space after "."; 0 found
(#506) Only one argument is allowed per line in a multi-line function call
mod/contentdesigner/classes/form/general_element_form.php
(#43) Property name "$_customdata" should not be prefixed with an underscore to indicate visibility
(#56) Opening parenthesis of a multi-line function call must be the last content on the line
(#56) 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
(#78) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#78) Opening parenthesis of a multi-line function call must be the last content on the line
(#79) Each line in a multi-line control structure must be indented at least once; expected at least 12 spaces, but found 8
(#79) Closing parenthesis of a multi-line function call must be on a line by itself
(#79) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#129) Expected 1 space after comma in argument list; 2 found
(#129) Expected 1 space between the comma and "get_string". Found: 2 spaces
(#136) Expected 1 space after comma in argument list; 2 found
(#136) Expected 1 space between the comma and "get_string". Found: 2 spaces
(#145) Opening parenthesis of a multi-line function call must be the last content on the line
(#145) Only one argument is allowed per line in a multi-line function call
(#145) Only one argument is allowed per line in a multi-line function call
(#146) Closing parenthesis of a multi-line function call must be on a line by itself
(#161) Opening parenthesis of a multi-line function call must be the last content on the line
(#161) Only one argument is allowed per line in a multi-line function call
(#161) Only one argument is allowed per line in a multi-line function call
(#162) Closing parenthesis of a multi-line function call must be on a line by itself
mod/contentdesigner/classes/output/renderer.php
(#48) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#49) Each line in a multi-line control structure must be indented at least once; expected at least 12 spaces, but found 8
(#49) The closing parenthesis of a multi-line control structure must be on the line after the last expression
mod/contentdesigner/classes/plugininfo/cdelement.php
(#169) Only one argument is allowed per line in a multi-line function call
(#169) Closing parenthesis of a multi-line function call must be on a line by itself
mod/contentdesigner/classes/privacy/provider.php
(#41) The interface names in a "class implements" statement should be ordered alphabetically. Expected: \core_privacy\local\metadata\provider, \core_privacy\local\request\core_userlist_provider, \core_privacy\local\request\plugin\provider; Found: \core_privacy\local\request\core_userlist_provider, \core_privacy\local\metadata\provider, \core_privacy\local\request\plugin\provider
mod/contentdesigner/classes/search/activity.php
(#30) Opening brace must not be followed by a blank line
mod/contentdesigner/classes/search/elements.php
(#34) Opening brace must not be followed by a blank line
(#46) Long list syntax is not allowed
(#82) Blank line found at start of control structure
(#93) Blank line found at end of control structure
(#129) Long list syntax is not allowed
(#208) Blank line found at start of control structure
(#219) Blank line found at end of control structure
mod/contentdesigner/db/upgrade.php
(#71) Function closing brace must go on the next line following the body; found 1 blank lines before brace
mod/contentdesigner/editor.php
(#75) Opening parenthesis of a multi-line function call must be the last content on the line
(#75) Only one argument is allowed per line in a multi-line function call
(#76) Closing parenthesis of a multi-line function call must be on a line by itself
mod/contentdesigner/index.php
(#35) Closing parenthesis of a multi-line function call must be on a line by itself
mod/contentdesigner/lib.php
(#446) Only one argument is allowed per line in a multi-line function call
(#446) Only one argument is allowed per line in a multi-line function call
(#446) Only one argument is allowed per line in a multi-line function call
(#446) Only one argument is allowed per line in a multi-line function call
(#446) Only one argument is allowed per line in a multi-line function call
(#469) Expected 1 space after FUNCTION keyword; 0 found
mod/contentdesigner/settings.php
(#43) Opening parenthesis of a multi-line function call must be the last content on the line
(#50) Opening parenthesis of a multi-line function call must be the last content on the line
(#56) Opening parenthesis of a multi-line function call must be the last content on the line
(#62) Opening parenthesis of a multi-line function call must be the last content on the line
(#68) Opening parenthesis of a multi-line function call must be the last content on the line
(#74) Opening parenthesis of a multi-line function call must be the last content on the line
(#86) Opening parenthesis of a multi-line function call must be the last content on the line
(#98) Opening parenthesis of a multi-line function call must be the last content on the line
(#105) Opening parenthesis of a multi-line function call must be the last content on the line
(#116) Opening parenthesis of a multi-line function call must be the last content on the line
(#123) Opening parenthesis of a multi-line function call must be the last content on the line
(#130) Opening parenthesis of a multi-line function call must be the last content on the line
(#136) Opening parenthesis of a multi-line function call must be the last content on the line
(#142) Opening parenthesis of a multi-line function call must be the last content on the line
(#148) Opening parenthesis of a multi-line function call must be the last content on the line
mod/contentdesigner/tests/generator_test.php
(#49) Opening parenthesis of a multi-line function call must be the last content on the line
(#50) Multi-line function call not indented correctly; expected 16 spaces but found 12
(#50) Only one argument is allowed per line in a multi-line function call
(#51) Multi-line function call not indented correctly; expected 16 spaces but found 12
(#52) Multi-line function call not indented correctly; expected 12 spaces but found 8
(#52) Closing parenthesis of a multi-line function call must be on a line by itself

Javascript coding style problems

(0 errors, 7 warnings)

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

mod/contentdesigner/amd/src/editor.js
(#230) Unexpected space before function parentheses. (space-before-function-paren)
(#263) Expected catch,fail,always() or return (promise/catch-or-return)
mod/contentdesigner/amd/src/elements.js
(#30) Multiple spaces found before ''core/notification''. (no-multi-spaces)
(#179) Unexpected space before function parentheses. (space-before-function-paren)
(#369) Function expected no return value. (consistent-return)
mod/contentdesigner/cdelement/chapter/amd/src/chapter.js
(#91) Unexpected space before function parentheses. (space-before-function-paren)
mod/contentdesigner/cdelement/h5p/amd/src/h5p.js
(#62) Function has a complexity of 28. Maximum allowed is 20. (complexity)

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]