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

(172 errors, 18 warnings)

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

mod/sertifier/backup/moodle2/backup_sertifier_activity_task.class.php
(#33) Opening brace must not be followed by a blank line
(#57) Expected at least 1 space before "."; 0 found
(#57) Expected at least 1 space after "."; 0 found
(#59) Expected at least 1 space before "."; 0 found
(#59) Expected at least 1 space after "."; 0 found
(#59) Expected at least 1 space before "."; 0 found
(#59) Expected at least 1 space after "."; 0 found
(#63) Expected at least 1 space before "."; 0 found
(#63) Expected at least 1 space after "."; 0 found
(#63) Expected at least 1 space before "."; 0 found
(#63) Expected at least 1 space after "."; 0 found
mod/sertifier/backup/moodle2/backup_sertifier_stepslib.php
(#28) Opening brace must not be followed by a blank line
(#37) Short array syntax must be used to define arrays
(#37) Short array syntax must be used to define arrays
(#42) Short array syntax must be used to define arrays
(#50) Function closing brace must go on the next line following the body; found 1 blank lines before brace
mod/sertifier/backup/moodle2/restore_sertifier_activity_task.class.php
(#32) Opening brace must not be followed by a blank line
(#54) Short array syntax must be used to define arrays
(#56) Short array syntax must be used to define arrays
(#66) Short array syntax must be used to define arrays
(#80) Short array syntax must be used to define arrays
(#99) Short array syntax must be used to define arrays
mod/sertifier/backup/moodle2/restore_sertifier_stepslib.php
(#28) Opening brace must not be followed by a blank line
(#37) Short array syntax must be used to define arrays
mod/sertifier/classes/apiRest/apiRest.php
(#64) There should be a comma after the last array item in a multi-line array.
(#76) There should be a comma after the last array item in a multi-line array.
(#88) There should be a comma after the last array item in a multi-line array.
(#101) There should be a comma after the last array item in a multi-line array.
mod/sertifier/classes/client/client.php
(#56) Short array syntax must be used to define arrays
(#58) Short array syntax must be used to define arrays
(#59) Expected at least 1 space before "."; 0 found
(#59) Expected at least 1 space after "."; 0 found
(#61) There should be a comma after the last array item in a multi-line array.
(#62) There should be a comma after the last array item in a multi-line array.
mod/sertifier/classes/privacy/provider.php
(#35) Opening brace must not be followed by a blank line
(#43) There must not be a space before the colon in a return type declaration
mod/sertifier/db/access.php
(#27) Short array syntax must be used to define arrays
(#29) Short array syntax must be used to define arrays
(#33) Short array syntax must be used to define arrays
(#35) There should be a comma after the last array item in a multi-line array.
(#37) There should be a comma after the last array item in a multi-line array.
(#40) Short array syntax must be used to define arrays
(#44) Short array syntax must be used to define arrays
(#48) There should be a comma after the last array item in a multi-line array.
(#50) There should be a comma after the last array item in a multi-line array.
(#53) Short array syntax must be used to define arrays
(#57) Short array syntax must be used to define arrays
(#60) There should be a comma after the last array item in a multi-line array.
(#61) There should be a comma after the last array item in a multi-line array.
mod/sertifier/db/events.php
(#27) Short array syntax must be used to define arrays
(#28) Short array syntax must be used to define arrays
(#32) There should be a comma after the last array item in a multi-line array.
(#34) Short array syntax must be used to define arrays
(#38) There should be a comma after the last array item in a multi-line array.
(#39) There should be a comma after the last array item in a multi-line array.
mod/sertifier/index.php
(#30) Short array syntax must be used to define arrays
(#38) Short array syntax must be used to define arrays
(#52) Short array syntax must be used to define arrays
(#55) Opening parenthesis of a multi-line function call must be the last content on the line
(#57) Multi-line function call not indented correctly; expected 4 spaces but found 8
(#57) Short array syntax must be used to define arrays
(#57) Closing parenthesis of a multi-line function call must be on a line by itself
(#59) Short array syntax must be used to define arrays
(#63) Space after opening parenthesis of function call prohibited
(#63) Expected 0 spaces before closing parenthesis; 1 found
mod/sertifier/lang/en/sertifier.php
(#27) The string key "modulename" is not in the correct order, it should be before "pluginname"
(#29) The string key "apikeylabel" is not in the correct order, it should be before "modulename_help"
(#30) The string key "apikeyhelp" is not in the correct order, it should be before "apikeylabel"
(#31) The string key "activityname" is not in the correct order, it should be before "apikeyhelp"
(#33) The string key "gradeissueheader" is not in the correct order, it should be before "selectRecHeader"
(#34) The string key "chooseexam" is not in the correct order, it should be before "gradeissueheader"
(#36) The string key "completionissueheader" is not in the correct order, it should be before "passinggrade"
(#37) The string key "completionissuecheckbox" is not in the correct order, it should be before "completionissueheader"
(#39) The string key "existcertificate" is not in the correct order, it should be before "overview"
(#43) The string key "gotoreports" is not in the correct order, it should be before "viewmanagementdesc"
(#44) The string key "credentialNo" is not in the correct order, it should be before "gotoreports"
(#46) The string key "email" is not in the correct order, it should be before "name"
(#49) The string key "activitydescription" is not in the correct order, it should be before "selectedDelivery"
(#52) The string key "createDelivery" is not in the correct order, it should be before "createdDelivery"
(#54) The string key "modulenameplural" is not in the correct order, it should be before "notFoundDelivery"
(#55) The string key "datecreated" is not in the correct order, it should be before "modulenameplural"
(#60) The string key "privacy:metadata:sertifier" is not in the correct order, it should be before "sertifier:addinstance"
(#62) The string key "privacy:metadata:sertifier:firstname" is not in the correct order, it should be before "privacy:metadata:sertifier:fullname"
mod/sertifier/lib.php
(#35) Expected 1 space after SWITCH keyword; 0 found
(#64) There should be a comma after the last array item in a multi-line array.
(#69) Blank line found at start of control structure
(#75) Expected 0 spaces after opening bracket; 1 found
(#75) Expected 0 spaces before closing bracket; 1 found
(#80) Short array syntax must be used to define arrays
(#86) There should be a comma after the last array item in a multi-line array.
(#105) Closing brace must not be followed by any comment or statement on the same line
(#118) Expected 0 spaces after opening bracket; 1 found
(#118) Expected 0 spaces before closing bracket; 1 found
(#123) Short array syntax must be used to define arrays
(#134) There should be a comma after the last array item in a multi-line array.
(#152) Closing brace must not be followed by any comment or statement on the same line
(#164) Short array syntax must be used to define arrays
(#168) Short array syntax must be used to define arrays
(#169) Closing brace must not be followed by any comment or statement on the same line
(#228) Short array syntax must be used to define arrays
(#233) Expected 0 spaces after opening bracket; 1 found
(#233) Expected 0 spaces before closing bracket; 1 found
(#234) Blank line found at start of control structure
(#239) Space after opening parenthesis of function call prohibited
(#247) There should be a comma after the last array item in a multi-line array.
(#248) There should be a comma after the last array item in a multi-line array.
(#268) Short array syntax must be used to define arrays
(#281) There should be a comma after the last array item in a multi-line array.
(#282) There should be a comma after the last array item in a multi-line array.
mod/sertifier/mod_form.php
(#27) Expected at least 1 space before "."; 0 found
(#27) Expected at least 1 space after "."; 0 found
(#28) Expected at least 1 space before "."; 0 found
(#28) Expected at least 1 space after "."; 0 found
(#40) Opening brace must not be followed by a blank line
(#58) Short array syntax must be used to define arrays
(#70) Short array syntax must be used to define arrays
(#71) Short array syntax must be used to define arrays
(#75) Short array syntax must be used to define arrays
(#81) Short array syntax must be used to define arrays
(#82) Short array syntax must be used to define arrays
(#82) Expected 0 spaces before closing parenthesis; 1 found
(#92) Opening parenthesis of a multi-line function call must be the last content on the line
(#95) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#95) Closing parenthesis of a multi-line function call must be on a line by itself
(#100) Short array syntax must be used to define arrays
(#102) Opening parenthesis of a multi-line function call must be the last content on the line
(#105) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#105) Closing parenthesis of a multi-line function call must be on a line by itself
(#106) Short array syntax must be used to define arrays
(#111) Opening parenthesis of a multi-line function call must be the last content on the line
(#115) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#115) Short array syntax must be used to define arrays
(#115) Closing parenthesis of a multi-line function call must be on a line by itself
(#118) Opening parenthesis of a multi-line function call must be the last content on the line
(#121) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#121) Closing parenthesis of a multi-line function call must be on a line by itself
(#128) Opening parenthesis of a multi-line function call must be the last content on the line
(#131) Opening parenthesis of a multi-line function call must be the last content on the line
(#131) Only one argument is allowed per line in a multi-line function call
(#132) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#132) Closing parenthesis of a multi-line function call must be on a line by itself
(#132) Closing parenthesis of a multi-line function call must be on a line by itself
(#137) Short array syntax must be used to define arrays
(#153) Expected at least 1 space before "."; 0 found
(#153) Expected at least 1 space after "."; 0 found
(#153) Expected at least 1 space before "."; 0 found
(#153) Expected at least 1 space after "."; 0 found
(#154) Expected at least 1 space before "."; 0 found
(#154) Expected at least 1 space after "."; 0 found
(#154) Expected at least 1 space before "."; 0 found
(#154) Expected at least 1 space after "."; 0 found
(#157) Expected at least 1 space before "."; 0 found
(#157) Expected at least 1 space after "."; 0 found
(#157) Expected at least 1 space before "."; 0 found
(#157) Expected at least 1 space after "."; 0 found
(#157) Short array syntax must be used to define arrays
(#161) Expected at least 1 space before "."; 0 found
(#161) Expected at least 1 space after "."; 0 found
(#161) Expected at least 1 space before "."; 0 found
(#161) Expected at least 1 space after "."; 0 found
(#161) Short array syntax must be used to define arrays
mod/sertifier/settings.php
(#28) Opening parenthesis of a multi-line function call must be the last content on the line
(#29) Multi-line function call not indented correctly; expected 12 spaces but found 8
(#30) Multi-line function call not indented correctly; expected 12 spaces but found 8
(#31) Closing parenthesis of a multi-line function call must be on a line by itself
mod/sertifier/view.php
(#33) Short array syntax must be used to define arrays
(#34) Short array syntax must be used to define arrays
(#41) Short array syntax must be used to define arrays
(#47) Blank line found at start of control structure
(#56) There should be a comma after the last array item in a multi-line array.
(#60) Space after opening parenthesis of function call prohibited
(#60) Expected 0 spaces before closing parenthesis; 1 found
(#61) Expected at least 1 space before "."; 0 found
(#61) Expected at least 1 space after "."; 0 found
(#62) Short array syntax must be used to define arrays
(#66) There should be a comma after the last array item in a multi-line array.
(#72) Space after opening parenthesis of function call prohibited
(#74) Space after opening parenthesis of function call prohibited
(#74) Expected 0 spaces before closing parenthesis; 1 found
(#75) Space after opening parenthesis of function call prohibited
(#78) There should be a comma after the last array item in a multi-line array.
(#81) Space after opening parenthesis of function call prohibited
(#81) Expected 0 spaces before closing parenthesis; 1 found
(#94) Space after opening parenthesis of function call prohibited
(#97) Space after opening parenthesis of function call prohibited
(#97) Expected 0 spaces before closing parenthesis; 1 found
(#98) Space after opening parenthesis of function call prohibited
(#101) There should be a comma after the last array item in a multi-line array.
(#104) Space after opening parenthesis of function call prohibited
(#104) Expected 0 spaces before closing parenthesis; 1 found

Javascript coding style problems

(0 errors, 0 warnings)

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


CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(0 errors, 0 warnings)

This section shows the phpdocs problems detected in the code by local_moodlecheck [More info]


Update savepoints problems

(0 errors, 0 warnings)

This section shows problems detected with the handling of upgrade savepoints [More info]


Third party library modification problems

(0 errors, 0 warnings)

This section shows problems detected with the modification of third party libraries [More info]


grunt changes

(0 errors, 0 warnings)

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


shifter problems

(0 errors, 0 warnings)

This section shows problems detected by shifter [More info]


Mustache template problems

(0 errors, 0 warnings)

This section shows problems detected in mustache templates [More info]


Gherkin .feature problems

(0 errors, 0 warnings)

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