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, 16 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
(#44) Expected at least 1 space before "."; 0 found
(#44) Expected at least 1 space after "."; 0 found
(#114) Only one argument is allowed per line in a multi-line function call
(#114) Only one argument is allowed per line in a multi-line function call
(#120) Expected 0 spaces before closing bracket; 1 found
(#121) Expected 1 space after FUNCTION keyword; 0 found
(#135) Only one argument is allowed per line in a multi-line function call
(#135) Expected at least 1 space before "."; 0 found
(#135) Expected at least 1 space after "."; 0 found
(#135) Only one argument is allowed per line in a multi-line function call
(#135) 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) Expected at least 1 space before "."; 0 found
(#136) Expected at least 1 space after "."; 0 found
(#143) Expected at least 1 space before "="; 0 found
(#143) Expected at least 1 space after "="; 0 found
(#143) Expected 1 space before "="; 0 found
(#143) Expected 1 space after "="; 0 found
(#144) Expected 1 space after SWITCH keyword; 0 found
(#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
(#182) Only one argument is allowed per line in a multi-line function call
(#182) Only one argument is allowed per line in a multi-line function call
(#189) Only one argument is allowed per line in a multi-line function call
(#189) Only one argument is allowed per line in a multi-line function call
(#194) Expected at least 1 space before "="; 0 found
(#194) Expected 1 space before "="; 0 found
(#196) Only one argument is allowed per line in a multi-line function call
(#196) Only one argument is allowed per line in a multi-line function call
(#210) Opening parenthesis of a multi-line function call must be the last content on the line
(#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 28 spaces but found 32
(#215) Closing parenthesis of a multi-line function call must be on a line by itself
(#215) Opening parenthesis of a multi-line function call must be the last content on the line
(#216) Only one argument is allowed per line in a multi-line function call
(#216) Closing parenthesis of a multi-line function call must be on a line by itself
(#225) Only one argument is allowed per line in a multi-line function call
(#225) Opening parenthesis of a multi-line function call must be the last content on the line
(#226) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#226) 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
(#236) Opening parenthesis of a multi-line function call must be the last content on the line
(#237) Multi-line function call not indented correctly; expected 24 spaces but found 28
(#237) Closing parenthesis of a multi-line function call must be on a line by itself
(#253) Only one argument is allowed per line in a multi-line function call
(#253) Only one argument is allowed per line in a multi-line function call
(#258) Expected 0 spaces before closing bracket; 1 found
(#277) Only one argument is allowed per line in a multi-line function call
(#277) Only one argument is allowed per line in a multi-line function call
(#300) Expected 0 spaces before closing bracket; 1 found
(#314) Function closing brace must go on the next line following the body; found 1 blank lines before brace
(#333) Opening parenthesis of a multi-line function call must be the last content on the line
(#334) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#334) Closing parenthesis of a multi-line function call must be on a line by itself
(#397) Expected 1 space after FUNCTION keyword; 0 found
(#422) Expected 1 space after FUNCTION keyword; 0 found
(#480) Expected 1 space after FUNCTION keyword; 0 found
(#533) 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
(#31) Expected at least 1 space before "."; 0 found
(#31) Expected at least 1 space after "."; 0 found
(#32) Expected at least 1 space before "."; 0 found
(#32) Expected at least 1 space after "."; 0 found
(#51) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#51) 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 0 spaces but found 4
(#66) Closing parenthesis of a multi-line function call must be on a line by itself
(#69) Expected "if (...) {\n"; found "if(...) {\n"
(#69) Expected 1 space after IF keyword; 0 found
admin/tool/my_external_backup_restore_courses/restorecourseforuser_form.php
(#47) Expected at least 1 space before "."; 0 found
(#47) Expected at least 1 space after "."; 0 found
(#50) Expected at least 1 space after "."; 0 found
(#51) Expected at least 1 space after "."; 0 found
(#61) Opening parenthesis of a multi-line function call must be the last content on the line
(#61) Only one argument is allowed per line in a multi-line function call
(#63) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#63) Only one argument is allowed per line in a multi-line function call
(#63) 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
(#67) Only one argument is allowed per line in a multi-line function call
(#69) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#69) Closing parenthesis of a multi-line function call must be on a line by itself
(#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
(#72) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#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
(#74) Only one argument is allowed per line in a multi-line function call
(#75) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#75) Only one argument is allowed per line in a multi-line function call
(#75) Only one argument is allowed per line in a multi-line function call
(#75) 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
(#76) Only one argument is allowed per line in a multi-line function call
(#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
(#79) 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
(#80) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#80) 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
(#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
(#88) Opening parenthesis of a multi-line function call must be the last content on the line
(#88) Only one argument is allowed per line in a multi-line function call
(#89) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#89) Only one argument is allowed per line in a multi-line function call
(#89) Closing parenthesis of a multi-line function call must be on a line by itself
(#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
(#91) Only one argument is allowed per line in a multi-line function call
(#91) Opening parenthesis of a multi-line function call must be the last content on the line
(#92) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#92) Closing parenthesis of a multi-line function call must be on a line by itself
(#97) Blank line found at end of control structure
(#100) Missing docblock for function reset
(#100) Expected 1 space before opening brace; found 0
(#103) 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_withcapa.feature
(#3) Feature name is already used in: admin/tool/my_external_backup_restore_courses/tests/behat/restorecourseforuser_enrolmentmode.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
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, admin/tool/my_external_backup_restore_courses/tests/behat/restorecourseforuser_withcapa.feature
(#3) Missing Feature name
(#29) Multiple empty lines are not allowed
(#30) Multiple empty lines are not allowed