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

(202 errors, 17 warnings)

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

admin/tool/my_external_backup_restore_courses/classes/reportbuilder/local/entities/course_restoration_task.php
(#45) Expected at least 1 space before "."; 0 found
(#45) Expected at least 1 space after "."; 0 found
(#115) Only one argument is allowed per line in a multi-line function call
(#115) Only one argument is allowed per line in a multi-line function call
(#121) Expected 0 spaces before closing bracket; 1 found
(#122) Expected 1 space after FUNCTION keyword; 0 found
(#136) Only one argument is allowed per line in a multi-line function call
(#136) Expected at least 1 space before "."; 0 found
(#136) Expected at least 1 space after "."; 0 found
(#136) Only one argument is allowed per line in a multi-line function call
(#136) Only one argument is allowed per line in a multi-line function call
(#137) Expected at least 1 space before "."; 0 found
(#137) Expected at least 1 space after "."; 0 found
(#137) Expected at least 1 space before "."; 0 found
(#137) Expected at least 1 space after "."; 0 found
(#144) Expected at least 1 space before "="; 0 found
(#144) Expected at least 1 space after "="; 0 found
(#144) Expected 1 space before "="; 0 found
(#144) Expected 1 space after "="; 0 found
(#145) Expected 1 space after SWITCH keyword; 0 found
(#168) Only one argument is allowed per line in a multi-line function call
(#168) Only one argument is allowed per line in a multi-line function call
(#183) Only one argument is allowed per line in a multi-line function call
(#183) Only one argument is allowed per line in a multi-line function call
(#190) Only one argument is allowed per line in a multi-line function call
(#190) Only one argument is allowed per line in a multi-line function call
(#195) Expected at least 1 space before "="; 0 found
(#195) Expected 1 space before "="; 0 found
(#197) Only one argument is allowed per line in a multi-line function call
(#197) Only one argument is allowed per line in a multi-line function call
(#211) Opening parenthesis of a multi-line function call must be the last content on the line
(#215) Opening parenthesis of a multi-line function call must be the last content on the line
(#216) Multi-line function call not indented correctly; expected 28 spaces but found 32
(#216) Closing parenthesis of a multi-line function call must be on a line by itself
(#216) Opening parenthesis of a multi-line function call must be the last content on the line
(#217) Only one argument is allowed per line in a multi-line function call
(#217) Closing parenthesis of a multi-line function call must be on a line by itself
(#226) Only one argument is allowed per line in a multi-line function call
(#226) Opening parenthesis of a multi-line function call must be the last content on the line
(#227) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#227) Closing parenthesis of a multi-line function call must be on a line by itself
(#227) Only one argument is allowed per line in a multi-line function call
(#237) Opening parenthesis of a multi-line function call must be the last content on the line
(#238) Multi-line function call not indented correctly; expected 24 spaces but found 28
(#238) Closing parenthesis of a multi-line function call must be on a line by itself
(#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
(#259) Expected 0 spaces before closing bracket; 1 found
(#278) Only one argument is allowed per line in a multi-line function call
(#278) Only one argument is allowed per line in a multi-line function call
(#301) Expected 0 spaces before closing bracket; 1 found
(#315) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#334) Opening parenthesis of a multi-line function call must be the last content on the line
(#335) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#335) Closing parenthesis of a multi-line function call must be on a line by itself
(#398) Expected 1 space after FUNCTION keyword; 0 found
(#423) Expected 1 space after FUNCTION keyword; 0 found
(#481) Expected 1 space after FUNCTION keyword; 0 found
(#534) The closing brace for the class must go on the next line after the body
admin/tool/my_external_backup_restore_courses/classes/reportbuilder/local/systemreports/course_restoration_tasks.php
(#80) Expected at least 1 space before "."; 0 found
(#80) Expected at least 1 space after "."; 0 found
(#81) Expected at least 1 space before "."; 0 found
(#81) Expected at least 1 space after "."; 0 found
(#82) Expected at least 1 space before "."; 0 found
(#82) Expected at least 1 space after "."; 0 found
(#83) Expected at least 1 space before "."; 0 found
(#83) Expected at least 1 space after "."; 0 found
(#84) Expected at least 1 space before "."; 0 found
(#84) Expected at least 1 space after "."; 0 found
(#85) Expected at least 1 space before "."; 0 found
(#85) 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
(#88) Inline comments must start with a capital letter, digit or 3-dots sequence
(#88) Inline comments must end in full-stops, exclamation marks, or question marks
(#88) This comment is 70% valid code; is this commented out code?
(#88) No space found before comment text; expected "// if (has_capability('moodle/site:config', $systemcontext)) {" but found "//if (has_capability('moodle/site:config', $systemcontext)) {"
(#89) Expected at least 1 space before "."; 0 found
(#89) Expected at least 1 space after "."; 0 found
(#89) A comma after the last array item in a single-line array is not allowed.
(#89) Commas (,) must be followed by white space.
(#90) Inline comments must start with a capital letter, digit or 3-dots sequence
(#90) No space found before comment text; expected "// }" but found "//}"
(#92) Expected at least 1 space before "."; 0 found
(#92) 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
(#94) Expected at least 1 space before "."; 0 found
(#94) Expected at least 1 space after "."; 0 found
(#95) Expected at least 1 space before "."; 0 found
(#95) Expected at least 1 space after "."; 0 found
(#96) Expected at least 1 space before "."; 0 found
(#96) Expected at least 1 space after "."; 0 found
(#97) Expected at least 1 space before "."; 0 found
(#97) Expected at least 1 space after "."; 0 found
(#99) Expected at least 1 space before "."; 0 found
(#99) Expected at least 1 space after "."; 0 found
(#101) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#110) Expected at least 1 space before "."; 0 found
(#110) Expected at least 1 space after "."; 0 found
(#111) Expected at least 1 space before "."; 0 found
(#111) Expected at least 1 space after "."; 0 found
(#112) Expected at least 1 space before "."; 0 found
(#112) Expected at least 1 space after "."; 0 found
(#113) Expected at least 1 space before "."; 0 found
(#113) Expected at least 1 space after "."; 0 found
(#114) Expected at least 1 space before "."; 0 found
(#114) Expected at least 1 space after "."; 0 found
(#115) Expected at least 1 space before "."; 0 found
(#115) 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
(#117) Expected at least 1 space before "."; 0 found
(#117) Expected at least 1 space after "."; 0 found
(#118) Expected at least 1 space before "."; 0 found
(#118) Expected at least 1 space after "."; 0 found
(#119) Expected at least 1 space before "."; 0 found
(#119) Expected at least 1 space after "."; 0 found
(#120) Expected at least 1 space before "."; 0 found
(#120) Expected at least 1 space after "."; 0 found
(#121) Expected at least 1 space before "."; 0 found
(#121) Expected at least 1 space after "."; 0 found
(#122) Expected at least 1 space before "."; 0 found
(#122) Expected at least 1 space after "."; 0 found
admin/tool/my_external_backup_restore_courses/index.php
(#31) Expected at least 1 space before "."; 0 found
(#31) Expected at least 1 space after "."; 0 found
(#32) Inline comments must end in full-stops, exclamation marks, or question marks
(#32) No space found before comment text; expected "// TODO breadcrumb" but found "//TODO breadcrumb"
(#33) Opening parenthesis of a multi-line function call must be the last content on the line
(#33) Only one argument is allowed per line in a multi-line function call
(#33) Only one argument is allowed per line in a multi-line function call
(#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
admin/tool/my_external_backup_restore_courses/lang/en/tool_my_external_backup_restore_courses.php
(#33) The string key "withuserdatas_false" is not in the correct order, it should be before "withuserdatas_true"
(#34) The string key "deletedcourse" is not in the correct order, it should be before "withuserdatas_false"
(#36) The string key "externalcoursename" is not in the correct order, it should be before "shortnameXfullname"
(#37) The string key "externalcourseid" is not in the correct order, it should be before "externalcoursename"
(#38) The string key "course_restoration_task" is not in the correct order, it should be before "externalcourseid"
(#40) The string key "id" is not in the correct order, it should be before "status"
(#42) The string key "courseid" is not in the correct order, it should be before "withuserdatas"
(#44) The string key "internalcategory" is not in the correct order, it should be before "userid"
(#48) The string key "source" is not in the correct order, it should be before "timescheduleprocessed"
(#49) The string key "externalmoodleurl" is not in the correct order, it should be before "source"
(#50) The string key "cancelledstatus" is not in the correct order, it should be before "externalmoodleurl"
admin/tool/my_external_backup_restore_courses/restorecourseforuser.php
(#33) Expected at least 1 space before "."; 0 found
(#33) Expected at least 1 space after "."; 0 found
(#34) Expected at least 1 space before "."; 0 found
(#34) Expected at least 1 space after "."; 0 found
(#53) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#53) Closing parenthesis of a multi-line function call must be on a line by itself
(#67) Opening parenthesis of a multi-line function call must be the last content on the line
(#68) Multi-line function call not indented correctly; expected 0 spaces but found 4
(#68) Closing parenthesis of a multi-line function call must be on a line by itself
(#71) Expected "if (...) {\n"; found "if(...) {\n"
(#71) Expected 1 space after IF keyword; 0 found
admin/tool/my_external_backup_restore_courses/restorecourseforuser_form.php
(#49) Expected at least 1 space before "."; 0 found
(#49) Expected at least 1 space after "."; 0 found
(#52) Expected at least 1 space after "."; 0 found
(#53) Expected at least 1 space after "."; 0 found
(#63) Opening parenthesis of a multi-line function call must be the last content on the line
(#63) Only one argument is allowed per line in a multi-line function call
(#65) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#65) Only one argument is allowed per line in a multi-line function call
(#65) Closing parenthesis of a multi-line function call must be on a line by itself
(#66) This comment is 73% valid code; is this commented out code?
(#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
(#73) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#73) Closing parenthesis of a multi-line function call must be on a line by itself
(#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 12 spaces but found 16
(#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
(#78) Only one argument is allowed per line in a multi-line function call
(#79) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#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
(#80) Opening parenthesis of a multi-line function call must be the last content on the line
(#80) Only one argument is allowed per line in a multi-line function call
(#81) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#81) Closing parenthesis of a multi-line function call must be on a line by itself
(#83) Opening parenthesis of a multi-line function call must be the last content on the line
(#83) Only one argument is allowed per line in a multi-line function call
(#84) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#84) Closing parenthesis of a multi-line function call must be on a line by itself
(#85) Opening parenthesis of a multi-line function call must be the last content on the line
(#85) Only one argument is allowed per line in a multi-line function call
(#86) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#86) Closing parenthesis of a multi-line function call must be on a line by itself
(#92) Opening parenthesis of a multi-line function call must be the last content on the line
(#92) Only one argument is allowed per line in a multi-line function call
(#93) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#93) Only one argument is allowed per line in a multi-line function call
(#93) Closing parenthesis of a multi-line function call must be on a line by itself
(#95) 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) Opening parenthesis of a multi-line function call must be the last content on the line
(#96) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#96) Closing parenthesis of a multi-line function call must be on a line by itself
(#101) Blank line found at end of control structure
(#104) Missing docblock for function reset
(#104) Expected 1 space before opening brace; found 0
(#107) The first expression of a multi-line control structure must be on the line after the opening parenthesis
admin/tool/my_external_backup_restore_courses/settings.php
(#28) Opening parenthesis of a multi-line function call must be the last content on the line
(#30) Multi-line function call not indented correctly; expected 0 spaces but found 4
(#31) Expected 0 spaces before closing parenthesis; newline found
(#35) Opening parenthesis of a multi-line function call must be the last content on the line
(#40) Multi-line function call not indented correctly; expected 4 spaces but found 12
(#40) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#40) Closing parenthesis of a multi-line function call must be on a line by itself
(#40) Closing parenthesis of a multi-line function call must be on a line by itself
(#42) Opening parenthesis of a multi-line function call must be the last content on the line
(#47) Multi-line function call not indented correctly; expected 0 spaces but found 8
(#47) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#47) Closing parenthesis of a multi-line function call must be on a line by itself
(#47) Closing parenthesis of a multi-line function call must be on a line by itself

Javascript coding style problems

(10 errors, 6 warnings)

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

admin/tool/my_external_backup_restore_courses/module.js
(#2) A space is required after ','. (comma-spacing)
(#4) Missing space before opening brace. (space-before-blocks)
(#5) Operator '>' must be spaced. (space-infix-ops)
(#6) 'enrolmentModeList' is not defined. (no-undef)
(#6) Operator '+' must be spaced. (space-infix-ops)
(#7) 'withuserdatas' is not defined. (no-undef)
(#7) Operator '+' must be spaced. (space-infix-ops)
(#9) 'enrolmentModeList' is not defined. (no-undef)
(#10) 'withuserdatas' is not defined. (no-undef)
(#12) 'withuserdatas' is not defined. (no-undef)
(#13) 'enrolmentModeList' is not defined. (no-undef)
(#15) 'enrolmentModeList' is not defined. (no-undef)
(#20) 'checkboxs' is not defined. (no-undef)
(#21) 'checkboxs' is not defined. (no-undef)
(#22) Expected space(s) after "if". (keyword-spacing)
(#23) 'id' is not defined. (no-undef)

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

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

Problems running grunt
Task "gherkinlint" failed. Use --force to continue.

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

(14 errors, 0 warnings)

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

admin/tool/my_external_backup_restore_courses/tests/behat/restorecourseforuser_enrolmentmode.feature
(#3) Missing Feature name
(#66) Multiple empty lines are not allowed
(#85) Multiple empty lines are not allowed
(#124) Multiple empty lines are not allowed
(#125) Multiple empty lines are not allowed
admin/tool/my_external_backup_restore_courses/tests/behat/restorecourseforuser.feature
(#3) Feature name is already used in: admin/tool/my_external_backup_restore_courses/tests/behat/restorecourseforuser_enrolmentmode.feature
(#3) Missing Feature name
(#29) Multiple empty lines are not allowed
(#30) Multiple empty lines are not allowed
admin/tool/my_external_backup_restore_courses/tests/behat/restorecourseforuser_withcapa.feature
(#3) Feature name is already used in: admin/tool/my_external_backup_restore_courses/tests/behat/restorecourseforuser_enrolmentmode.feature, admin/tool/my_external_backup_restore_courses/tests/behat/restorecourseforuser.feature
(#3) Missing Feature name
(#36) Multiple empty lines are not allowed
(#37) Multiple empty lines are not allowed
(#71) New line at EOF(end of file) is required