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

(310 errors, 1 warnings)

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

mod/opencast/backup/moodle2/backup_opencast_activity_task.class.php
(#33) Opening brace must not be followed by a blank line
(#57) Expected at least 1 space before "."; 0 found
(#57) Expected at least 1 space after "."; 0 found
(#60) Expected at least 1 space before "."; 0 found
(#60) Expected at least 1 space after "."; 0 found
(#60) Expected at least 1 space before "."; 0 found
(#60) 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
(#65) Expected at least 1 space before "."; 0 found
(#65) Expected at least 1 space after "."; 0 found
(#70) Expected at least 1 space before "."; 0 found
(#70) Expected at least 1 space after "."; 0 found
(#70) Expected at least 1 space before "."; 0 found
(#70) Expected at least 1 space after "."; 0 found
mod/opencast/backup/moodle2/backup_opencast_stepslib.php
(#28) Opening brace must not be followed by a blank line
(#52) Function closing brace must go on the next line following the body; found 1 blank lines before brace
mod/opencast/backup/moodle2/restore_opencast_activity_task.class.php
(#32) Opening brace must not be followed by a blank line
(#74) Function closing brace must go on the next line following the body; found 1 blank lines before brace
mod/opencast/backup/moodle2/restore_opencast_stepslib.php
(#28) Opening brace must not be followed by a blank line
mod/opencast/classes/event/course_module_viewed.php
(#34) Opening brace must not be followed by a blank line
mod/opencast/classes/local/advancedupload_field.php
(#38) Opening brace must not be followed by a blank line
mod/opencast/classes/local/apibridge.php
(#37) Opening brace must not be followed by a blank line
mod/opencast/classes/local/opencasttype.php
(#34) Opening brace must not be followed by a blank line
mod/opencast/classes/local/output_helper.php
(#40) Opening brace must not be followed by a blank line
(#105) Long list syntax is not allowed
(#152) Opening parenthesis of a multi-line function call must be the last content on the line
(#152) Only one argument is allowed per line in a multi-line function call
(#153) Multi-line function call not indented correctly; expected 8 spaces but found 16
(#153) Closing parenthesis of a multi-line function call must be on a line by itself
(#176) Blank line found at start of control structure
(#192) Opening parenthesis of a multi-line function call must be the last content on the line
(#194) Multi-line function call not indented correctly; expected 28 spaces but found 36
(#194) Only one argument is allowed per line in a multi-line function call
(#194) Only one argument is allowed per line in a multi-line function call
(#194) Closing parenthesis of a multi-line function call must be on a line by itself
(#301) Opening parenthesis of a multi-line function call must be the last content on the line
(#301) Only one argument is allowed per line in a multi-line function call
(#302) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#302) Only one argument is allowed per line in a multi-line function call
(#302) Closing parenthesis of a multi-line function call must be on a line by itself
mod/opencast/classes/local/paella_transform.php
(#32) Opening brace must not be followed by a blank line
(#100) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#101) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#118) Blank line found at end of control structure
(#149) Long list syntax is not allowed
(#243) Long list syntax is not allowed
(#245) Long list syntax is not allowed
(#256) Long list syntax is not allowed
(#263) Long list syntax is not allowed
(#265) Line exceeds 132 characters; contains 149 characters
(#287) Long list syntax is not allowed
mod/opencast/classes/local/table_series_list_view.php
(#35) Opening brace must not be followed by a blank line
mod/opencast/classes/local/upload_helper.php
(#44) Opening brace must not be followed by a blank line
(#153) Multi-line function declarations must define one parameter per line
(#153) Multi-line function declarations must define one parameter per line
(#176) Opening parenthesis of a multi-line function call must be the last content on the line
(#177) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#177) Closing parenthesis of a multi-line function call must be on a line by itself
(#473) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#474) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#574) Opening parenthesis of a multi-line function call must be the last content on the line
(#575) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#575) Closing parenthesis of a multi-line function call must be on a line by itself
(#632) Opening parenthesis of a multi-line function call must be the last content on the line
(#795) Opening parenthesis of a multi-line function call must be the last content on the line
(#796) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#796) Closing parenthesis of a multi-line function call must be on a line by itself
(#800) Opening parenthesis of a multi-line function call must be the last content on the line
(#801) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#801) Only one argument is allowed per line in a multi-line function call
(#801) Closing parenthesis of a multi-line function call must be on a line by itself
mod/opencast/classes/output/inplace_edit_autocomplete_metadata.php
(#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 12 spaces but found 16
(#60) Closing parenthesis of a multi-line function call must be on a line by itself
(#128) Long list syntax is not allowed
mod/opencast/classes/output/inplace_edit_checkbox_metadata.php
(#34) Opening brace must not be followed by a blank line
(#91) Long list syntax is not allowed
mod/opencast/classes/output/inplace_edit_ocinstance_select.php
(#74) Long list syntax is not allowed
mod/opencast/classes/output/inplace_edit_select_metadata.php
(#87) Long list syntax is not allowed
mod/opencast/classes/output/inplace_edit_series_select.php
(#75) Long list syntax is not allowed
mod/opencast/classes/output/inplace_edit_text_metadata.php
(#70) Long list syntax is not allowed
mod/opencast/classes/output/inplace_edit_toggle_visibility.php
(#90) Long list syntax is not allowed
mod/opencast/classes/output/renderer.php
(#38) Opening brace must not be followed by a blank line
(#77) Opening parenthesis of a multi-line function call must be the last content on the line
(#78) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#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
(#81) Opening parenthesis of a multi-line function call must be the last content on the line
(#82) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#82) Closing parenthesis of a multi-line function call must be on a line by itself
(#97) Opening parenthesis of a multi-line function call must be the last content on the line
(#115) Opening parenthesis of a multi-line function call must be the last content on the line
(#121) Opening parenthesis of a multi-line function call must be the last content on the line
(#237) Multi-line function declarations must define one parameter per line
(#237) Multi-line function declarations must define one parameter per line
(#247) Opening parenthesis of a multi-line function call must be the last content on the line
(#249) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#249) Closing parenthesis of a multi-line function call must be on a line by itself
(#261) Only one argument is allowed per line in a multi-line function call
mod/opencast/classes/settings/mod_opencast_admin_settingspage_tabs.php
(#36) Opening brace must not be followed by a blank line
(#109) Expected 1 blank line at end of file; 2 found
mod/opencast/classes/settings/upload_settings_helper.php
(#42) Opening brace must not be followed by a blank line
(#114) Opening parenthesis of a multi-line function call must be the last content on the line
(#115) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#115) Closing parenthesis of a multi-line function call must be on a line by itself
(#122) Opening parenthesis of a multi-line function call must be the last content on the line
(#132) 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
(#160) Opening parenthesis of a multi-line function call must be the last content on the line
(#161) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#161) Closing parenthesis of a multi-line function call must be on a line by itself
(#178) Opening parenthesis of a multi-line function call must be the last content on the line
(#196) Opening parenthesis of a multi-line function call must be the last content on the line
(#197) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#197) Closing parenthesis of a multi-line function call must be on a line by itself
(#214) Opening parenthesis of a multi-line function call must be the last content on the line
(#215) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#215) Closing parenthesis of a multi-line function call must be on a line by itself
(#229) Opening parenthesis of a multi-line function call must be the last content on the line
(#247) Opening parenthesis of a multi-line function call must be the last content on the line
(#248) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#248) Closing parenthesis of a multi-line function call must be on a line by itself
(#272) Opening parenthesis of a multi-line function call must be the last content on the line
(#273) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#273) Closing parenthesis of a multi-line function call must be on a line by itself
(#297) Opening parenthesis of a multi-line function call must be the last content on the line
(#318) Opening parenthesis of a multi-line function call must be the last content on the line
(#339) Opening parenthesis of a multi-line function call must be the last content on the line
(#339) Opening parenthesis of a multi-line function call must be the last content on the line
(#341) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#341) Closing parenthesis of a multi-line function call must be on a line by itself
(#348) Opening parenthesis of a multi-line function call must be the last content on the line
mod/opencast/db/upgrade.php
(#46) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#47) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#125) Blank line found at start of control structure
(#141) Blank line found at start of control structure
mod/opencast/index.php
(#25) Expected at least 1 space before "."; 0 found
(#25) Expected at least 1 space after "."; 0 found
(#27) Expected at least 1 space before "."; 0 found
(#27) Expected at least 1 space after "."; 0 found
(#77) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#77) Closing parenthesis of a multi-line function call must be on a line by itself
(#81) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#81) Closing parenthesis of a multi-line function call must be on a line by itself
mod/opencast/lib.php
(#71) Opening parenthesis of a multi-line function call must be the last content on the line
(#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
(#72) Multi-line function call not indented correctly; expected 4 spaces but found 12
(#72) Closing parenthesis of a multi-line function call must be on a line by itself
(#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
(#100) Multi-line function call not indented correctly; expected 4 spaces but found 12
(#100) Closing parenthesis of a multi-line function call must be on a line by itself
(#179) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#179) Only one argument is allowed per line in a multi-line function call
(#179) Only one argument is allowed per line in a multi-line function call
(#179) Closing parenthesis of a multi-line function call must be on a line by itself
mod/opencast/mod_form.php
(#39) Opening brace must not be followed by a blank line
(#91) Opening parenthesis of a multi-line function call must be the last content on the line
(#91) Only one argument is allowed per line in a multi-line function call
(#92) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#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
(#94) Only one argument is allowed per line in a multi-line function call
(#95) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#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
(#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
mod/opencast/settings.php
(#53) Opening parenthesis of a multi-line function call must be the last content on the line
(#54) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#54) 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) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#59) Closing parenthesis of a multi-line function call must be on a line by itself
(#63) Opening parenthesis of a multi-line function call must be the last content on the line
(#64) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#64) Closing parenthesis of a multi-line function call must be on a line by itself
(#76) Opening parenthesis of a multi-line function call must be the last content on the line
(#77) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#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) Only one argument is allowed per line in a multi-line function call
(#81) Only one argument is allowed per line in a multi-line function call
(#82) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#82) Closing parenthesis of a multi-line function call must be on a line by itself
(#84) Opening parenthesis of a multi-line function call must be the last content on the line
(#86) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#86) Only one argument is allowed per line in a multi-line function call
(#86) Closing parenthesis of a multi-line function call must be on a line by itself
(#88) Opening parenthesis of a multi-line function call must be the last content on the line
(#89) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#90) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#91) Multi-line function call not indented correctly; expected 12 spaces but found 20
(#91) 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) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#95) Closing parenthesis of a multi-line function call must be on a line by itself
(#98) 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
(#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
(#103) Opening parenthesis of a multi-line function call must be the last content on the line
(#105) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#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
(#107) Opening parenthesis of a multi-line function call must be the last content on the line
(#109) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#109) Only one argument is allowed per line in a multi-line function call
(#109) Closing parenthesis of a multi-line function call must be on a line by itself
(#112) Opening parenthesis of a multi-line function call must be the last content on the line
(#113) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#113) Closing parenthesis of a multi-line function call must be on a line by itself
(#117) Blank line found at end of control structure
mod/opencast/tests/behat/behat_mod_opencast.php
(#31) Useless alias "TableNode" found for import of "Behat\Gherkin\Node\TableNode"
(#32) Useless alias "ExpectationException" found for import of "Behat\Mink\Exception\ExpectationException"
(#33) Useless alias "DriverException" found for import of "Behat\Mink\Exception\DriverException"
(#34) Useless alias "ElementNotFoundException" found for import of "Behat\Mink\Exception\ElementNotFoundException"
(#117) Expected at least 1 space before "."; 0 found
(#117) Expected at least 1 space after "."; 0 found
(#118) Long list syntax is not allowed
(#149) Opening parenthesis of a multi-line function call must be the last content on the line
(#150) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#150) Closing parenthesis of a multi-line function call must be on a line by itself
(#171) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#172) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#178) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#204) Blank line found at start of control structure
mod/opencast/uploadvideo.php
(#64) Space found before comma in argument list
(#64) Expected no space between "null" and the comma. Found: 1 space
(#72) Opening parenthesis of a multi-line function call must be the last content on the line
(#72) Only one argument is allowed per line in a multi-line function call
(#73) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#73) Only one argument is allowed per line in a multi-line function call
(#73) Only one argument is allowed per line in a multi-line function call
(#73) Closing parenthesis of a multi-line function call must be on a line by itself
(#93) Opening parenthesis of a multi-line function call must be the last content on the line
(#94) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#94) Only one argument is allowed per line in a multi-line function call
(#94) Only one argument is allowed per line in a multi-line function call
(#94) Closing parenthesis of a multi-line function call must be on a line by itself
(#151) Long list syntax is not allowed
(#152) Space found before comma in argument list
(#152) Expected no space between "$cm" and the comma. Found: 1 space
(#166) Opening parenthesis of a multi-line function call must be the last content on the line
(#167) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#167) Closing parenthesis of a multi-line function call must be on a line by itself
(#168) Opening parenthesis of a multi-line function call must be the last content on the line
(#169) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#169) Only one argument is allowed per line in a multi-line function call
(#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/opencast/uploadvideo_form.php
(#49) Opening brace must not be followed by a blank line
(#173) Multi-line function call not indented correctly; expected 28 spaces but found 32
(#173) Only one argument is allowed per line in a multi-line function call
(#173) Closing parenthesis of a multi-line function call must be on a line by itself
(#251) Only one argument is allowed per line in a multi-line function call
(#321) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#322) The closing parenthesis of a multi-line control structure must be on the line after the last expression
mod/opencast/uploadvideoadvanced.php
(#78) Space found before comma in argument list
(#78) Expected no space between "null" and the comma. Found: 1 space
(#86) Opening parenthesis of a multi-line function call must be the last content on the line
(#86) Only one argument is allowed per line in a multi-line function call
(#87) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#87) Only one argument is allowed per line in a multi-line function call
(#87) Only one argument is allowed per line in a multi-line function call
(#87) Closing parenthesis of a multi-line function call must be on a line by itself
(#106) Opening parenthesis of a multi-line function call must be the last content on the line
(#107) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#107) Only one argument is allowed per line in a multi-line function call
(#107) Only one argument is allowed per line in a multi-line function call
(#107) Closing parenthesis of a multi-line function call must be on a line by itself
(#155) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#156) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#163) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#165) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#195) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#196) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#210) Opening parenthesis of a multi-line function call must be the last content on the line
(#210) Only one argument is allowed per line in a multi-line function call
(#211) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#211) Only one argument is allowed per line in a multi-line function call
(#211) Only one argument is allowed per line in a multi-line function call
(#211) Closing parenthesis of a multi-line function call must be on a line by itself
(#254) Long list syntax is not allowed
(#255) Space found before comma in argument list
(#255) Expected no space between "$cm" and the comma. Found: 1 space
(#269) Opening parenthesis of a multi-line function call must be the last content on the line
(#270) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#270) Closing parenthesis of a multi-line function call must be on a line by itself
(#271) Opening parenthesis of a multi-line function call must be the last content on the line
(#272) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#272) Only one argument is allowed per line in a multi-line function call
(#272) Only one argument is allowed per line in a multi-line function call
(#272) Closing parenthesis of a multi-line function call must be on a line by itself
mod/opencast/uploadvideoadvanced_form.php
(#42) Opening brace must not be followed by a blank line
mod/opencast/view.php
(#32) Expected at least 1 space before "."; 0 found
(#32) Expected at least 1 space after "."; 0 found
(#151) Long list syntax is not allowed
(#152) Space found before comma in argument list
(#152) Expected no space between "$cm" and the comma. Found: 1 space
(#160) Opening parenthesis of a multi-line function call must be the last content on the line
(#160) Only one argument is allowed per line in a multi-line function call
(#161) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#161) Closing parenthesis of a multi-line function call must be on a line by itself

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, 1 warnings)

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

mod/opencast/styles.css
(#124) Unexpected unit (length-zero-no-unit)

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]

mod/opencast/templates/series.mustache
(#1) HTML Validation info, line 6: Trailing slash on void elements has no effect and interacts badly with unquoted attribute values. ( <img src="http://localhost:8080/static/mh_default_org/api/bb495e5f-b737-41c2-9095-4e6e08c963d4/9ff8a2cc-a112-44bd-a799-a63b6c0d63d7/file_example_MOV_1280_1_4MB_1_000s_search.jpg" alt="1. Mein Video, das hat aber irgendwie nen ganz schön langen Titel. Hui, das hätte ich ja nicht erwartet!"/> )

Gherkin .feature problems

(0 errors, 0 warnings)

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