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

(566 errors, 86 warnings)

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

mod/accredible/backup/moodle2/backup_accredible_activity_task.class.php
(#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
mod/accredible/backup/moodle2/backup_accredible_stepslib.php
(#28) Opening brace must not be followed by a blank line
mod/accredible/backup/moodle2/restore_accredible_activity_task.class.php
(#35) Opening brace must not be followed by a blank line
(#75) Function closing brace must go on the next line following the body; found 1 blank lines before brace
mod/accredible/backup/moodle2/restore_accredible_stepslib.php
(#28) Opening brace must not be followed by a blank line
mod/accredible/classes/Html2Text/Html2Text.php
(#298) Blank line found at start of control structure
(#303) Blank line found at start of control structure
(#308) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#310) The closing parenthesis of a multi-line control structure must be on the line after the last expression
mod/accredible/classes/apirest/apirest.php
(#109) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#109) Multi-line function declarations must define one parameter per line
(#110) Multi-line function declarations must define one parameter per line
(#110) Multi-line function declarations must define one parameter per line
(#110) Multi-line function declarations must define one parameter per line
(#110) The closing parenthesis of a multi-line function declaration must be on a new line
(#153) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#153) Multi-line function declarations must define one parameter per line
(#153) Multi-line function declarations must define one parameter per line
(#154) Multi-line function declarations must define one parameter per line
(#154) Multi-line function declarations must define one parameter per line
(#154) The closing parenthesis of a multi-line function declaration must be on a new line
(#186) Only one argument is allowed per line in a multi-line function call
(#186) Only one argument is allowed per line in a multi-line function call
(#186) Only one argument is allowed per line in a multi-line function call
(#186) Only one argument is allowed per line in a multi-line function call
(#205) Space after opening parenthesis of function call prohibited
(#209) Blank line found at start of control structure
(#239) Blank line found at end of control structure
(#258) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#258) Multi-line function declarations must define one parameter per line
(#259) Multi-line function declarations must define one parameter per line
(#259) Multi-line function declarations must define one parameter per line
(#259) Multi-line function declarations must define one parameter per line
(#260) Multi-line function declarations must define one parameter per line
(#260) Multi-line function declarations must define one parameter per line
(#260) The closing parenthesis of a multi-line function declaration must be on a new line
(#289) Expected at least 1 space before "."; 0 found
(#289) Expected at least 1 space after "."; 0 found
(#299) Expected at least 1 space before "."; 0 found
(#299) Expected at least 1 space after "."; 0 found
(#323) Blank line found at start of control structure
mod/accredible/classes/event/certificate_created.php
(#28) Opening brace must not be followed by a blank line
mod/accredible/classes/external/form_helper.php
(#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 8 spaces but found 12
(#89) Closing parenthesis of a multi-line function call must be on a line by itself
mod/accredible/classes/local/accredible.php
(#29) Opening brace must not be followed by a blank line
(#306) Expected 1 space after FUNCTION keyword; 0 found
mod/accredible/classes/local/attributemapping.php
(#141) The closing brace for the class must go on the next line after the body
mod/accredible/classes/local/credentials.php
(#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
(#62) Only one argument is allowed per line in a multi-line function call
(#62) Only one argument is allowed per line in a multi-line function call
(#63) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#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
(#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) Only one argument is allowed per line in a multi-line function call
(#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
(#87) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#87) Multi-line function declarations must define one parameter per line
(#87) Multi-line function declarations must define one parameter per line
(#88) Multi-line function declarations must define one parameter per line
(#88) Multi-line function declarations must define one parameter per line
(#88) Multi-line function declarations must define one parameter per line
(#88) The closing parenthesis of a multi-line function declaration must be on a new line
(#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) 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) 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) 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) 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
(#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
(#101) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#101) Only one argument is allowed per line in a multi-line function call
(#101) Only one argument is allowed per line in a multi-line function call
(#101) Closing parenthesis of a multi-line function call must be on a line by itself
(#111) Incorrect spacing between argument "$email" and equals sign; expected 1 but found 0
(#149) Opening parenthesis of a multi-line function call must be the last content on the line
(#149) Only one argument is allowed per line in a multi-line function call
(#150) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#150) Only one argument is allowed per line in a multi-line function call
(#150) Closing parenthesis of a multi-line function call must be on a line by itself
mod/accredible/classes/local/evidenceitems.php
(#72) Expected 0 spaces before closing bracket; 1 found
(#108) Expected 0 spaces after opening bracket; 1 found
(#108) Expected 0 spaces before closing bracket; 1 found
(#117) Expected at least 1 space before "."; 0 found
(#118) Space after opening parenthesis of function call prohibited
(#118) Expected 0 spaces before closing parenthesis; 1 found
(#118) 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
(#122) Expected at least 1 space before "."; 0 found
(#122) Expected at least 1 space after "."; 0 found
(#161) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#162) The closing parenthesis of a multi-line control structure must be on the line after the last expression
mod/accredible/classes/local/formhelper.php
(#89) There should be a comma after the last array item in a multi-line array.
(#116) There should be a comma after the last array item in a multi-line array.
(#118) Short array syntax must be used to define arrays
(#143) There should be a comma after the last array item in a multi-line array.
(#145) Short array syntax must be used to define arrays
mod/accredible/classes/local/users.php
(#149) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#150) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#159) Long list syntax is not allowed
(#161) Expected at least 1 space before "."; 0 found
(#161) Expected at least 1 space after "."; 0 found
mod/accredible/classes/privacy/provider.php
(#35) The interface names in a "class implements" statement should be ordered alphabetically. Expected: \core_privacy\local\request\core_userlist_provider, \core_privacy\local\metadata\provider, \core_privacy\local\request\plugin\provider; Found: \core_privacy\local\metadata\provider, \core_privacy\local\request\plugin\provider, \core_privacy\local\request\core_userlist_provider
(#36) Expected 4 spaces before interface name; 2 found
(#37) Expected 4 spaces before interface name; 2 found
(#38) Expected 4 spaces before interface name; 2 found
(#38) Opening brace must not be followed by a blank line
mod/accredible/db/upgrade.php
(#31) Incorrect spacing between argument "$oldversion" and equals sign; expected 1 but found 0
(#31) Incorrect spacing between default value and equals sign for argument "$oldversion"; expected 1 but found 0
(#38) Blank line found at start of control structure
(#51) Blank line found at start of control structure
(#66) Blank line found at start of control structure
(#89) Blank line found at start of control structure
(#130) Blank line found at end of control structure
(#137) Opening parenthesis of a multi-line function call must be the last content on the line
(#137) Only one argument is allowed per line in a multi-line function call
(#137) Only one argument is allowed per line in a multi-line function call
(#137) Only one argument is allowed per line in a multi-line function call
(#137) Only one argument is allowed per line in a multi-line function call
(#137) Only one argument is allowed per line in a multi-line function call
(#137) Only one argument is allowed per line in a multi-line function call
(#138) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#138) Closing parenthesis of a multi-line function call must be on a line by itself
(#146) Opening parenthesis of a multi-line function call must be the last content on the line
(#146) Only one argument is allowed per line in a multi-line function call
(#146) Only one argument is allowed per line in a multi-line function call
(#146) Only one argument is allowed per line in a multi-line function call
(#146) Only one argument is allowed per line in a multi-line function call
(#146) Only one argument is allowed per line in a multi-line function call
(#147) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#147) Only one argument is allowed per line in a multi-line function call
(#147) Closing parenthesis of a multi-line function call must be on a line by itself
(#155) Opening parenthesis of a multi-line function call must be the last content on the line
(#155) Only one argument is allowed per line in a multi-line function call
(#155) Only one argument is allowed per line in a multi-line function call
(#155) Only one argument is allowed per line in a multi-line function call
(#155) Only one argument is allowed per line in a multi-line function call
(#155) Only one argument is allowed per line in a multi-line function call
(#156) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#156) Only one argument is allowed per line in a multi-line function call
(#156) Closing parenthesis of a multi-line function call must be on a line by itself
mod/accredible/index.php
(#61) Opening parenthesis of a multi-line function call must be the last content on the line
(#62) Multi-line function call not indented correctly; expected 8 spaces but found 29
(#63) Multi-line function call not indented correctly; expected 4 spaces but found 29
(#63) Closing parenthesis of a multi-line function call must be on a line by itself
(#69) Space after opening parenthesis of function call prohibited
(#69) Expected 0 spaces before closing parenthesis; 1 found
mod/accredible/lang/en/accredible.php
(#28) The string key "accrediblecustomattributename" is not in the correct order, it should be before "activityname"
(#32) The string key "additionalactivitiesthree" is not in the correct order, it should be before "additionalactivitiestwo"
(#34) The string key "apikeylabel" is not in the correct order, it should be before "autoissueheader"
(#35) The string key "apikeyhelp" is not in the correct order, it should be before "apikeylabel"
(#37) The string key "attributemappingcoursecustomfields" is not in the correct order, it should be before "attributemappingcoursefields"
(#40) The string key "euhelp" is not in the correct order, it should be before "eulabel"
(#41) The string key "accredible:addinstance" is not in the correct order, it should be before "euhelp"
(#49) The string key "completionissuecheckbox" is not in the correct order, it should be before "completionissueheader"
(#52) The string key "includegradeattributecheckbox" is not in the correct order, it should be before "includegradeattributedescription"
(#53) The string key "gradeattributegradeitemselect" is not in the correct order, it should be before "includegradeattributecheckbox"
(#55) The string key "dashboardlink" is not in the correct order, it should be before "gradeattributekeynameselect"
(#73) The string key "moodlecoursecustomfield" is not in the correct order, it should be before "moodlecoursefield"
(#82) The string key "groupselect" is not in the correct order, it should be before "templatename"
(#84) The string key "unissueddescription" is not in the correct order, it should be before "unissuedheader"
(#90) The string key "viewsubheader" is not in the correct order, it should be before "viewsubheaderold"
(#92) The string key "gotodashboard" is not in the correct order, it should be before "viewsubheader"
(#94) The string key "activitygroupdescription" is not in the correct order, it should be before "overview"
(#95) The string key "accrediblegroup" is not in the correct order, it should be before "activitygroupdescription"
(#102) The string key "nouserswarning" is not in the correct order, it should be before "privacy:metadata:accredible:quizgrade"
mod/accredible/lang/en/error.php
(#29) The string key "getcredentialserror" is not in the correct order, it should be before "getissuederror"
(#43) The string key "evidenceadderror" is not in the correct order, it should be before "manualadderror:edit"
mod/accredible/lib.php
(#57) Expected 0 spaces after opening bracket; 1 found
(#57) Expected 0 spaces before closing bracket; 1 found
(#85) Space after opening parenthesis of function call prohibited
(#172) Space after opening parenthesis of function call prohibited
(#193) Space after opening parenthesis of function call prohibited
(#196) Opening parenthesis of a multi-line function call must be the last content on the line
(#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
(#198) Multi-line function call not indented correctly; expected 20 spaces but found 24
(#198) Only one argument is allowed per line in a multi-line function call
(#198) Only one argument is allowed per line in a multi-line function call
(#198) Only one argument is allowed per line in a multi-line function call
(#198) Closing parenthesis of a multi-line function call must be on a line by itself
(#214) Expected 0 spaces after opening bracket; 1 found
(#214) Expected 0 spaces before closing bracket; 1 found
(#226) Blank line found at start of control structure
(#231) Opening parenthesis of a multi-line function call must be the last content on the line
(#231) Only one argument is allowed per line in a multi-line function call
(#232) Multi-line function call not indented correctly; expected 20 spaces but found 24
(#232) Only one argument is allowed per line in a multi-line function call
(#232) Only one argument is allowed per line in a multi-line function call
(#232) Only one argument is allowed per line in a multi-line function call
(#232) Only one argument is allowed per line in a multi-line function call
(#232) Closing parenthesis of a multi-line function call must be on a line by itself
(#242) Space after opening parenthesis of function call prohibited
mod/accredible/locallib.php
(#48) Expected 0 spaces after opening bracket; 1 found
(#48) Expected 0 spaces before closing bracket; 1 found
(#48) Blank line found at start of control structure
(#53) Space after opening parenthesis of function call prohibited
(#67) Expected 0 spaces after opening bracket; 1 found
(#67) Expected 0 spaces before closing bracket; 1 found
(#72) Expected 0 spaces after opening bracket; 1 found
(#72) Expected 0 spaces before closing bracket; 1 found
(#76) Expected 0 spaces after opening bracket; 1 found
(#76) Expected 0 spaces before closing bracket; 1 found
(#113) Blank line found at end of control structure
(#133) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#133) Multi-line function declarations must define one parameter per line
(#133) Multi-line function declarations must define one parameter per line
(#133) Multi-line function declarations must define one parameter per line
(#133) Multi-line function declarations must define one parameter per line
(#134) Multi-line function declarations must define one parameter per line
(#134) Multi-line function declarations must define one parameter per line
(#134) The closing parenthesis of a multi-line function declaration must be on a new line
(#149) Opening parenthesis of a multi-line function call must be the last content on the line
(#149) Only one argument is allowed per line in a multi-line function call
(#149) Only one argument is allowed per line in a multi-line function call
(#149) Only one argument is allowed per line in a multi-line function call
(#149) Only one argument is allowed per line in a multi-line function call
(#150) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#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
(#150) Only one argument is allowed per line in a multi-line function call
(#150) Closing parenthesis of a multi-line function call must be on a line by itself
(#225) Expected 0 spaces after opening bracket; 1 found
(#225) Expected 0 spaces before closing bracket; 1 found
(#242) Space after opening parenthesis of function call prohibited
(#255) Space after opening parenthesis of function call prohibited
(#258) Opening parenthesis of a multi-line function call must be the last content on the line
(#259) Multi-line function call not indented correctly; expected 40 spaces but found 44
(#259) Only one argument is allowed per line in a multi-line function call
(#259) Closing parenthesis of a multi-line function call must be on a line by itself
(#268) Expected 0 spaces after opening bracket; 1 found
(#268) Expected 0 spaces before closing bracket; 1 found
(#273) Expected 0 spaces after opening bracket; 1 found
(#273) Expected 0 spaces before closing bracket; 1 found
(#277) Expected 0 spaces after opening bracket; 1 found
(#277) Expected 0 spaces before closing bracket; 1 found
(#299) Blank line found at end of control structure
(#303) Space before opening parenthesis of function call prohibited
(#304) Only one argument is allowed per line in a multi-line function call
(#309) Space after opening parenthesis of function call prohibited
(#315) Opening parenthesis of a multi-line function call must be the last content on the line
(#316) Multi-line function call not indented correctly; expected 32 spaces but found 36
(#316) Only one argument is allowed per line in a multi-line function call
(#316) Only one argument is allowed per line in a multi-line function call
(#316) Only one argument is allowed per line in a multi-line function call
(#316) Only one argument is allowed per line in a multi-line function call
(#316) Only one argument is allowed per line in a multi-line function call
(#316) Only one argument is allowed per line in a multi-line function call
(#316) Closing parenthesis of a multi-line function call must be on a line by itself
(#329) Space after opening parenthesis of function call prohibited
(#332) Opening parenthesis of a multi-line function call must be the last content on the line
(#333) Multi-line function call not indented correctly; expected 40 spaces but found 44
(#333) Only one argument is allowed per line in a multi-line function call
(#333) Closing parenthesis of a multi-line function call must be on a line by itself
(#342) Expected 0 spaces after opening bracket; 1 found
(#342) Expected 0 spaces before closing bracket; 1 found
(#347) Expected 0 spaces after opening bracket; 1 found
(#347) Expected 0 spaces before closing bracket; 1 found
(#351) Expected 0 spaces after opening bracket; 1 found
(#351) Expected 0 spaces before closing bracket; 1 found
(#365) Space before opening parenthesis of function call prohibited
(#366) Only one argument is allowed per line in a multi-line function call
(#371) Opening parenthesis of a multi-line function call must be the last content on the line
(#372) Multi-line function call not indented correctly; expected 32 spaces but found 36
(#372) Only one argument is allowed per line in a multi-line function call
(#372) Only one argument is allowed per line in a multi-line function call
(#372) Only one argument is allowed per line in a multi-line function call
(#372) Only one argument is allowed per line in a multi-line function call
(#372) Only one argument is allowed per line in a multi-line function call
(#372) Only one argument is allowed per line in a multi-line function call
(#372) Closing parenthesis of a multi-line function call must be on a line by itself
(#383) Blank line found at end of control structure
(#408) Expected 0 spaces after opening bracket; 1 found
(#408) Expected 0 spaces before closing bracket; 1 found
(#420) Blank line found at end of control structure
(#422) Opening parenthesis of a multi-line function call must be the last content on the line
(#422) Only one argument is allowed per line in a multi-line function call
(#423) Multi-line function call not indented correctly; expected 20 spaces but found 24
(#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) 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) Only one argument is allowed per line in a multi-line function call
(#423) Closing parenthesis of a multi-line function call must be on a line by itself
(#431) Blank line found at end of control structure
(#462) Space after opening parenthesis of function call prohibited
(#462) Expected 0 spaces before closing parenthesis; 1 found
(#464) Space after opening parenthesis of function call prohibited
(#472) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#473) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#492) Space after opening parenthesis of function call prohibited
(#492) Expected 0 spaces before closing parenthesis; 1 found
(#501) Space after opening parenthesis of function call prohibited
(#501) Expected 0 spaces before closing parenthesis; 1 found
(#556) Blank line found at end of control structure
(#575) Expected "function abc(...)"; found "function abc (...)"
(#575) Expected 0 spaces before opening parenthesis; 1 found
(#585) Expected "function abc(...)"; found "function abc (...)"
(#585) Expected 0 spaces before opening parenthesis; 1 found
mod/accredible/mod_form.php
(#28) Expected at least 1 space before "."; 0 found
(#28) Expected at least 1 space after "."; 0 found
(#29) Expected at least 1 space before "."; 0 found
(#29) Expected at least 1 space after "."; 0 found
(#30) Expected at least 1 space before "."; 0 found
(#30) Expected at least 1 space after "."; 0 found
(#47) Opening brace must not be followed by a blank line
(#166) Opening parenthesis of a multi-line function call must be the last content on the line
(#166) Only one argument is allowed per line in a multi-line function call
(#166) Only one argument is allowed per line in a multi-line function call
(#167) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#167) Closing parenthesis of a multi-line function call must be on a line by itself
(#181) Opening parenthesis of a multi-line function call must be the last content on the line
(#181) Only one argument is allowed per line in a multi-line function call
(#181) Only one argument is allowed per line in a multi-line function call
(#182) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#182) Closing parenthesis of a multi-line function call must be on a line by itself
(#185) Space after opening parenthesis of function call prohibited
(#185) Expected 0 spaces before closing parenthesis; 1 found
(#193) Opening parenthesis of a multi-line function call must be the last content on the line
(#193) Only one argument is allowed per line in a multi-line function call
(#193) Only one argument is allowed per line in a multi-line function call
(#194) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#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
(#195) Opening parenthesis of a multi-line function call must be the last content on the line
(#195) Only one argument is allowed per line in a multi-line function call
(#195) Only one argument is allowed per line in a multi-line function call
(#196) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#196) Only one argument is allowed per line in a multi-line function call
(#196) Closing parenthesis of a multi-line function call must be on a line by itself
(#198) Opening parenthesis of a multi-line function call must be the last content on the line
(#198) Only one argument is allowed per line in a multi-line function call
(#199) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#199) Closing parenthesis of a multi-line function call must be on a line by itself
(#211) Opening parenthesis of a multi-line function call must be the last content on the line
(#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
(#212) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#212) 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
(#214) Only one argument is allowed per line in a multi-line function call
(#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
(#220) Opening parenthesis of a multi-line function call must be the last content on the line
(#220) Only one argument is allowed per line in a multi-line function call
(#222) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#222) Closing parenthesis of a multi-line function call must be on a line by itself
(#227) Opening parenthesis of a multi-line function call must be the last content on the line
(#227) Only one argument is allowed per line in a multi-line function call
(#228) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#228) Only one argument is allowed per line in a multi-line function call
(#228) Closing parenthesis of a multi-line function call must be on a line by itself
(#246) Opening parenthesis of a multi-line function call must be the last content on the line
(#246) Only one argument is allowed per line in a multi-line function call
(#246) Expected at least 1 space before "."; 0 found
(#246) Expected at least 1 space after "."; 0 found
(#246) Expected at least 1 space before "."; 0 found
(#246) Expected at least 1 space after "."; 0 found
(#247) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#247) Only one argument is allowed per line in a multi-line function call
(#247) Only one argument is allowed per line in a multi-line function call
(#247) Closing parenthesis of a multi-line function call must be on a line by itself
(#265) Opening parenthesis of a multi-line function call must be the last content on the line
(#265) Only one argument is allowed per line in a multi-line function call
(#265) Expected at least 1 space before "."; 0 found
(#265) Expected at least 1 space after "."; 0 found
(#267) Multi-line function call not indented correctly; expected 20 spaces but found 24
(#267) Expected at least 1 space before "."; 0 found
(#267) Expected at least 1 space before "."; 0 found
(#267) Expected at least 1 space after "."; 0 found
(#267) Expected at least 1 space before "."; 0 found
(#267) Expected at least 1 space after "."; 0 found
(#267) Expected at least 1 space before "."; 0 found
(#267) Expected at least 1 space after "."; 0 found
(#267) Closing parenthesis of a multi-line function call must be on a line by itself
(#269) Opening parenthesis of a multi-line function call must be the last content on the line
(#269) Only one argument is allowed per line in a multi-line function call
(#269) Expected at least 1 space before "."; 0 found
(#269) Expected at least 1 space after "."; 0 found
(#269) Expected at least 1 space before "."; 0 found
(#269) Expected at least 1 space after "."; 0 found
(#270) Multi-line function call not indented correctly; expected 20 spaces but found 24
(#270) Only one argument is allowed per line in a multi-line function call
(#270) Only one argument is allowed per line in a multi-line function call
(#270) Closing parenthesis of a multi-line function call must be on a line by itself
(#273) Opening parenthesis of a multi-line function call must be the last content on the line
(#273) Only one argument is allowed per line in a multi-line function call
(#273) Expected at least 1 space before "."; 0 found
(#273) Expected at least 1 space after "."; 0 found
(#273) Expected at least 1 space before "."; 0 found
(#273) Expected at least 1 space after "."; 0 found
(#274) Multi-line function call not indented correctly; expected 20 spaces but found 24
(#274) Only one argument is allowed per line in a multi-line function call
(#274) Only one argument is allowed per line in a multi-line function call
(#274) Closing parenthesis of a multi-line function call must be on a line by itself
(#279) Opening parenthesis of a multi-line function call must be the last content on the line
(#279) Only one argument is allowed per line in a multi-line function call
(#279) Expected at least 1 space before "."; 0 found
(#279) Expected at least 1 space after "."; 0 found
(#279) Expected at least 1 space before "."; 0 found
(#279) Expected at least 1 space after "."; 0 found
(#280) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#280) Only one argument is allowed per line in a multi-line function call
(#280) Only one argument is allowed per line in a multi-line function call
(#280) Closing parenthesis of a multi-line function call must be on a line by itself
(#337) Opening parenthesis of a multi-line function call must be the last content on the line
mod/accredible/settings.php
(#30) Opening parenthesis of a multi-line function call must be the last content on the line
(#31) Multi-line function call not indented correctly; expected 8 spaces but found 33
(#32) Multi-line function call not indented correctly; expected 8 spaces but found 33
(#33) Multi-line function call not indented correctly; expected 4 spaces but found 33
(#33) 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
(#38) Multi-line function call not indented correctly; expected 8 spaces but found 37
(#39) Multi-line function call not indented correctly; expected 8 spaces but found 37
(#40) Multi-line function call not indented correctly; expected 4 spaces but found 37
(#40) Closing parenthesis of a multi-line function call must be on a line by itself
mod/accredible/tests/apirest/mod_accredible_apirest_test.php
(#31) Unit test mod_accredible_apirest_test should be declared as final.
(#40) The setUp() method in unit tests must always call to parent::setUp().
(#70) Test method test_api_endpoint() is missing a return type
(#90) Test method test_get_credential() is missing a return type
(#157) Test method test_get_credentials() is missing a return type
(#167) Expected at least 1 space before "."; 0 found
(#168) Expected at least 1 space before "."; 0 found
(#168) Expected at least 1 space after "."; 0 found
(#188) Expected at least 1 space before "."; 0 found
(#189) Expected at least 1 space before "."; 0 found
(#189) Expected at least 1 space after "."; 0 found
(#209) Expected at least 1 space before "."; 0 found
(#210) Expected at least 1 space before "."; 0 found
(#210) Expected at least 1 space after "."; 0 found
(#226) Test method test_recipient_sso_link() is missing a return type
(#285) Test method test_create_credential() is missing a return type
(#358) Test method test_create_credential_legacy() is missing a return type
(#422) Test method test_search_groups() is missing a return type
(#437) Opening parenthesis of a multi-line function call must be the last content on the line
(#438) Multi-line function call not indented correctly; expected 12 spaces but found 19
(#438) Closing parenthesis of a multi-line function call must be on a line by itself
(#460) Opening parenthesis of a multi-line function call must be the last content on the line
(#461) Multi-line function call not indented correctly; expected 12 spaces but found 19
(#461) Closing parenthesis of a multi-line function call must be on a line by itself
(#483) Opening parenthesis of a multi-line function call must be the last content on the line
(#484) Multi-line function call not indented correctly; expected 12 spaces but found 19
(#484) Closing parenthesis of a multi-line function call must be on a line by itself
(#498) Test method test_create_evidence_item() is missing a return type
(#521) Opening parenthesis of a multi-line function call must be the last content on the line
(#522) Multi-line function call not indented correctly; expected 12 spaces but found 19
(#522) Closing parenthesis of a multi-line function call must be on a line by itself
(#540) Opening parenthesis of a multi-line function call must be the last content on the line
(#541) Multi-line function call not indented correctly; expected 12 spaces but found 19
(#541) Closing parenthesis of a multi-line function call must be on a line by itself
(#560) Opening parenthesis of a multi-line function call must be the last content on the line
(#561) Multi-line function call not indented correctly; expected 12 spaces but found 19
(#561) Closing parenthesis of a multi-line function call must be on a line by itself
(#580) Test method test_create_evidence_item_duration() is missing a return type
(#610) Opening parenthesis of a multi-line function call must be the last content on the line
(#611) Multi-line function call not indented correctly; expected 12 spaces but found 19
(#611) Closing parenthesis of a multi-line function call must be on a line by itself
(#645) Opening parenthesis of a multi-line function call must be the last content on the line
(#646) Multi-line function call not indented correctly; expected 12 spaces but found 19
(#646) Closing parenthesis of a multi-line function call must be on a line by itself
(#674) Test method test_update_evidence_item_grade() is missing a return type
(#688) Opening parenthesis of a multi-line function call must be the last content on the line
(#689) Multi-line function call not indented correctly; expected 12 spaces but found 19
(#689) Closing parenthesis of a multi-line function call must be on a line by itself
(#711) Opening parenthesis of a multi-line function call must be the last content on the line
(#712) Multi-line function call not indented correctly; expected 12 spaces but found 19
(#712) Closing parenthesis of a multi-line function call must be on a line by itself
(#733) Opening parenthesis of a multi-line function call must be the last content on the line
(#734) Multi-line function call not indented correctly; expected 12 spaces but found 19
(#734) Closing parenthesis of a multi-line function call must be on a line by itself
(#774) Test method test_get_group() is missing a return type
(#821) Test method test_get_groups() is missing a return type
(#887) Test method test_search_attribute_keys() is missing a return type
(#903) Opening parenthesis of a multi-line function call must be the last content on the line
(#904) Multi-line function call not indented correctly; expected 12 spaces but found 19
(#904) Closing parenthesis of a multi-line function call must be on a line by itself
(#925) Opening parenthesis of a multi-line function call must be the last content on the line
(#926) Multi-line function call not indented correctly; expected 12 spaces but found 19
(#926) Closing parenthesis of a multi-line function call must be on a line by itself
(#947) Opening parenthesis of a multi-line function call must be the last content on the line
(#948) Multi-line function call not indented correctly; expected 12 spaces but found 19
(#948) Closing parenthesis of a multi-line function call must be on a line by itself
mod/accredible/tests/client/mod_accredible_client_test.php
(#30) Unit test mod_accredible_client_test should be declared as final.
(#34) The setUp() method in unit tests must always call to parent::setUp().
(#46) Test method test_get() is missing a return type
(#65) Opening parenthesis of a multi-line function call must be the last content on the line
(#67) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#67) Closing parenthesis of a multi-line function call must be on a line by itself
(#78) Test method test_post() is missing a return type
(#98) Opening parenthesis of a multi-line function call must be the last content on the line
(#100) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#100) Closing parenthesis of a multi-line function call must be on a line by itself
(#111) Test method test_put() is missing a return type
(#131) Opening parenthesis of a multi-line function call must be the last content on the line
(#133) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#133) Closing parenthesis of a multi-line function call must be on a line by itself
(#144) Test method test_error() is missing a return type
(#165) 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 12 spaces but found 16
(#167) Closing parenthesis of a multi-line function call must be on a line by itself
mod/accredible/tests/local/mod_accredible_accredible_test.php
(#28) Unit test mod_accredible_accredible_test should be declared as final.
(#38) The setUp() method in unit tests must always call to parent::setUp().
(#47) Test method test_save_record() is missing a return type
(#94) Expected 1 space after FUNCTION keyword; 0 found
(#128) Multi-line function call not indented correctly; expected 16 spaces but found 12
(#129) Multi-line function call not indented correctly; expected 16 spaces but found 12
(#129) Expected 1 space after FUNCTION keyword; 0 found
(#132) Multi-line function call not indented correctly; expected 16 spaces but found 12
(#133) Multi-line function call not indented correctly; expected 12 spaces but found 8
(#134) Object operator not indented correctly; expected 12 spaces but found 8
(#151) Expected 1 space after FUNCTION keyword; 0 found
(#173) Expected 1 space after FUNCTION keyword; 0 found
(#189) Test method test_load_credential_custom_attributes() is missing a return type
(#489) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $overrides.
mod/accredible/tests/local/mod_accredible_attribute_keys_test.php
(#30) Unit test mod_accredible_attribute_keys_test should be declared as final.
(#39) The setUp() method in unit tests must always call to parent::setUp().
(#68) Test method test_get_attribute_keys() is missing a return type
(#171) Function closing brace must go on the next line following the body; found 1 blank lines before brace
mod/accredible/tests/local/mod_accredible_attributemapping_list_test.php
(#28) Unit test mod_accredible_attributemapping_list_test should be declared as final.
(#32) The setUp() method in unit tests must always call to parent::setUp().
(#40) Test method test_validate_attributemapping() is missing a return type
(#75) Test method test_get_text_content() is missing a return type
mod/accredible/tests/local/mod_accredible_attributemapping_test.php
(#28) Unit test mod_accredible_attributemapping_test should be declared as final.
(#32) The setUp() method in unit tests must always call to parent::setUp().
(#40) Test method test_validate_table() is missing a return type
(#67) Test method test_validate_field() is missing a return type
(#101) Test method test_validate_id() is missing a return type
(#149) Test method test_get_db_object() is missing a return type
mod/accredible/tests/local/mod_accredible_credentials_test.php
(#32) Unit test mod_accredible_credentials_test should be declared as final.
(#56) The setUp() method in unit tests must always call to parent::setUp().
(#89) Test method test_create_credential() is missing a return type
(#163) Test method test_create_credential_legacy() is missing a return type
(#212) Opening parenthesis of a multi-line function call must be the last content on the line
(#212) Only one argument is allowed per line in a multi-line function call
(#213) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#213) Only one argument is allowed per line in a multi-line function call
(#213) Only one argument is allowed per line in a multi-line function call
(#213) Only one argument is allowed per line in a multi-line function call
(#213) Closing parenthesis of a multi-line function call must be on a line by itself
(#238) Opening parenthesis of a multi-line function call must be the last content on the line
(#238) Only one argument is allowed per line in a multi-line function call
(#239) Only one argument is allowed per line in a multi-line function call
(#239) Only one argument is allowed per line in a multi-line function call
(#239) Only one argument is allowed per line in a multi-line function call
(#239) Closing parenthesis of a multi-line function call must be on a line by itself
(#251) Test method test_get_credentials() is missing a return type
(#327) Test method test_check_for_existing_credential() is missing a return type
(#337) Expected at least 1 space before "."; 0 found
(#338) Expected at least 1 space before "."; 0 found
(#338) Expected at least 1 space after "."; 0 found
(#401) Test method test_check_for_existing_certificate() is missing a return type
(#411) Expected at least 1 space before "."; 0 found
(#412) Expected at least 1 space before "."; 0 found
(#412) Expected at least 1 space after "."; 0 found
mod/accredible/tests/local/mod_accredible_evidenceitems_test.php
(#31) Unit test mod_accredible_evidenceitems_test should be declared as final.
(#50) The setUp() method in unit tests must always call to parent::setUp().
(#82) Test method test_post_evidence() is missing a return type
(#103) Opening parenthesis of a multi-line function call must be the last content on the line
(#104) Multi-line function call not indented correctly; expected 12 spaces but found 19
(#104) Closing parenthesis of a multi-line function call must be on a line by itself
(#124) Opening parenthesis of a multi-line function call must be the last content on the line
(#125) Multi-line function call not indented correctly; expected 12 spaces but found 19
(#125) Closing parenthesis of a multi-line function call must be on a line by itself
(#145) Opening parenthesis of a multi-line function call must be the last content on the line
(#146) Multi-line function call not indented correctly; expected 12 spaces but found 19
(#146) Closing parenthesis of a multi-line function call must be on a line by itself
(#165) Test method test_post_essay_answers() is missing a return type
(#244) Test method test_course_duration_evidence() is missing a return type
mod/accredible/tests/local/mod_accredible_formhelper_test.php
(#28) Unit test mod_accredible_formhelper_test should be declared as final.
(#43) The setUp() method in unit tests must always call to parent::setUp().
(#64) Test method test_load_grade_item_options() is missing a return type
(#97) Test method test_load_course_field_options() is missing a return type
(#115) Test method test_load_course_custom_field_options() is missing a return type
(#158) Test method test_load_user_profile_field_options() is missing a return type
(#195) Test method test_map_select_options() is missing a return type
(#228) Test method test_get_attributekeys_choices() is missing a return type
(#277) Test method test_attributemapping_default_values() is missing a return type
(#338) Test method test_reindexarray() is missing a return type
(#368) Opening parenthesis of a multi-line function call must be the last content on the line
(#407) Expected 1 space after class keyword; 0 found
(#409) You must use "/**" style comments for a member variable comment
mod/accredible/tests/local/mod_accredible_groups_test.php
(#33) Unit test mod_accredible_groups_test should be declared as final.
(#42) The setUp() method in unit tests must always call to parent::setUp().
(#71) Test method test_get_groups() is missing a return type
(#154) Test method test_get_templates() is missing a return type
mod/accredible/tests/local/mod_accredible_users_test.php
(#32) Unit test mod_accredible_users_test should be declared as final.
(#56) The setUp() method in unit tests must always call to parent::setUp().
(#89) Test method test_get_users_with_credentials() is missing a return type
(#167) Test method test_get_unissued_users() is missing a return type
(#223) Test method test_get_user_grades() is missing a return type
(#320) Test method test_load_user_grade_as_custom_attributes() is missing a return type
(#353) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#353) Multi-line function declarations must define one parameter per line
(#353) Multi-line function declarations must define one parameter per line
(#354) Multi-line function declarations must define one parameter per line
(#354) The closing parenthesis of a multi-line function declaration must be on a new line
mod/accredible/tests/mod_accredible_lib_test.php
(#32) Unit test mod_accredible_lib_test should be declared as final.
(#38) Test method test_sample() is missing a return type
mod/accredible/tests/mod_accredible_locallib_test.php
(#30) Unit test mod_accredible_locallib_test should be declared as final.
(#49) The setUp() method in unit tests must always call to parent::setUp().
(#80) Test method test_accredible_get_transcript() is missing a return type
(#168) Test method test_accredible_check_if_cert_earned() is missing a return type
mod/accredible/view.php
(#51) Blank line found at start of control structure
(#69) Space after opening parenthesis of function call prohibited
(#69) Expected 0 spaces before closing parenthesis; 1 found
(#73) Expected at least 1 space before "."; 0 found
(#73) Expected at least 1 space after "."; 0 found
(#84) Space after opening parenthesis of function call prohibited
(#84) Expected 0 spaces before closing parenthesis; 1 found
(#86) Space after opening parenthesis of function call prohibited
(#86) Expected 0 spaces before closing parenthesis; 1 found
(#88) Space after opening parenthesis of function call prohibited
(#88) Expected 0 spaces before closing parenthesis; 1 found
(#91) Space after opening parenthesis of function call prohibited
(#91) Expected 0 spaces before closing parenthesis; 1 found
(#93) Space after opening parenthesis of function call prohibited
(#93) Expected 0 spaces before closing parenthesis; 1 found
(#114) Expected at least 1 space before "."; 0 found
(#114) Expected at least 1 space after "."; 0 found
(#123) Blank line found at start of control structure
(#132) Space after opening parenthesis of function call prohibited
(#132) Expected 0 spaces before closing parenthesis; 1 found
(#135) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#136) The closing parenthesis of a multi-line control structure must be on the line after the last expression
(#137) Opening parenthesis of a multi-line function call must be the last content on the line
(#138) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#138) Only one argument is allowed per line in a multi-line function call
(#138) Closing parenthesis of a multi-line function call must be on a line by itself
(#140) Opening parenthesis of a multi-line function call must be the last content on the line
(#141) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#141) Only one argument is allowed per line in a multi-line function call
(#141) Closing parenthesis of a multi-line function call must be on a line by itself
(#144) Expected 0 spaces before closing parenthesis; 1 found
(#147) Space after opening parenthesis of function call prohibited
(#147) Expected 0 spaces before closing parenthesis; 1 found
(#157) Space after opening parenthesis of function call prohibited
(#157) Expected 0 spaces before closing parenthesis; 1 found
(#158) Expected 0 spaces before closing parenthesis; 1 found

Javascript coding style problems

(15 errors, 22 warnings)

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

mod/accredible/amd/src/mappings.js
(#36) Trailing spaces not allowed. (no-trailing-spaces)
(#44) Comments should not begin with a lowercase character. (capitalized-comments)
(#45) A space is required after ','. (comma-spacing)
(#56) 'event' is defined but never used. (no-unused-vars)
(#63) A space is required after ','. (comma-spacing)
(#82) A space is required after ','. (comma-spacing)
(#95) Multiple spaces found before '// Applies pad...'. (no-multi-spaces)
(#112) Operator '+' must be spaced. (space-infix-ops)
(#118) A space is required after ','. (comma-spacing)
(#168) There should be no space after '{'. (@babel/object-curly-spacing)
(#168) There should be no space before '}'. (@babel/object-curly-spacing)
(#210) Expected catch,fail,always() or return (promise/catch-or-return)
(#210) Each then() should return a value or throw (promise/always-return)
(#210) Unexpected space before function parentheses. (space-before-function-paren)
(#215) Trailing spaces not allowed. (no-trailing-spaces)
mod/accredible/amd/src/userlist_updater.js
(#41) Trailing spaces not allowed. (no-trailing-spaces)
(#64) There should be no space after '{'. (@babel/object-curly-spacing)
(#101) This line has a length of 136. Maximum allowed is 132. (max-len)
(#101) Operator '+' must be spaced. (space-infix-ops)
(#101) Operator '+' must be spaced. (space-infix-ops)
(#110) Operator '+' must be spaced. (space-infix-ops)
(#110) Operator '+' must be spaced. (space-infix-ops)
(#127) Operator '+' must be spaced. (space-infix-ops)
(#127) Operator '+' must be spaced. (space-infix-ops)
(#135) Trailing spaces not allowed. (no-trailing-spaces)
(#139) Trailing spaces not allowed. (no-trailing-spaces)
(#142) Missing JSDoc @param "context" declaration. (jsdoc/require-param)
(#142) Missing JSDoc @param "containerid" declaration. (jsdoc/require-param)
(#142) Missing JSDoc @param "certificate" declaration. (jsdoc/require-param)
(#145) Expected @param names to be "context, containerid, certificate". Got "stdObject, string, string". (jsdoc/check-param-names)
(#145) Missing JSDoc @param "stdObject" type. (jsdoc/require-param-type)
(#146) Missing JSDoc @param "string" type. (jsdoc/require-param-type)
(#147) Missing JSDoc @param "string" type. (jsdoc/require-param-type)
(#151) Trailing spaces not allowed. (no-trailing-spaces)
(#152) Expected catch,fail,always() or return (promise/catch-or-return)
(#152) Each then() should return a value or throw (promise/always-return)
(#152) Unexpected space before function parentheses. (space-before-function-paren)

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 "eslint:amd" 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

(0 errors, 0 warnings)

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