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

(218 errors, 1 warnings)

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

mod/unilabel/classes/completion/custom_completion.php
(#33) Opening brace must not be followed by a blank line
mod/unilabel/classes/edit_content_form.php
(#41) Property name "$_course" should not be prefixed with an underscore to indicate visibility
(#117) Opening parenthesis of a multi-line function call must be the last content on the line
(#141) Opening parenthesis of a multi-line function call must be the last content on the line
(#142) Multi-line function call not indented correctly; expected 12 spaces but found 36
(#143) Multi-line function call not indented correctly; expected 12 spaces but found 36
(#144) Multi-line function call not indented correctly; expected 12 spaces but found 36
(#145) Multi-line function call not indented correctly; expected 12 spaces but found 36
(#146) Multi-line function call not indented correctly; expected 12 spaces but found 36
(#147) Multi-line function call not indented correctly; expected 8 spaces but found 36
(#147) Closing parenthesis of a multi-line function call must be on a line by itself
mod/unilabel/classes/factory.php
(#125) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#125) Closing parenthesis of a multi-line function call must be on a line by itself
(#126) Expected 0 spaces before closing parenthesis; newline found
mod/unilabel/classes/output/edit_element_base.php
(#35) The interface names in a "class implements" statement should be ordered alphabetically. Expected: \templatable, \renderable; Found: \renderable, \templatable
(#35) Opening brace must not be followed by a blank line
(#183) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#183) Multi-line function declarations must define one parameter per line
(#184) Multi-line function declaration not indented correctly; expected 8 spaces but found 40
(#184) Multi-line function declarations must define one parameter per line
(#184) Multi-line function declarations must define one parameter per line
(#184) The closing parenthesis of a multi-line function declaration must be on a new line
(#214) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#214) Multi-line function declarations must define one parameter per line
(#215) Multi-line function declaration not indented correctly; expected 8 spaces but found 44
(#215) Multi-line function declarations must define one parameter per line
(#215) Multi-line function declarations must define one parameter per line
(#215) The closing parenthesis of a multi-line function declaration must be on a new line
(#354) Function closing brace must go on the next line following the body; found 1 blank lines before brace
mod/unilabel/classes/setting_configselect_button.php
(#161) Expected 1 space between the comma and "'prev'". Found: 10 spaces
(#162) Expected 1 space between the comma and "'prev'". Found: 3 spaces
(#163) Expected 1 space between the comma and "'prev'". Found: 14 spaces
(#164) Expected 1 space between the comma and "'prev'". Found: 10 spaces
(#165) Expected 1 space between the comma and "'prev'". Found: 9 spaces
(#166) Expected 1 space between the comma and "'prev'". Found: 10 spaces
(#167) Expected 1 space between the comma and "'prev'". Found: 3 spaces
(#173) Expected 1 space between the comma and "'prev'". Found: 2 spaces
(#175) Expected 1 space between the comma and "'prev'". Found: 12 spaces
(#176) Expected 1 space between the comma and "'prev'". Found: 2 spaces
(#178) Expected 1 space between the comma and "'prev'". Found: 2 spaces
(#179) Expected 1 space between the comma and "'prev'". Found: 5 spaces
(#184) Function closing brace must go on the next line following the body; found 1 blank lines before brace
mod/unilabel/classes/tinymce_helper.php
(#47) Long list syntax is not allowed
mod/unilabel/edit_content.php
(#89) Only one argument is allowed per line in a multi-line function call
mod/unilabel/lib.php
(#336) Long list syntax is not allowed
(#359) Blank line found at end of control structure
mod/unilabel/tests/behat/behat_mod_unilabel.php
(#28) Useless alias "TableNode" found for import of "Behat\Gherkin\Node\TableNode"
(#84) The closing brace for the class must go on the next line after the body
mod/unilabel/type/accordion/backup/moodle2/backup_unilabeltype_accordion_subplugin.class.php
(#33) Opening parenthesis of a multi-line function call must be the last content on the line
mod/unilabel/type/accordion/classes/content_type.php
(#315) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#319) Each line in a multi-line control structure must be indented at least once; expected at least 12 spaces, but found 8
(#319) The closing parenthesis of a multi-line control structure must be on the line after the last expression
mod/unilabel/type/accordion/classes/output/edit_element.php
(#35) Opening brace must not be followed by a blank line
(#99) The closing brace for the class must go on the next line after the body
mod/unilabel/type/accordion/db/upgrade.php
(#48) Blank line found at start of control structure
(#63) Blank line found at start of control structure
mod/unilabel/type/accordion/settings.php
(#30) Opening parenthesis of a multi-line function call must be the last content on the line
(#33) Multi-line function call not indented correctly; expected 0 spaces but found 4
(#33) Closing parenthesis of a multi-line function call must be on a line by itself
(#35) Opening parenthesis of a multi-line function call must be the last content on the line
mod/unilabel/type/carousel/backup/moodle2/backup_unilabeltype_carousel_subplugin.class.php
(#54) Opening parenthesis of a multi-line function call must be the last content on the line
mod/unilabel/type/carousel/classes/content_type.php
(#118) Opening parenthesis of a multi-line function call must be the last content on the line
(#121) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#121) Closing parenthesis of a multi-line function call must be on a line by itself
(#185) Empty lines are not allowed in multi-line function calls
mod/unilabel/type/carousel/classes/output/edit_element.php
(#35) Opening brace must not be followed by a blank line
(#151) The closing brace for the class must go on the next line after the body
mod/unilabel/type/carousel/db/upgrade.php
(#38) Blank line found at start of control structure
(#53) Blank line found at start of control structure
(#68) Blank line found at start of control structure
(#91) Blank line found at start of control structure
(#106) Blank line found at start of control structure
mod/unilabel/type/carousel/settings.php
(#31) Opening parenthesis of a multi-line function call must be the last content on the line
(#34) Multi-line function call not indented correctly; expected 0 spaces but found 4
(#34) Closing parenthesis of a multi-line function call must be on a line by itself
(#36) Opening parenthesis of a multi-line function call must be the last content on the line
(#43) Opening parenthesis of a multi-line function call must be the last content on the line
(#52) Opening parenthesis of a multi-line function call must be the last content on the line
(#59) Opening parenthesis of a multi-line function call must be the last content on the line
(#65) Opening parenthesis of a multi-line function call must be the last content on the line
(#71) Opening parenthesis of a multi-line function call must be the last content on the line
mod/unilabel/type/collapsedtext/classes/content_type.php
(#148) Expected at least 1 space before "."; 0 found
mod/unilabel/type/collapsedtext/db/upgrade.php
(#38) Blank line found at start of control structure
(#62) Blank line found at start of control structure
mod/unilabel/type/collapsedtext/settings.php
(#31) Opening parenthesis of a multi-line function call must be the last content on the line
(#34) Multi-line function call not indented correctly; expected 0 spaces but found 4
(#34) Closing parenthesis of a multi-line function call must be on a line by itself
mod/unilabel/type/courseteaser/settings.php
(#31) Opening parenthesis of a multi-line function call must be the last content on the line
(#37) Opening parenthesis of a multi-line function call must be the last content on the line
(#44) Opening parenthesis of a multi-line function call must be the last content on the line
(#52) Opening parenthesis of a multi-line function call must be the last content on the line
(#71) Opening parenthesis of a multi-line function call must be the last content on the line
(#77) Opening parenthesis of a multi-line function call must be the last content on the line
mod/unilabel/type/grid/classes/content_type.php
(#183) Empty lines are not allowed in multi-line function calls
mod/unilabel/type/grid/classes/output/edit_element.php
(#35) Opening brace must not be followed by a blank line
mod/unilabel/type/grid/db/upgrade.php
(#61) Blank line found at start of control structure
(#76) Blank line found at start of control structure
(#91) Blank line found at start of control structure
(#106) Blank line found at start of control structure
mod/unilabel/type/grid/settings.php
(#31) Opening parenthesis of a multi-line function call must be the last content on the line
(#34) Multi-line function call not indented correctly; expected 0 spaces but found 4
(#34) Closing parenthesis of a multi-line function call must be on a line by itself
(#37) Opening parenthesis of a multi-line function call must be the last content on the line
(#46) Opening parenthesis of a multi-line function call must be the last content on the line
(#53) Opening parenthesis of a multi-line function call must be the last content on the line
(#59) Opening parenthesis of a multi-line function call must be the last content on the line
mod/unilabel/type/imageboard/backup/moodle2/backup_unilabeltype_imageboard_subplugin.class.php
(#34) Opening brace must not be followed by a blank line
(#45) Opening parenthesis of a multi-line function call must be the last content on the line
(#59) Opening parenthesis of a multi-line function call must be the last content on the line
mod/unilabel/type/imageboard/backup/moodle2/restore_unilabeltype_imageboard_subplugin.class.php
(#34) Opening brace must not be followed by a blank line
(#97) Opening parenthesis of a multi-line function call must be the last content on the line
(#99) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#99) Closing parenthesis of a multi-line function call must be on a line by itself
(#104) The closing brace for the class must go on the next line after the body
mod/unilabel/type/imageboard/classes/content_type.php
(#114) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#115) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#116) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#117) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#118) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#153) Opening parenthesis of a multi-line function call must be the last content on the line
(#154) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#155) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#156) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#156) Closing parenthesis of a multi-line function call must be on a line by itself
(#165) Opening parenthesis of a multi-line function call must be the last content on the line
(#166) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#167) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#168) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#168) Closing parenthesis of a multi-line function call must be on a line by itself
(#296) Empty lines are not allowed in multi-line function calls
(#431) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#432) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#433) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#434) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#435) Each line in a multi-line control structure must be indented at least once; expected at least 12 spaces, but found 8
(#435) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#506) Expected at least 1 space before "."; 0 found
(#506) Expected at least 1 space after "."; 0 found
(#507) Expected at least 1 space before "."; 0 found
(#507) Expected at least 1 space after "."; 0 found
(#508) Expected at least 1 space before "."; 0 found
(#508) Expected at least 1 space after "."; 0 found
(#714) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#715) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#716) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#717) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#718) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#719) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#737) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#738) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#739) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#740) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#741) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#742) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#803) The closing brace for the class must go on the next line after the body
mod/unilabel/type/imageboard/classes/output/edit_element.php
(#35) Opening brace must not be followed by a blank line
(#153) The closing brace for the class must go on the next line after the body
mod/unilabel/type/imageboard/classes/output/imageboard_preview.php
(#36) Opening brace must not be followed by a blank line
mod/unilabel/type/imageboard/classes/output/imageboard_view.php
(#37) Opening brace must not be followed by a blank line
(#131) Each PHP statement must be on a line by itself
mod/unilabel/type/imageboard/lib.php
(#52) Expected at least 1 space before "."; 0 found
(#52) Expected at least 1 space after "."; 0 found
(#52) Expected at least 1 space before "."; 0 found
(#52) Expected at least 1 space after "."; 0 found
(#52) Expected at least 1 space before "."; 0 found
(#52) Expected at least 1 space after "."; 0 found
(#52) Expected at least 1 space before "."; 0 found
(#52) Expected at least 1 space after "."; 0 found
(#52) Expected at least 1 space before "."; 0 found
(#52) Expected at least 1 space after "."; 0 found
mod/unilabel/type/imageboard/settings.php
(#32) Opening parenthesis of a multi-line function call must be the last content on the line
(#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
(#38) Opening parenthesis of a multi-line function call must be the last content on the line
(#46) Opening parenthesis of a multi-line function call must be the last content on the line
(#54) 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
(#63) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#64) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#65) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#66) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#69) Opening parenthesis of a multi-line function call must be the last content on the line
(#70) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#71) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#72) Multi-line function call not indented correctly; expected 0 spaces but found 8
(#72) Space found before comma in argument list
(#72) Expected no space between ")" and the comma. Found: a new line
(#72) Only one argument is allowed per line in a multi-line function call
(#72) Closing parenthesis of a multi-line function call must be on a line by itself
(#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 4 spaces but found 8
(#76) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#77) Multi-line function call not indented correctly; expected 0 spaces but found 8
(#77) Space found before comma in argument list
(#77) Expected no space between ")" and the comma. Found: a new line
(#77) Only one argument is allowed per line in a multi-line function call
(#77) Closing parenthesis of a multi-line function call must be on a line by itself
(#80) Opening parenthesis of a multi-line function call must be the last content on the line
(#81) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#82) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#83) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#84) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#88) 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
mod/unilabel/type/imageboard/tests/generator_test.php
(#36) Opening brace must not be followed by a blank line
mod/unilabel/type/simpletext/classes/content_type.php
(#35) Opening brace must not be followed by a blank line
mod/unilabel/type/simpletext/tests/generator_test.php
(#36) Opening brace must not be followed by a blank line
mod/unilabel/type/topicteaser/classes/content_type.php
(#513) Opening parenthesis of a multi-line function call must be the last content on the line
(#513) Only one argument is allowed per line in a multi-line function call
(#516) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#516) Only one argument is allowed per line in a multi-line function call
(#516) Closing parenthesis of a multi-line function call must be on a line by itself
mod/unilabel/type/topicteaser/settings.php
(#31) Opening parenthesis of a multi-line function call must be the last content on the line
(#37) Opening parenthesis of a multi-line function call must be the last content on the line
(#44) Opening parenthesis of a multi-line function call must be the last content on the line
(#52) Opening parenthesis of a multi-line function call must be the last content on the line
(#83) Opening parenthesis of a multi-line function call must be the last content on the line
(#89) Opening parenthesis of a multi-line function call must be the last content on the line
(#95) Opening parenthesis of a multi-line function call must be the last content on the line

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

(1 errors, 0 warnings)

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

Problems running grunt

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]

mod/unilabel/type/imageboard/templates/imageboard_preview.mustache
(#1) HTML Validation info, line 26: The “inputmode” attribute is not supported in all browsers. Please be sure to test, and consider using a polyfill. ( <input id="unilabeltype-imageboard-snap" type="number" min="1" max="100" step="1" value="1" inputmode="decimal"> )

Gherkin .feature problems

(0 errors, 0 warnings)

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