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

(20 errors, 42 warnings)

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

mod/assign/submission/onlyoffice/api/editorconfig.php
(#26) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#60) Short array syntax must be used to define arrays
(#90) There should be a comma after the last array item in a multi-line array.
(#98) There should be a comma after the last array item in a multi-line array.
(#105) There should be a comma after the last array item in a multi-line array.
(#106) There should be a comma after the last array item in a multi-line array.
(#107) There should be a comma after the last array item in a multi-line array.
(#127) There should be a comma after the last array item in a multi-line array.
(#130) Inline comments must start with a capital letter, digit or 3-dots sequence
(#130) Inline comments must end in full-stops, exclamation marks, or question marks
mod/assign/submission/onlyoffice/backup/moodle2/backup_assignsubmission_onlyoffice_subplugin.class.php
(#42) Short array syntax must be used to define arrays
(#49) Short array syntax must be used to define arrays
(#57) Short array syntax must be used to define arrays
mod/assign/submission/onlyoffice/backup/moodle2/restore_assignsubmission_onlyoffice_subplugin.class.php
(#38) Short array syntax must be used to define arrays
mod/assign/submission/onlyoffice/callback.php
(#25) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#127) Short array syntax must be used to define arrays
(#169) There should be a comma after the last array item in a multi-line array.
mod/assign/submission/onlyoffice/classes/filemanager.php
(#106) There should be a comma after the last array item in a multi-line array.
(#174) Short array syntax must be used to define arrays
(#182) There should be a comma after the last array item in a multi-line array.
(#296) There should be a comma after the last array item in a multi-line array.
(#327) There should be a comma after the last array item in a multi-line array.
mod/assign/submission/onlyoffice/classes/output/content.php
(#74) There should be a comma after the last array item in a multi-line array.
mod/assign/submission/onlyoffice/classes/privacy/provider.php
(#33) Import statements must not begin with a leading backslash
(#34) Import statements must not begin with a leading backslash
(#35) Import statements must not begin with a leading backslash
(#36) Import statements must not begin with a leading backslash
(#54) There must not be a space before the colon in a return type declaration
(#105) Short array syntax must be used to define arrays
(#119) There should be a comma after the last array item in a multi-line array.
mod/assign/submission/onlyoffice/download.php
(#25) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#87) Short array syntax must be used to define arrays
mod/assign/submission/onlyoffice/lang/de/assignsubmission_onlyoffice.php
(#26) The string key "enabled" is not in the correct order, it should be before "pluginname"
(#28) The string key "assignformat" is not in the correct order, it should be before "enabled_help"
(#32) The string key "formnotready" is not in the correct order, it should be before "viewdocument"
mod/assign/submission/onlyoffice/lang/en/assignsubmission_onlyoffice.php
(#26) The string key "enabled" is not in the correct order, it should be before "pluginname"
(#28) The string key "assignformat" is not in the correct order, it should be before "enabled_help"
(#32) The string key "formnotready" is not in the correct order, it should be before "viewdocument"
mod/assign/submission/onlyoffice/lang/es/assignsubmission_onlyoffice.php
(#26) The string key "enabled" is not in the correct order, it should be before "pluginname"
(#28) The string key "assignformat" is not in the correct order, it should be before "enabled_help"
(#32) The string key "formnotready" is not in the correct order, it should be before "viewdocument"
mod/assign/submission/onlyoffice/lang/fr/assignsubmission_onlyoffice.php
(#26) The string key "enabled" is not in the correct order, it should be before "pluginname"
(#28) The string key "assignformat" is not in the correct order, it should be before "enabled_help"
(#32) The string key "formnotready" is not in the correct order, it should be before "viewdocument"
mod/assign/submission/onlyoffice/lang/it/assignsubmission_onlyoffice.php
(#26) The string key "enabled" is not in the correct order, it should be before "pluginname"
(#28) The string key "assignformat" is not in the correct order, it should be before "enabled_help"
(#32) The string key "formnotready" is not in the correct order, it should be before "viewdocument"
mod/assign/submission/onlyoffice/lang/ja/assignsubmission_onlyoffice.php
(#26) The string key "enabled" is not in the correct order, it should be before "pluginname"
(#28) The string key "assignformat" is not in the correct order, it should be before "enabled_help"
(#32) The string key "formnotready" is not in the correct order, it should be before "viewdocument"
mod/assign/submission/onlyoffice/lang/ru/assignsubmission_onlyoffice.php
(#26) The string key "enabled" is not in the correct order, it should be before "pluginname"
(#28) The string key "assignformat" is not in the correct order, it should be before "enabled_help"
(#32) The string key "formnotready" is not in the correct order, it should be before "viewdocument"
mod/assign/submission/onlyoffice/lang/zh_cn/assignsubmission_onlyoffice.php
(#26) The string key "enabled" is not in the correct order, it should be before "pluginname"
(#28) The string key "assignformat" is not in the correct order, it should be before "enabled_help"
(#32) The string key "formnotready" is not in the correct order, it should be before "viewdocument"
mod/assign/submission/onlyoffice/locallib.php
(#97) Inline comments must start with a capital letter, digit or 3-dots sequence
(#97) Inline comments must end in full-stops, exclamation marks, or question marks
(#204) There should be a comma after the last array item in a multi-line array.
(#297) Short array syntax must be used to define arrays
(#300) There should be a comma after the last array item in a multi-line array.
mod/assign/submission/onlyoffice/version.php
(#32) Short array syntax must be used to define arrays

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]