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

(581 errors, 1 warnings)

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

mod/contentdesigner/backup/moodle2/backup_contentdesigner_activity_task.class.php
(#32) Opening brace must not be followed by a blank line
mod/contentdesigner/backup/moodle2/backup_contentdesigner_stepslib.php
(#30) Opening brace must not be followed by a blank line
(#89) Expected at least 1 space before "."; 0 found
(#89) Expected at least 1 space after "."; 0 found
mod/contentdesigner/backup/moodle2/restore_contentdesigner_activity_task.class.php
(#32) Opening brace must not be followed by a blank line
mod/contentdesigner/backup/moodle2/restore_contentdesigner_stepslib.php
(#34) Opening brace must not be followed by a blank line
(#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 8 spaces but found 12
(#50) 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
(#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
(#59) Opening parenthesis of a multi-line function call must be the last content on the line
(#60) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#60) Closing parenthesis of a multi-line function call must be on a line by itself
(#120) Expected at least 1 space before "."; 0 found
(#120) Expected at least 1 space after "."; 0 found
(#153) Expected at least 1 space before "."; 0 found
(#153) Expected at least 1 space after "."; 0 found
mod/contentdesigner/cdelement/chapter/backup/moodle2/backup_cdelement_chapter_subplugin.class.php
(#28) Opening brace must not be followed by a blank line
(#71) The closing brace for the class must go on the next line after the body
mod/contentdesigner/cdelement/chapter/backup/moodle2/restore_cdelement_chapter_subplugin.class.php
(#30) Opening brace must not be followed by a blank line
(#66) The closing brace for the class must go on the next line after the body
mod/contentdesigner/cdelement/chapter/classes/element.php
(#37) Opening brace must not be followed by a blank line
(#83) Expected 1 space after comma in argument list; 2 found
(#83) Expected 1 space between the comma and "get_string". Found: 2 spaces
(#83) Expected 1 space after comma in argument list; 2 found
(#83) Expected 1 space between the comma and "'maxlength="100" size="30"'". Found: 2 spaces
(#111) Opening parenthesis of a multi-line function call must be the last content on the line
(#111) Only one argument is allowed per line in a multi-line function call
(#111) Only one argument is allowed per line in a multi-line function call
(#112) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#112) Closing parenthesis of a multi-line function call must be on a line by itself
(#117) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#155) Incorrect spacing between argument "$create" and equals sign; expected 1 but found 0
(#155) Incorrect spacing between default value and equals sign for argument "$create"; expected 1 but found 0
(#186) Expected 0 spaces before closing parenthesis; newline found
(#199) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#200) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#229) Expected 0 spaces before closing parenthesis; newline found
(#244) Expected 0 spaces before closing parenthesis; newline found
(#281) Incorrect spacing between argument "$visible" and equals sign; expected 1 but found 0
(#281) Incorrect spacing between default value and equals sign for argument "$visible"; expected 1 but found 0
(#281) Incorrect spacing between argument "$render" and equals sign; expected 1 but found 0
(#281) Incorrect spacing between default value and equals sign for argument "$render"; expected 1 but found 0
(#281) Incorrect spacing between argument "$chapterafter" and equals sign; expected 1 but found 0
(#281) Incorrect spacing between default value and equals sign for argument "$chapterafter"; expected 1 but found 0
(#301) Long list syntax is not allowed
(#389) Incorrect spacing between argument "$visible" and equals sign; expected 1 but found 0
(#389) Incorrect spacing between default value and equals sign for argument "$visible"; expected 1 but found 0
(#389) Incorrect spacing between argument "$render" and equals sign; expected 1 but found 0
(#389) Incorrect spacing between default value and equals sign for argument "$render"; expected 1 but found 0
(#409) Expected at least 1 space after "."; 0 found
(#581) Blank line found at start of control structure
mod/contentdesigner/cdelement/chapter/classes/external.php
(#35) Opening brace must not be followed by a blank line
(#61) Opening parenthesis of a multi-line function call must be the last content on the line
(#62) Closing parenthesis of a multi-line function call must be on a line by itself
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
(#41) Expected 4 spaces before interface name; 8 found
(#42) Expected 4 spaces before interface name; 8 found
(#43) Expected 4 spaces before interface name; 8 found
(#43) Opening brace must not be followed by a blank line
(#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 8 spaces but found 12
(#61) Closing parenthesis of a multi-line function call must be on a line by itself
(#78) Long list syntax is not allowed
(#136) Long list syntax is not allowed
(#139) Long list syntax is not allowed
(#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
(#141) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#141) Closing parenthesis of a multi-line function call must be on a line by itself
(#161) Long list syntax is not allowed
(#162) Opening parenthesis of a multi-line function call must be the last content on the line
(#162) 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
(#185) Long list syntax is not allowed
(#188) Function closing brace must go on the next line following the body; found 1 blank lines before brace
mod/contentdesigner/cdelement/chapter/db/upgrade.php
(#46) Blank line found at start of control structure
(#63) Blank line found at start of control structure
(#80) Blank line found at start of control structure
(#94) Blank line found at start of control structure
mod/contentdesigner/cdelement/chapter/settings.php
(#50) Blank line found at start of control structure
mod/contentdesigner/cdelement/h5p/backup/moodle2/backup_cdelement_h5p_subplugin.class.php
(#30) Opening brace must not be followed by a blank line
(#76) The closing brace for the class must go on the next line after the body
mod/contentdesigner/cdelement/h5p/backup/moodle2/restore_cdelement_h5p_subplugin.class.php
(#30) Opening brace must not be followed by a blank line
mod/contentdesigner/cdelement/h5p/classes/element.php
(#32) Opening brace must not be followed by a blank line
(#65) Expected at least 1 space before "."; 0 found
(#65) Expected at least 1 space after "."; 0 found
(#100) Opening parenthesis of a multi-line function call must be the last content on the line
(#100) Only one argument is allowed per line in a multi-line function call
(#100) Only one argument is allowed per line in a multi-line function call
(#100) Only one argument is allowed per line in a multi-line function call
(#100) Only one argument is allowed per line in a multi-line function call
(#101) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#101) Closing parenthesis of a multi-line function call must be on a line by itself
(#167) Only one argument is allowed per line in a multi-line function call
(#167) Only one argument is allowed per line in a multi-line function call
(#199) Expected at least 1 space before "."; 0 found
(#199) Expected at least 1 space after "."; 0 found
(#202) Function closing brace must go on the next line following the body; found 1 blank lines before brace
mod/contentdesigner/cdelement/h5p/classes/external.php
(#35) Opening brace must not be followed by a blank line
(#78) Opening parenthesis of a multi-line function call must be the last content on the line
(#79) Closing parenthesis of a multi-line function call must be on a line by itself
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
(#41) Expected 4 spaces before interface name; 8 found
(#42) Expected 4 spaces before interface name; 8 found
(#43) Expected 4 spaces before interface name; 8 found
(#43) Opening brace must not be followed by a blank line
(#62) Opening parenthesis of a multi-line function call must be the last content on the line
(#62) Only one argument is allowed per line in a multi-line function call
(#63) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#63) Closing parenthesis of a multi-line function call must be on a line by itself
(#81) Long list syntax is not allowed
(#143) Long list syntax is not allowed
(#146) Long list syntax is not allowed
(#147) Opening parenthesis of a multi-line function call must be the last content on the line
(#147) Only one argument is allowed per line in a multi-line function call
(#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
(#168) Long list syntax is not allowed
(#169) Opening parenthesis of a multi-line function call must be the last content on the line
(#169) Only one argument is allowed per line in a multi-line function call
(#170) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#170) Closing parenthesis of a multi-line function call must be on a line by itself
(#192) Long list syntax is not allowed
(#195) Function closing brace must go on the next line following the body; found 1 blank lines before brace
mod/contentdesigner/cdelement/heading/backup/moodle2/backup_cdelement_heading_subplugin.class.php
(#28) Opening brace must not be followed by a blank line
(#55) The closing brace for the class must go on the next line after the body
mod/contentdesigner/cdelement/heading/backup/moodle2/restore_cdelement_heading_subplugin.class.php
(#30) Opening brace must not be followed by a blank line
(#64) The closing brace for the class must go on the next line after the body
mod/contentdesigner/cdelement/heading/classes/element.php
(#31) Opening brace must not be followed by a blank line
(#76) Only one argument is allowed per line in a multi-line function call
(#76) Only one argument is allowed per line in a multi-line function call
(#76) Only one argument is allowed per line in a multi-line function call
(#83) Only one argument is allowed per line in a multi-line function call
(#83) Only one argument is allowed per line in a multi-line function call
(#84) Only one argument is allowed per line in a multi-line function call
(#127) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#138) Expected at least 1 space before "."; 0 found
(#139) Expected at least 1 space before "."; 0 found
(#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
(#141) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#141) Closing parenthesis of a multi-line function call must be on a line by itself
mod/contentdesigner/cdelement/heading/classes/privacy/provider.php
(#32) Opening brace must not be followed by a blank line
mod/contentdesigner/cdelement/outro/backup/moodle2/backup_cdelement_outro_subplugin.class.php
(#30) Opening brace must not be followed by a blank line
(#62) The closing brace for the class must go on the next line after the body
mod/contentdesigner/cdelement/outro/backup/moodle2/restore_cdelement_outro_subplugin.class.php
(#30) Opening brace must not be followed by a blank line
mod/contentdesigner/cdelement/outro/classes/element.php
(#34) Opening brace must not be followed by a blank line
(#132) Opening parenthesis of a multi-line function call must be the last content on the line
(#132) Only one argument is allowed per line in a multi-line function call
(#133) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#133) Only one argument is allowed per line in a multi-line function call
(#133) Closing parenthesis of a multi-line function call must be on a line by itself
(#148) Opening parenthesis of a multi-line function call must be the last content on the line
(#148) Only one argument is allowed per line in a multi-line function call
(#149) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#149) Only one argument is allowed per line in a multi-line function call
(#149) Closing parenthesis of a multi-line function call must be on a line by itself
(#196) Expected 0 spaces before closing parenthesis; newline found
(#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
(#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
(#217) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#217) Closing parenthesis of a multi-line function call must be on a line by itself
(#228) Long list syntax is not allowed
(#234) Long list syntax is not allowed
(#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
(#290) Opening parenthesis of a multi-line function call must be the last content on the line
(#290) Only one argument is allowed per line in a multi-line function call
(#290) Only one argument is allowed per line in a multi-line function call
(#290) Only one argument is allowed per line in a multi-line function call
(#291) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#291) Only one argument is allowed per line in a multi-line function call
(#291) Closing parenthesis of a multi-line function call must be on a line by itself
(#407) Expected at least 1 space before "."; 0 found
(#407) Expected at least 1 space after "."; 0 found
mod/contentdesigner/cdelement/outro/classes/privacy/provider.php
(#32) Opening brace must not be followed by a blank line
mod/contentdesigner/cdelement/outro/db/upgrade.php
(#42) Blank line found at start of control structure
(#48) Blank line found at start of control structure
(#66) Blank line found at start of control structure
(#74) Opening parenthesis of a multi-line function call must be the last content on the line
(#74) Only one argument is allowed per line in a multi-line function call
(#74) Only one argument is allowed per line in a multi-line function call
(#74) Only one argument is allowed per line in a multi-line function call
(#74) Only one argument is allowed per line in a multi-line function call
(#74) Only one argument is allowed per line in a multi-line function call
(#74) Only one argument is allowed per line in a multi-line function call
(#75) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#75) Closing parenthesis of a multi-line function call must be on a line by itself
mod/contentdesigner/cdelement/outro/tests/behat/behat_cdelement_outro.php
(#44) Opening parenthesis of a multi-line function call must be the last content on the line
(#45) Multi-line function call not indented correctly; expected 12 spaces but found 8
(#50) Closing parenthesis of a multi-line function call must be on a line by itself
(#53) The closing brace for the class must go on the next line after the body
mod/contentdesigner/cdelement/paragraph/backup/moodle2/backup_cdelement_paragraph_subplugin.class.php
(#30) Opening brace must not be followed by a blank line
(#56) The closing brace for the class must go on the next line after the body
mod/contentdesigner/cdelement/paragraph/backup/moodle2/restore_cdelement_paragraph_subplugin.class.php
(#30) Opening brace must not be followed by a blank line
(#65) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#67) The closing brace for the class must go on the next line after the body
mod/contentdesigner/cdelement/paragraph/classes/element.php
(#31) Opening brace must not be followed by a blank line
(#108) Expected at least 1 space before "."; 0 found
(#109) Expected at least 1 space before "."; 0 found
(#110) Expected at least 1 space before "."; 0 found
(#110) Expected at least 1 space after "."; 0 found
(#110) Expected at least 1 space before "."; 0 found
(#110) Expected at least 1 space before "."; 0 found
(#123) The closing brace for the class must go on the next line after the body
mod/contentdesigner/cdelement/paragraph/classes/privacy/provider.php
(#32) Opening brace must not be followed by a blank line
mod/contentdesigner/cdelement/richtext/backup/moodle2/backup_cdelement_richtext_subplugin.class.php
(#30) Opening brace must not be followed by a blank line
(#58) The closing brace for the class must go on the next line after the body
mod/contentdesigner/cdelement/richtext/backup/moodle2/restore_cdelement_richtext_subplugin.class.php
(#30) Opening brace must not be followed by a blank line
mod/contentdesigner/cdelement/richtext/classes/element.php
(#32) Opening brace must not be followed by a blank line
(#105) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#105) Only one argument is allowed per line in a multi-line function call
(#105) Only one argument is allowed per line in a multi-line function call
(#105) Only one argument is allowed per line in a multi-line function call
(#105) Only one argument is allowed per line in a multi-line function call
(#105) Only one argument is allowed per line in a multi-line function call
(#105) Closing parenthesis of a multi-line function call must be on a line by itself
mod/contentdesigner/cdelement/richtext/classes/privacy/provider.php
(#32) Opening brace must not be followed by a blank line
mod/contentdesigner/classes/editor.php
(#32) Opening brace must not be followed by a blank line
(#100) Incorrect spacing between argument "$chapterafter" and equals sign; expected 1 but found 0
(#100) Incorrect spacing between default value and equals sign for argument "$chapterafter"; expected 1 but found 0
(#159) Long list syntax is not allowed
(#183) Opening parenthesis of a multi-line function call must be the last content on the line
(#199) Incorrect spacing between argument "$cmid" and equals sign; expected 1 but found 0
(#199) Incorrect spacing between default value and equals sign for argument "$cmid"; expected 1 but found 0
(#204) Expected at least 1 space before "."; 0 found
(#204) Expected at least 1 space after "."; 0 found
(#204) Expected at least 1 space before "."; 0 found
(#204) Expected at least 1 space after "."; 0 found
(#235) Expected 1 space after FUNCTION keyword; 0 found
(#236) Expected at least 1 space before "."; 0 found
(#236) Expected at least 1 space after "."; 0 found
(#236) Expected at least 1 space before "."; 0 found
(#236) Expected at least 1 space after "."; 0 found
(#236) Expected at least 1 space before "."; 0 found
(#236) Expected at least 1 space after "."; 0 found
(#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
(#255) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#255) Closing parenthesis of a multi-line function call must be on a line by itself
(#314) Opening parenthesis of a multi-line function call must be the last content on the line
(#314) Only one argument is allowed per line in a multi-line function call
(#315) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#315) Only one argument is allowed per line in a multi-line function call
(#315) Closing parenthesis of a multi-line function call must be on a line by itself
(#318) Expected at least 1 space before "."; 0 found
(#318) Expected at least 1 space after "."; 0 found
(#332) Incorrect spacing between argument "$itemid" and equals sign; expected 1 but found 0
(#332) Incorrect spacing between default value and equals sign for argument "$itemid"; expected 1 but found 0
(#332) Incorrect spacing between argument "$component" and equals sign; expected 1 but found 0
(#332) Incorrect spacing between default value and equals sign for argument "$component"; expected 1 but found 0
(#332) Incorrect spacing between argument "$context" and equals sign; expected 1 but found 0
(#332) Incorrect spacing between default value and equals sign for argument "$context"; expected 1 but found 0
(#335) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#335) Only one argument is allowed per line in a multi-line function call
(#335) Only one argument is allowed per line in a multi-line function call
(#335) Only one argument is allowed per line in a multi-line function call
(#335) Only one argument is allowed per line in a multi-line function call
(#335) Only one argument is allowed per line in a multi-line function call
(#335) Closing parenthesis of a multi-line function call must be on a line by itself
(#336) Expected 0 spaces before closing bracket; 1 found
(#346) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#346) Only one argument is allowed per line in a multi-line function call
(#346) Closing parenthesis of a multi-line function call must be on a line by itself
(#358) Incorrect spacing between argument "$chapterid" and equals sign; expected 1 but found 0
(#358) Incorrect spacing between default value and equals sign for argument "$chapterid"; expected 1 but found 0
(#371) Blank line found at start of control structure
(#406) Blank line found at end of control structure
(#422) Incorrect spacing between argument "$position" and equals sign; expected 1 but found 0
(#422) Incorrect spacing between default value and equals sign for argument "$position"; expected 1 but found 0
(#447) Expected 0 spaces before closing parenthesis; newline found
(#451) Blank line found at end of control structure
(#478) Expected at least 1 space before "."; 0 found
(#478) Expected at least 1 space after "."; 0 found
(#518) Blank line found at start of control structure
mod/contentdesigner/classes/elements.php
(#31) Opening brace must not be followed by a blank line
(#100) Expected at least 1 space before "."; 0 found
(#100) Expected at least 1 space after "."; 0 found
(#104) Long list syntax is not allowed
(#187) Expected 1 space after comma in argument list; 2 found
(#187) Expected 1 space between the comma and "'cdelement_'". Found: 2 spaces
(#187) Expected at least 1 space before "."; 0 found
(#187) Expected at least 1 space after "."; 0 found
(#188) Expected at least 1 space before "."; 0 found
(#188) Expected at least 1 space after "."; 0 found
(#199) Opening parenthesis of a multi-line function call must be the last content on the line
(#199) Only one argument is allowed per line in a multi-line function call
(#199) Only one argument is allowed per line in a multi-line function call
(#200) Expected at least 1 space before "."; 0 found
(#200) Expected at least 1 space after "."; 0 found
(#200) Only one argument is allowed per line in a multi-line function call
(#214) Opening parenthesis of a multi-line function call must be the last content on the line
(#214) Only one argument is allowed per line in a multi-line function call
(#214) Only one argument is allowed per line in a multi-line function call
(#214) Only one argument is allowed per line in a multi-line function call
(#214) Expected at least 1 space before "."; 0 found
(#214) Expected at least 1 space after "."; 0 found
(#215) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#215) Only one argument is allowed per line in a multi-line function call
(#215) Closing parenthesis of a multi-line function call must be on a line by itself
(#324) Expected at least 1 space before "."; 0 found
(#324) Expected at least 1 space after "."; 0 found
(#324) Expected at least 1 space before "."; 0 found
(#324) Expected at least 1 space after "."; 0 found
(#324) Expected at least 1 space before "."; 0 found
(#324) Expected at least 1 space after "."; 0 found
(#324) Expected at least 1 space before "."; 0 found
(#324) Expected at least 1 space after "."; 0 found
(#326) Opening parenthesis of a multi-line function call must be the last content on the line
(#326) Only one argument is allowed per line in a multi-line function call
(#326) Only one argument is allowed per line in a multi-line function call
(#326) Expected at least 1 space before "."; 0 found
(#326) Expected at least 1 space after "."; 0 found
(#327) Only one argument is allowed per line in a multi-line function call
(#327) Only one argument is allowed per line in a multi-line function call
(#327) Only one argument is allowed per line in a multi-line function call
(#328) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#328) Closing parenthesis of a multi-line function call must be on a line by itself
(#365) Expected at least 1 space before "."; 0 found
(#365) Expected at least 1 space after "."; 0 found
(#395) Blank line found at start of control structure
(#397) Blank line found at start of control structure
(#403) Opening parenthesis of a multi-line function call must be the last content on the line
(#403) Only one argument is allowed per line in a multi-line function call
(#404) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#404) Only one argument is allowed per line in a multi-line function call
(#404) Only one argument is allowed per line in a multi-line function call
(#404) Only one argument is allowed per line in a multi-line function call
(#404) Closing parenthesis of a multi-line function call must be on a line by itself
(#426) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#427) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#430) Blank line found at end of control structure
(#445) Incorrect spacing between argument "$visible" and equals sign; expected 1 but found 0
(#445) Incorrect spacing between default value and equals sign for argument "$visible"; expected 1 but found 0
(#448) Blank line found at start of control structure
(#451) Expected at least 1 space before "."; 0 found
(#451) Expected at least 1 space after "."; 0 found
(#451) Expected at least 1 space before "."; 0 found
(#451) Expected at least 1 space after "."; 0 found
(#540) Blank line found at end of control structure
mod/contentdesigner/classes/event/course_module_viewed.php
(#34) Opening brace must not be followed by a blank line
mod/contentdesigner/classes/form/general_element_form.php
(#29) Expected at least 1 space before "."; 0 found
(#29) Expected at least 1 space after "."; 0 found
(#37) Opening brace must not be followed by a blank line
(#44) Property name "$_customdata" should not be prefixed with an underscore to indicate visibility
(#57) Opening parenthesis of a multi-line function call must be the last content on the line
(#57) Only one argument is allowed per line in a multi-line function call
(#58) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#58) Closing parenthesis of a multi-line function call must be on a line by itself
(#79) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#79) Opening parenthesis of a multi-line function call must be the last content on the line
(#80) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#80) Closing parenthesis of a multi-line function call must be on a line by itself
(#80) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#103) Expected 1 space after comma in argument list; 2 found
(#103) Expected 1 space between the comma and "get_string". Found: 2 spaces
(#103) Expected 1 space after comma in argument list; 2 found
(#103) Expected 1 space between the comma and "'maxlength="100" size="30"'". Found: 2 spaces
(#118) Expected 1 space after comma in argument list; 2 found
(#118) Expected 1 space between the comma and "get_string". Found: 2 spaces
(#125) Expected 1 space after comma in argument list; 2 found
(#125) Expected 1 space between the comma and "get_string". Found: 2 spaces
(#134) Opening parenthesis of a multi-line function call must be the last content on the line
(#134) Only one argument is allowed per line in a multi-line function call
(#134) Only one argument is allowed per line in a multi-line function call
(#135) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#135) Closing parenthesis of a multi-line function call must be on a line by itself
(#150) Opening parenthesis of a multi-line function call must be the last content on the line
(#150) Only one argument is allowed per line in a multi-line function call
(#150) Only one argument is allowed per line in a multi-line function call
(#151) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#151) Closing parenthesis of a multi-line function call must be on a line by itself
mod/contentdesigner/classes/output/renderer.php
(#33) Opening brace must not be followed by a blank line
(#46) Incorrect spacing between argument "$contentdesigner" and equals sign; expected 1 but found 0
(#46) Incorrect spacing between default value and equals sign for argument "$contentdesigner"; expected 1 but found 0
(#46) Incorrect spacing between argument "$context" and equals sign; expected 1 but found 0
(#46) Incorrect spacing between default value and equals sign for argument "$context"; expected 1 but found 0
(#49) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#50) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#55) Long list syntax is not allowed
mod/contentdesigner/classes/plugininfo/cdelement.php
(#32) Opening brace must not be followed by a blank line
(#65) Expected at least 1 space before "."; 0 found
(#65) Expected at least 1 space after "."; 0 found
(#65) Expected at least 1 space before "."; 0 found
(#65) Expected at least 1 space after "."; 0 found
(#109) Expected 1 space after comma in argument list; 2 found
(#109) Expected 1 space between the comma and "[". Found: 2 spaces
(#170) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#170) Only one argument is allowed per line in a multi-line function call
(#170) Closing parenthesis of a multi-line function call must be on a line by itself
(#172) Expected at least 1 space before "."; 0 found
(#172) Expected at least 1 space after "."; 0 found
mod/contentdesigner/classes/privacy/contentdesignerelements_provider.php
(#36) Opening brace must not be followed by a blank line
mod/contentdesigner/classes/privacy/provider.php
(#27) Header blocks must not contain blank lines
(#42) 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
(#45) Opening brace must not be followed by a blank line
(#103) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#162) Long list syntax is not allowed
(#202) Expected at least 1 space before "."; 0 found
(#202) Expected at least 1 space after "."; 0 found
(#202) Expected at least 1 space before "."; 0 found
(#202) Expected at least 1 space after "."; 0 found
(#228) The closing brace for the class must go on the next line after the body
mod/contentdesigner/editor.php
(#55) Expected at least 1 space before "."; 0 found
(#55) Expected at least 1 space after "."; 0 found
(#55) Expected at least 1 space before "."; 0 found
(#55) Expected at least 1 space after "."; 0 found
(#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) Multi-line function call not indented correctly; expected 0 spaces but found 4
(#76) Closing parenthesis of a multi-line function call must be on a line by itself
mod/contentdesigner/element.php
(#26) Expected at least 1 space before "."; 0 found
(#26) Expected at least 1 space after "."; 0 found
(#41) Long list syntax is not allowed
(#47) Expected at least 1 space before "."; 0 found
(#47) Expected at least 1 space after "."; 0 found
(#77) Expected at least 1 space before "."; 0 found
(#77) Expected at least 1 space after "."; 0 found
(#77) Expected at least 1 space before "."; 0 found
(#77) Expected at least 1 space after "."; 0 found
(#90) Blank line found at start of control structure
mod/contentdesigner/index.php
(#35) Multi-line function call not indented correctly; expected 0 spaces but found 4
(#35) Closing parenthesis of a multi-line function call must be on a line by itself
(#46) Expected at least 1 space before "."; 0 found
(#46) Expected at least 1 space after "."; 0 found
(#46) Expected at least 1 space before "."; 0 found
(#46) Expected at least 1 space after "."; 0 found
(#62) Expected at least 1 space before "."; 0 found
(#62) Expected at least 1 space after "."; 0 found
(#86) Expected at least 1 space before "."; 0 found
(#86) Expected at least 1 space after "."; 0 found
(#86) Expected at least 1 space before "."; 0 found
(#86) Expected at least 1 space after "."; 0 found
(#93) Expected at least 1 space before "."; 0 found
(#93) Expected at least 1 space after "."; 0 found
(#93) Expected at least 1 space before "."; 0 found
(#93) Expected at least 1 space after "."; 0 found
mod/contentdesigner/lang/en/contentdesigner.php
(#195) The string key "learningtools" is duplicated
(#196) The string key "learningtools_help" is duplicated
(#197) The string key "enabled" is duplicated
(#198) The string key "disabled" is duplicated
(#199) The string key "strbookmark" is duplicated
(#200) The string key "strnotes" is duplicated
(#201) The string key "strbookmarked" is duplicated
mod/contentdesigner/lib.php
(#46) Opening parenthesis of a multi-line function call must be the last content on the line
(#47) Only one argument is allowed per line in a multi-line function call
(#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
(#77) Opening parenthesis of a multi-line function call must be the last content on the line
(#78) Only one argument is allowed per line in a multi-line function call
(#78) Only one argument is allowed per line in a multi-line function call
(#78) Closing parenthesis of a multi-line function call must be on a line by itself
(#112) Expected at least 1 space before "."; 0 found
(#112) Expected at least 1 space after "."; 0 found
(#116) Expected at least 1 space before "."; 0 found
(#116) Expected at least 1 space after "."; 0 found
(#138) Expected 1 space after SWITCH keyword; 0 found
(#293) Long list syntax is not allowed
(#306) Long list syntax is not allowed
(#318) Long list syntax is not allowed
(#403) Expected at least 1 space before "."; 0 found
(#403) Expected at least 1 space after "."; 0 found
(#404) Expected at least 1 space before "."; 0 found
(#404) Expected at least 1 space after "."; 0 found
(#423) Only one argument is allowed per line in a multi-line function call
(#423) Only one argument is allowed per line in a multi-line function call
(#423) Expected at least 1 space before "."; 0 found
(#423) Expected at least 1 space after "."; 0 found
(#423) Only one argument is allowed per line in a multi-line function call
(#424) Only one argument is allowed per line in a multi-line function call
(#424) Only one argument is allowed per line in a multi-line function call
(#441) Only one argument is allowed per line in a multi-line function call
(#441) Only one argument is allowed per line in a multi-line function call
(#441) Only one argument is allowed per line in a multi-line function call
(#441) Only one argument is allowed per line in a multi-line function call
(#441) Only one argument is allowed per line in a multi-line function call
(#464) Expected 1 space after FUNCTION keyword; 0 found
mod/contentdesigner/mod_form.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
(#33) Opening brace must not be followed by a blank line
(#62) The closing brace for the class must go on the next line after the body
mod/contentdesigner/settings.php
(#27) Expected at least 1 space before "."; 0 found
(#27) Expected at least 1 space after "."; 0 found
(#31) Opening parenthesis of a multi-line function call must be the last content on the line
(#31) Only one argument is allowed per line in a multi-line function call
(#32) Only one argument is allowed per line in a multi-line function call
(#32) Closing parenthesis of a multi-line function call must be on a line by itself
(#34) Blank line found at start of control structure
(#40) Opening parenthesis of a multi-line function call must be the last content on the line
(#41) Multi-line function call not indented correctly; expected 8 spaces but found 4
(#41) Only one argument is allowed per line in a multi-line function call
(#42) Only one argument is allowed per line in a multi-line function call
(#42) Closing parenthesis of a multi-line function call must be on a line by itself
(#44) Opening parenthesis of a multi-line function call must be the last content on the line
(#45) Only one argument is allowed per line in a multi-line function call
(#45) Only one argument is allowed per line in a multi-line function call
(#45) Closing parenthesis of a multi-line function call must be on a line by itself
(#47) Opening parenthesis of a multi-line function call must be the last content on the line
(#48) Only one argument is allowed per line in a multi-line function call
(#48) Only one argument is allowed per line in a multi-line function call
(#48) Closing parenthesis of a multi-line function call must be on a line by itself
(#50) Opening parenthesis of a multi-line function call must be the last content on the line
(#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
(#53) 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) 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
(#56) Opening parenthesis of a multi-line function call must be the last content on the line
(#57) Only one argument is allowed per line in a multi-line function call
(#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
(#65) Opening parenthesis of a multi-line function call must be the last content on the line
(#66) Multi-line function call not indented correctly; expected 8 spaces but found 4
(#66) Only one argument is allowed per line in a multi-line function call
(#67) Only one argument is allowed per line in a multi-line function call
(#67) Closing parenthesis of a multi-line function call must be on a line by itself
(#74) Opening parenthesis of a multi-line function call must be the last content on the line
(#75) Multi-line function call not indented correctly; expected 8 spaces but found 4
(#75) Only one argument is allowed per line in a multi-line function call
(#76) 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
(#78) 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
(#79) Only one argument is allowed per line in a multi-line function call
(#79) Closing parenthesis of a multi-line function call must be on a line by itself
(#86) Opening parenthesis of a multi-line function call must be the last content on the line
(#87) Multi-line function call not indented correctly; expected 8 spaces but found 4
(#87) Only one argument is allowed per line in a multi-line function call
(#88) Only one argument is allowed per line in a multi-line function call
(#88) Closing parenthesis of a multi-line function call must be on a line by itself
(#90) Opening parenthesis of a multi-line function call must be the last content on the line
(#91) Multi-line function call not indented correctly; expected 8 spaces but found 4
(#91) Only one argument is allowed per line in a multi-line function call
(#92) Only one argument is allowed per line in a multi-line function call
(#92) Closing parenthesis of a multi-line function call must be on a line by itself
(#94) Opening parenthesis of a multi-line function call must be the last content on the line
(#95) Only one argument is allowed per line in a multi-line function call
(#95) Only one argument is allowed per line in a multi-line function call
(#95) Closing parenthesis of a multi-line function call must be on a line by itself
(#97) Opening parenthesis of a multi-line function call must be the last content on the line
(#98) Multi-line function call not indented correctly; expected 8 spaces but found 4
(#98) Only one argument is allowed per line in a multi-line function call
(#98) Only one argument is allowed per line in a multi-line function call
(#101) Opening parenthesis of a multi-line function call must be the last content on the line
(#102) Multi-line function call not indented correctly; expected 8 spaces but found 4
(#102) Only one argument is allowed per line in a multi-line function call
(#102) Only one argument is allowed per line in a multi-line function call
(#105) Opening parenthesis of a multi-line function call must be the last content on the line
(#106) Multi-line function call not indented correctly; expected 8 spaces but found 4
(#106) Only one argument is allowed per line in a multi-line function call
(#106) Only one argument is allowed per line in a multi-line function call
(#108) Blank line found at end of control structure
mod/contentdesigner/tests/generator/lib.php
(#33) Opening brace must not be followed by a blank line
mod/contentdesigner/tests/generator_test.php
(#26) Opening brace must not be followed by a blank line
(#48) Opening parenthesis of a multi-line function call must be the last content on the line
(#49) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#49) Only one argument is allowed per line in a multi-line function call
(#49) Only one argument is allowed per line in a multi-line function call
(#49) Closing parenthesis of a multi-line function call must be on a line by itself
(#52) The closing brace for the class must go on the next line after the body
mod/contentdesigner/tests/lib_test.php
(#40) Opening brace must not be followed by a blank line
(#191) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#218) The closing brace for the class must go on the next line after the body
mod/contentdesigner/view.php
(#27) Expected at least 1 space before "."; 0 found
(#27) Expected at least 1 space after "."; 0 found
(#50) Expected at least 1 space before "."; 0 found
(#50) Expected at least 1 space after "."; 0 found
(#50) Expected at least 1 space before "."; 0 found
(#50) Expected at least 1 space after "."; 0 found

Javascript coding style problems

(0 errors, 67 warnings)

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

mod/contentdesigner/amd/src/editor.js
(#26) Unexpected space before function parentheses. (space-before-function-paren)
(#57) Unexpected space before function parentheses. (space-before-function-paren)
(#201) Unexpected space before function parentheses. (space-before-function-paren)
(#220) Unexpected space before function parentheses. (space-before-function-paren)
(#222) Unexpected space before function parentheses. (space-before-function-paren)
(#227) There should be no space after '{'. (@babel/object-curly-spacing)
(#227) There should be no space before '}'. (@babel/object-curly-spacing)
(#228) There should be no space after '{'. (@babel/object-curly-spacing)
(#228) There should be no space before '}'. (@babel/object-curly-spacing)
(#229) There should be no space after '{'. (@babel/object-curly-spacing)
(#229) There should be no space before '}'. (@babel/object-curly-spacing)
(#230) There should be no space after '{'. (@babel/object-curly-spacing)
(#230) There should be no space before '}'. (@babel/object-curly-spacing)
(#231) Unexpected space before function parentheses. (space-before-function-paren)
(#246) There should be no space after '{'. (@babel/object-curly-spacing)
(#246) There should be no space before '}'. (@babel/object-curly-spacing)
(#249) 'promise' declared on line 256 column 21 is used outside of binding context. (block-scoped-var)
(#256) 'promise' is already defined. (no-redeclare)
(#256) 'promise' declared on line 249 column 21 is used outside of binding context. (block-scoped-var)
(#264) 'promise' declared on line 249 column 21 is used outside of binding context. (block-scoped-var)
(#264) 'promise' declared on line 256 column 21 is used outside of binding context. (block-scoped-var)
(#264) Expected catch,fail,always() or return (promise/catch-or-return)
(#265) Unexpected space before function parentheses. (space-before-function-paren)
(#267) Unexpected space before function parentheses. (space-before-function-paren)
(#289) Unexpected space before function parentheses. (space-before-function-paren)
mod/contentdesigner/amd/src/elements.js
(#31) Unexpected space before function parentheses. (space-before-function-paren)
(#86) Promise.catch() requires 1 argument, but received 0 (promise/valid-params)
(#151) Unexpected space before function parentheses. (space-before-function-paren)
(#158) Promise.catch() requires 1 argument, but received 0 (promise/valid-params)
(#179) Unexpected space before function parentheses. (space-before-function-paren)
(#183) There should be no space after '{'. (@babel/object-curly-spacing)
(#183) There should be no space before '}'. (@babel/object-curly-spacing)
(#198) Unexpected space before function parentheses. (space-before-function-paren)
(#209) Unexpected space before function parentheses. (space-before-function-paren)
(#220) There should be no space after '{'. (@babel/object-curly-spacing)
(#220) There should be no space before '}'. (@babel/object-curly-spacing)
(#221) There should be no space after '{'. (@babel/object-curly-spacing)
(#221) There should be no space before '}'. (@babel/object-curly-spacing)
(#225) There should be no space after '{'. (@babel/object-curly-spacing)
(#225) There should be no space before '}'. (@babel/object-curly-spacing)
(#226) There should be no space after '{'. (@babel/object-curly-spacing)
(#226) There should be no space before '}'. (@babel/object-curly-spacing)
(#230) There should be no space after '{'. (@babel/object-curly-spacing)
(#230) There should be no space before '}'. (@babel/object-curly-spacing)
(#231) There should be no space after '{'. (@babel/object-curly-spacing)
(#231) There should be no space before '}'. (@babel/object-curly-spacing)
(#263) Unexpected space before function parentheses. (space-before-function-paren)
(#265) There should be no space after '{'. (@babel/object-curly-spacing)
(#265) There should be no space before '}'. (@babel/object-curly-spacing)
(#281) Unexpected space before function parentheses. (space-before-function-paren)
(#311) Unexpected space before function parentheses. (space-before-function-paren)
(#316) Unexpected space before function parentheses. (space-before-function-paren)
(#322) Unexpected space before function parentheses. (space-before-function-paren)
(#328) Unexpected space before function parentheses. (space-before-function-paren)
(#329) Unexpected space before function parentheses. (space-before-function-paren)
(#347) 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
(#30) Unexpected space before function parentheses. (space-before-function-paren)
(#39) Unexpected space before function parentheses. (space-before-function-paren)
(#91) Unexpected space before function parentheses. (space-before-function-paren)
(#117) There should be no space after '{'. (@babel/object-curly-spacing)
(#117) There should be no space before '}'. (@babel/object-curly-spacing)
(#125) Unexpected space before function parentheses. (space-before-function-paren)
mod/contentdesigner/cdelement/h5p/amd/src/h5p.js
(#30) Unexpected space before function parentheses. (space-before-function-paren)
(#63) Function has a complexity of 28. Maximum allowed is 20. (complexity)
(#63) Unexpected space before function parentheses. (space-before-function-paren)
(#188) Unexpected space before function parentheses. (space-before-function-paren)

CSS problems

(8 errors, 1 warnings)

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

mod/contentdesigner/style/animate.css
(#2034) Unexpected !important (declaration-no-important)
(#2035) Unexpected !important (declaration-no-important)
(#2107) Unexpected !important (declaration-no-important)
(#2108) Unexpected !important (declaration-no-important)
(#2154) Unexpected !important (declaration-no-important)
(#2155) Unexpected !important (declaration-no-important)
(#2197) Unexpected !important (declaration-no-important)
(#2198) Unexpected !important (declaration-no-important)
mod/contentdesigner/cdelement/chapter/styles.css
(#1) Expected line length to be no more than 132 characters (max-line-length)

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]