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

(546 errors, 122 warnings)

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

local/openlms/classes/dialog_form_trait.php
(#30) Missing member variable doc comment
(#32) Missing docblock for function __construct
(#32) Line exceeds 132 characters; contains 167 characters
(#59) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $message.
(#59) Line exceeds 132 characters; contains 144 characters
(#81) Missing docblock for function render
local/openlms/classes/external/form_autocomplete_field.php
(#48) Opening parenthesis of a multi-line function call must be the last content on the line
(#48) Only one argument is allowed per line in a multi-line function call
(#49) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#49) Only one argument is allowed per line in a multi-line function call
(#49) Only one argument is allowed per line in a multi-line function call
(#49) Closing parenthesis of a multi-line function call must be on a line by itself
(#66) Expected 1 space after FUNCTION keyword; 0 found
(#102) Line exceeds 132 characters; contains 166 characters
local/openlms/classes/form/notification_create.php
(#28) Missing docblock for function definition
(#59) Missing docblock for function validation
local/openlms/classes/form/notification_delete.php
(#28) Missing docblock for function definition
(#56) Missing docblock for function validation
local/openlms/classes/form/notification_import.php
(#28) Missing docblock for function definition
(#51) Missing docblock for function validation
local/openlms/classes/form/notification_import_confirmation.php
(#30) Missing docblock for function definition
(#57) Opening parenthesis of a multi-line function call must be the last content on the line
(#58) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#58) Closing parenthesis of a multi-line function call must be on a line by itself
(#64) Opening parenthesis of a multi-line function call must be the last content on the line
(#64) Only one argument is allowed per line in a multi-line function call
(#64) Expected at least 1 space before "."; 0 found
(#64) Expected at least 1 space after "."; 0 found
(#64) Only one argument is allowed per line in a multi-line function call
(#64) Only one argument is allowed per line in a multi-line function call
(#65) Multi-line function call not indented correctly; expected 12 spaces but found 16
(#65) Closing parenthesis of a multi-line function call must be on a line by itself
(#72) Missing docblock for function validation
local/openlms/classes/form/notification_update.php
(#28) Missing docblock for function definition
(#55) Inline comments must end in full-stops, exclamation marks, or question marks
(#89) Missing docblock for function validation
local/openlms/classes/hook/extra_menu.php
(#69) No space found after comma in argument list
(#69) Commas (,) must be followed by white space.
(#69) Expected 1 space between the comma and "$url". Found: no spaces
local/openlms/classes/json_schema.php
(#28) Missing docblock for function validate
(#29) "require_once" must be immediately followed by an open parenthesis
(#57) "require_once" must be immediately followed by an open parenthesis
local/openlms/classes/notification/manager.php
(#19) Import statements must not begin with a leading backslash
(#134) Line indented incorrectly; expected 4 spaces, found 5
(#137) Multi-line function call not indented correctly; expected 9 spaces but found 13
(#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) Closing parenthesis of a multi-line function call must be on a line by itself
(#139) Line indented incorrectly; expected 4 spaces, found 5
(#150) Line exceeds 132 characters; contains 147 characters
(#182) Expected at least 1 space after "."; 0 found
(#182) Expected at least 1 space before "."; 0 found
(#182) Expected at least 1 space after "."; 0 found
(#182) Expected at least 1 space before "."; 0 found
(#182) Expected at least 1 space after "."; 0 found
(#215) Line exceeds 132 characters; contains 141 characters
(#220) Line exceeds 132 characters; contains 139 characters
(#229) Line exceeds 132 characters; contains 135 characters
(#230) Line exceeds 132 characters; contains 133 characters
local/openlms/classes/notification/notificationtype.php
(#265) Multi-line function declarations must define one parameter per line
(#265) Multi-line function declarations must define one parameter per line
(#265) Multi-line function declarations must define one parameter per line
(#265) Multi-line function declarations must define one parameter per line
(#275) The first expression of a multi-line control structure must be on the line after the opening parenthesis
(#275) Opening parenthesis of a multi-line function call must be the last content on the line
(#276) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#276) Closing parenthesis of a multi-line function call must be on a line by itself
local/openlms/classes/notification/util.php
(#92) Inline comments must end in full-stops, exclamation marks, or question marks
(#144) Inline comments must end in full-stops, exclamation marks, or question marks
(#244) Expected at least 1 space before "."; 0 found
(#244) Expected at least 1 space after "."; 0 found
(#244) Expected at least 1 space before "."; 0 found
(#244) Expected at least 1 space after "."; 0 found
(#245) Expected at least 1 space before "."; 0 found
(#245) Expected at least 1 space after "."; 0 found
(#245) Expected at least 1 space before "."; 0 found
(#245) Expected at least 1 space after "."; 0 found
local/openlms/classes/output/dialog_form/action.php
(#50) Missing docblock for function __construct
(#56) Missing docblock for function set_after_submit
(#60) Missing docblock for function get_after_submit
(#64) Missing docblock for function get_form_url
(#68) Missing docblock for function get_title
(#72) Missing docblock for function set_dialog_name
(#76) Missing docblock for function get_dialog_name
(#80) Missing docblock for function is_disabled
(#84) Missing docblock for function set_disabled
local/openlms/classes/output/dialog_form/button.php
(#34) Missing docblock for function __construct
(#39) Missing docblock for function is_primary
(#43) Missing docblock for function set_primary
(#47) Missing docblock for function set_icon
(#51) Missing docblock for function get_icon
local/openlms/classes/output/dialog_form/icon.php
(#31) Missing docblock for function __construct
(#36) Missing docblock for function get_icon
local/openlms/classes/output/dialog_form/renderer.php
(#28) Missing docblock for function render_icon
(#54) Missing docblock for function render_button
(#81) Missing docblock for function render_link
local/openlms/classes/output/extra_menu/dropdown.php
(#27) The interface names in a "class implements" statement should be ordered alphabetically. Expected: \renderable, \core\output\named_templatable; Found: \core\output\named_templatable, \renderable
local/openlms/classes/privacy/provider.php
(#33) The interface names in a "class implements" statement should be ordered alphabetically. Expected: \core_privacy\local\metadata\provider, \core_privacy\local\request\plugin\provider, \core_privacy\local\request\core_userlist_provider; Found: \core_privacy\local\request\core_userlist_provider, \core_privacy\local\metadata\provider, \core_privacy\local\request\plugin\provider
(#36) Opening brace must not be followed by a blank line
(#44) There must not be a space before the colon in a return type declaration
(#62) Inline comments must end in full-stops, exclamation marks, or question marks
(#72) Inline comments must end in full-stops, exclamation marks, or question marks
(#81) Inline comments must end in full-stops, exclamation marks, or question marks
(#90) Inline comments must end in full-stops, exclamation marks, or question marks
(#99) Inline comments must end in full-stops, exclamation marks, or question marks
(#108) Inline comments must end in full-stops, exclamation marks, or question marks
local/openlms/db/caches.php
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#26) Short array syntax must be used to define arrays
local/openlms/lang/ar/local_openlms.php
(#48) The string key "privacy:metadata:local_openlms_user_notified:tableexplanation" is not in the correct order, it should be before "privacy:metadata:userid"
local/openlms/lang/ca/local_openlms.php
(#48) The string key "privacy:metadata:local_openlms_user_notified:tableexplanation" is not in the correct order, it should be before "privacy:metadata:userid"
local/openlms/lang/cs/local_openlms.php
(#48) The string key "privacy:metadata:local_openlms_user_notified:tableexplanation" is not in the correct order, it should be before "privacy:metadata:userid"
local/openlms/lang/da/local_openlms.php
(#48) The string key "privacy:metadata:local_openlms_user_notified:tableexplanation" is not in the correct order, it should be before "privacy:metadata:userid"
local/openlms/lang/de/local_openlms.php
(#48) The string key "privacy:metadata:local_openlms_user_notified:tableexplanation" is not in the correct order, it should be before "privacy:metadata:userid"
local/openlms/lang/en/local_openlms.php
(#48) The string key "privacy:metadata:local_openlms_user_notified:tableexplanation" is not in the correct order, it should be before "privacy:metadata:userid"
local/openlms/lang/es/local_openlms.php
(#48) The string key "privacy:metadata:local_openlms_user_notified:tableexplanation" is not in the correct order, it should be before "privacy:metadata:userid"
local/openlms/lang/fi/local_openlms.php
(#48) The string key "privacy:metadata:local_openlms_user_notified:tableexplanation" is not in the correct order, it should be before "privacy:metadata:userid"
local/openlms/lang/fr/local_openlms.php
(#48) The string key "privacy:metadata:local_openlms_user_notified:tableexplanation" is not in the correct order, it should be before "privacy:metadata:userid"
local/openlms/lang/it/local_openlms.php
(#48) The string key "privacy:metadata:local_openlms_user_notified:tableexplanation" is not in the correct order, it should be before "privacy:metadata:userid"
local/openlms/lang/ja/local_openlms.php
(#48) The string key "privacy:metadata:local_openlms_user_notified:tableexplanation" is not in the correct order, it should be before "privacy:metadata:userid"
local/openlms/lang/nl/local_openlms.php
(#48) The string key "privacy:metadata:local_openlms_user_notified:tableexplanation" is not in the correct order, it should be before "privacy:metadata:userid"
local/openlms/lang/pl/local_openlms.php
(#48) The string key "privacy:metadata:local_openlms_user_notified:tableexplanation" is not in the correct order, it should be before "privacy:metadata:userid"
local/openlms/lang/pt_br/local_openlms.php
(#48) The string key "privacy:metadata:local_openlms_user_notified:tableexplanation" is not in the correct order, it should be before "privacy:metadata:userid"
local/openlms/lang/th/local_openlms.php
(#48) The string key "privacy:metadata:local_openlms_user_notified:tableexplanation" is not in the correct order, it should be before "privacy:metadata:userid"
local/openlms/lang/tr/local_openlms.php
(#48) The string key "privacy:metadata:local_openlms_user_notified:tableexplanation" is not in the correct order, it should be before "privacy:metadata:userid"
local/openlms/lang/zh_tw/local_openlms.php
(#48) The string key "privacy:metadata:local_openlms_user_notified:tableexplanation" is not in the correct order, it should be before "privacy:metadata:userid"
local/openlms/notification/create.php
(#28) Inline doc block type-hinting for '$DB' does not match next code line 'if...'
(#29) Inline doc block type-hinting for '$PAGE' does not match next code line 'if...'
(#30) Inline doc block type-hinting for '$OUTPUT' does not match next code line 'if...'
(#31) Inline doc block type-hinting for '$CFG' does not match next code line 'if...'
(#33) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#62) Opening parenthesis of a multi-line function call must be the last content on the line
(#63) Multi-line function call not indented correctly; expected 0 spaces but found 4
(#63) Closing parenthesis of a multi-line function call must be on a line by itself
local/openlms/notification/delete.php
(#28) Inline doc block type-hinting for '$DB' does not match next code line 'if...'
(#29) Inline doc block type-hinting for '$PAGE' does not match next code line 'if...'
(#30) Inline doc block type-hinting for '$OUTPUT' does not match next code line 'if...'
(#31) Inline doc block type-hinting for '$CFG' does not match next code line 'if...'
(#33) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
local/openlms/notification/import.php
(#33) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
local/openlms/notification/update.php
(#28) Inline doc block type-hinting for '$DB' does not match next code line 'if...'
(#29) Inline doc block type-hinting for '$PAGE' does not match next code line 'if...'
(#30) Inline doc block type-hinting for '$OUTPUT' does not match next code line 'if...'
(#31) Inline doc block type-hinting for '$CFG' does not match next code line 'if...'
(#33) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
local/openlms/notification/view.php
(#28) Inline doc block type-hinting for '$DB' does not match next code line 'if...'
(#29) Inline doc block type-hinting for '$PAGE' does not match next code line 'if...'
(#30) Inline doc block type-hinting for '$OUTPUT' does not match next code line 'if...'
(#31) Inline doc block type-hinting for '$CFG' does not match next code line 'if...'
(#33) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#82) Line exceeds 132 characters; contains 136 characters
local/openlms/settings.php
(#29) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#35) "require" must be immediately followed by an open parenthesis
(#43) Line exceeds 132 characters; contains 139 characters
(#44) "require" must be immediately followed by an open parenthesis
local/openlms/tests/behat/behat_local_openlms.php
(#81) Opening parenthesis of a multi-line function call must be the last content on the line
(#82) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#82) Only one argument is allowed per line in a multi-line function call
(#82) Closing parenthesis of a multi-line function call must be on a line by itself
(#85) Line exceeds 132 characters; contains 147 characters
(#110) No one-line description found in phpdocs for docblock of function skip_if_plugin_missing
(#112) Line exceeds 132 characters; contains 136 characters
(#119) No one-line description found in phpdocs for docblock of function skip_if_plugin_installed
(#173) Expected 1 space after FUNCTION keyword; 0 found
(#181) Line exceeds 132 characters; contains 173 characters
(#183) Short array syntax must be used to define arrays
local/openlms/tests/behat/task_runner.php
(#37) The constant "E_STRICT" is deprecated since PHP 8.4
(#39) The constant "E_STRICT" is deprecated since PHP 8.4
(#42) Expected at least 1 space before "."; 0 found
(#42) Expected at least 1 space after "."; 0 found
(#43) Expected at least 1 space before "."; 0 found
(#43) Expected at least 1 space after "."; 0 found
(#89) Blank line found at end of control structure
local/openlms/tests/date_util_test.php
(#30) Unit test date_util_test should be declared as final.
(#36) Test method test_date_util() is missing any coverage information, own or at class level
(#70) Expected 1 newline at end of file; 0 found
local/openlms/tests/json_schema_test.php
(#30) Unit test json_schema_test should be declared as final.
(#36) Test method test_validate() is missing any coverage information, own or at class level
(#66) There should be a comma after the last array item in a multi-line array.
(#68) Long list syntax is not allowed
(#75) There should be a comma after the last array item in a multi-line array.
(#77) Long list syntax is not allowed
(#84) Long list syntax is not allowed
(#91) Long list syntax is not allowed
(#98) There should be a comma after the last array item in a multi-line array.
(#100) Long list syntax is not allowed
(#107) There should be a comma after the last array item in a multi-line array.
(#109) Long list syntax is not allowed
(#116) There should be a comma after the last array item in a multi-line array.
(#118) Long list syntax is not allowed
(#125) There should be a comma after the last array item in a multi-line array.
(#127) Long list syntax is not allowed
(#132) Test method test_normalise_data() is missing any coverage information, own or at class level
(#145) Expected at least 1 space before "=>"; 0 found
(#145) Expected 1 space before "=>"; 0 found
(#150) Expected at least 1 space before "=>"; 0 found
(#150) Expected 1 space before "=>"; 0 found
local/openlms/tests/notification/manager_test.php
(#30) Unit test manager_test should be declared as final.
(#36) Test method test_get_component() is missing any coverage information, own or at class level
(#36) Test method test_get_component() is missing a return type
(#40) Test method test_is_import_supported() is missing any coverage information, own or at class level
(#40) Test method test_is_import_supported() is missing a return type
local/openlms/tests/notification/notificationtype_test.php
(#30) Unit test notificationtype_test should be declared as final.
(#36) Test method test_get_component() is missing any coverage information, own or at class level
(#36) Test method test_get_component() is missing a return type
(#40) Test method test_get_classname() is missing any coverage information, own or at class level
(#40) Test method test_get_classname() is missing a return type
(#44) Test method test_format_subject() is missing any coverage information, own or at class level
(#44) Test method test_format_subject() is missing a return type
(#59) Test method test_format_body() is missing any coverage information, own or at class level
(#59) Test method test_format_body() is missing a return type
local/openlms/tests/notification/util_test.php
(#30) Unit test util_test should be declared as final.
(#36) Test method test_get_manager_classname() is missing any coverage information, own or at class level
(#36) Test method test_get_manager_classname() is missing a return type
(#43) Test method test_notification_create() is missing any coverage information, own or at class level
(#43) Test method test_notification_create() is missing a return type
(#110) Test method test_notification_update() is missing any coverage information, own or at class level
(#110) Test method test_notification_update() is missing a return type
(#192) Test method test_notification_delete() is missing any coverage information, own or at class level
(#192) Test method test_notification_delete() is missing a return type
(#225) Test method test_replace_placeholders() is missing any coverage information, own or at class level
(#225) Test method test_replace_placeholders() is missing a return type
(#228) Expected 1 space after FUNCTION keyword; 0 found
(#235) Test method test_filter_multilang() is missing any coverage information, own or at class level
(#235) Test method test_filter_multilang() is missing a return type
(#258) Test method test_filter_multilang2() is missing any coverage information, own or at class level
(#258) Test method test_filter_multilang2() is missing a return type
(#286) Test method test_notification_import() is missing any coverage information, own or at class level
(#286) Test method test_notification_import() is missing a return type
local/openlms/vendor/autoload.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file autoload.php
(#1) Moodle boilerplate not found
(#3) Inline comments must start with a capital letter, digit or 3-dots sequence
(#3) Inline comments must end in full-stops, exclamation marks, or question marks
(#5) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#9) Expected at least 1 space before "."; 0 found
(#9) Expected at least 1 space after "."; 0 found
(#9) Expected at least 1 space before "."; 0 found
(#9) Expected at least 1 space after "."; 0 found
(#9) Expected at least 1 space before "."; 0 found
(#9) Expected at least 1 space after "."; 0 found
(#9) Line exceeds maximum limit of 180 characters; contains 204 characters
(#13) Usage of ELSEIF not allowed; use ELSE IF instead
(#19) Passing E_USER_ERROR to trigger_error() is deprecated since 8.4. Throw an exception or call exit with a string message instead.
(#23) "require_once" must be immediately followed by an open parenthesis
local/openlms/vendor/composer/ClassLoader.php
(#1) Moodle boilerplate not found
(#15) Missing @copyright tag
(#15) Missing @license tag
(#43) DocBlock missing a @package tag for class ClassLoader. Expected @package local_openlms
(#46) Member variable "includeFile" must be all lower-case
(#49) Member variable "vendorDir" must be all lower-case
(#51) Inline comments must end in full-stops, exclamation marks, or question marks
(#55) Member variable "prefixLengthsPsr4" must be all lower-case
(#55) Short array syntax must be used to define arrays
(#59) Member variable "prefixDirsPsr4" must be all lower-case
(#59) Short array syntax must be used to define arrays
(#63) Member variable "fallbackDirsPsr4" must be all lower-case
(#63) Short array syntax must be used to define arrays
(#65) Inline comments must end in full-stops, exclamation marks, or question marks
(#73) Member variable "prefixesPsr0" must be all lower-case
(#73) Short array syntax must be used to define arrays
(#77) Member variable "fallbackDirsPsr0" must be all lower-case
(#77) Short array syntax must be used to define arrays
(#80) Member variable "useIncludePath" must be all lower-case
(#85) Member variable "classMap" must be all lower-case
(#85) Short array syntax must be used to define arrays
(#88) Member variable "classMapAuthoritative" must be all lower-case
(#93) Member variable "missingClasses" must be all lower-case
(#93) Short array syntax must be used to define arrays
(#96) Member variable "apcuPrefix" must be all lower-case
(#101) Member variable "registeredLoaders" must be all lower-case
(#101) Short array syntax must be used to define arrays
(#106) No one-line description found in phpdocs for docblock of function __construct
(#106) Variable "vendorDir" must be all lower-case
(#107) Opening brace should be on the same line as the declaration
(#108) Variable "vendorDir" must be all lower-case
(#115) No one-line description found in phpdocs for docblock of function getPrefixes
(#115) Public method name "ClassLoader::getPrefixes" must be in lower-case letters only
(#116) Opening brace should be on the same line as the declaration
(#121) Short array syntax must be used to define arrays
(#127) No one-line description found in phpdocs for docblock of function getPrefixesPsr4
(#127) Public method name "ClassLoader::getPrefixesPsr4" must be in lower-case letters only
(#128) Opening brace should be on the same line as the declaration
(#135) No one-line description found in phpdocs for docblock of function getFallbackDirs
(#135) Public method name "ClassLoader::getFallbackDirs" must be in lower-case letters only
(#136) Opening brace should be on the same line as the declaration
(#143) No one-line description found in phpdocs for docblock of function getFallbackDirsPsr4
(#143) Public method name "ClassLoader::getFallbackDirsPsr4" must be in lower-case letters only
(#144) Opening brace should be on the same line as the declaration
(#151) No one-line description found in phpdocs for docblock of function getClassMap
(#151) Public method name "ClassLoader::getClassMap" must be in lower-case letters only
(#152) Opening brace should be on the same line as the declaration
(#161) No one-line description found in phpdocs for docblock of function addClassMap
(#161) Public method name "ClassLoader::addClassMap" must be in lower-case letters only
(#161) Variable "classMap" must be all lower-case
(#162) Opening brace should be on the same line as the declaration
(#164) Variable "classMap" must be all lower-case
(#166) Variable "classMap" must be all lower-case
(#181) Opening brace should be on the same line as the declaration
(#230) Public method name "ClassLoader::addPsr4" must be in lower-case letters only
(#231) Opening brace should be on the same line as the declaration
(#246) Usage of ELSEIF not allowed; use ELSE IF instead
(#254) Usage of ELSEIF not allowed; use ELSE IF instead
(#279) Opening brace should be on the same line as the declaration
(#298) Public method name "ClassLoader::setPsr4" must be in lower-case letters only
(#299) Opening brace should be on the same line as the declaration
(#319) Public method name "ClassLoader::setUseIncludePath" must be in lower-case letters only
(#319) Variable "useIncludePath" must be all lower-case
(#320) Opening brace should be on the same line as the declaration
(#321) Variable "useIncludePath" must be all lower-case
(#330) Public method name "ClassLoader::getUseIncludePath" must be in lower-case letters only
(#331) Opening brace should be on the same line as the declaration
(#343) Public method name "ClassLoader::setClassMapAuthoritative" must be in lower-case letters only
(#343) Variable "classMapAuthoritative" must be all lower-case
(#344) Opening brace should be on the same line as the declaration
(#345) Variable "classMapAuthoritative" must be all lower-case
(#353) Public method name "ClassLoader::isClassMapAuthoritative" must be in lower-case letters only
(#354) Opening brace should be on the same line as the declaration
(#365) Public method name "ClassLoader::setApcuPrefix" must be in lower-case letters only
(#365) Variable "apcuPrefix" must be all lower-case
(#366) Opening brace should be on the same line as the declaration
(#367) Variable "apcuPrefix" must be all lower-case
(#367) Line exceeds 132 characters; contains 142 characters
(#375) Public method name "ClassLoader::getApcuPrefix" must be in lower-case letters only
(#376) Opening brace should be on the same line as the declaration
(#388) Opening brace should be on the same line as the declaration
(#389) Short array syntax must be used to define arrays
(#396) Variable "registeredLoaders" must be all lower-case
(#396) Short array syntax must be used to define arrays
(#396) Variable "registeredLoaders" must be all lower-case
(#398) Variable "registeredLoaders" must be all lower-case
(#399) Variable "registeredLoaders" must be all lower-case
(#409) Opening brace should be on the same line as the declaration
(#410) Short array syntax must be used to define arrays
(#413) Variable "registeredLoaders" must be all lower-case
(#423) Public method name "ClassLoader::loadClass" must be in lower-case letters only
(#424) Opening brace should be on the same line as the declaration
(#426) Variable "includeFile" must be all lower-case
(#426) Variable "includeFile" must be all lower-case
(#427) Variable "includeFile" must be all lower-case
(#442) Public method name "ClassLoader::findFile" must be in lower-case letters only
(#443) Opening brace should be on the same line as the declaration
(#444) Inline comments must start with a capital letter, digit or 3-dots sequence
(#444) Inline comments must end in full-stops, exclamation marks, or question marks
(#452) Expected at least 1 space before "."; 0 found
(#452) Expected at least 1 space after "."; 0 found
(#460) Inline comments must end in full-stops, exclamation marks, or question marks
(#466) Expected at least 1 space before "."; 0 found
(#466) Expected at least 1 space after "."; 0 found
(#482) Public method name "ClassLoader::getRegisteredLoaders" must be in lower-case letters only
(#483) Opening brace should be on the same line as the declaration
(#484) Variable "registeredLoaders" must be all lower-case
(#492) No one-line description found in phpdocs for docblock of function findFileWithExtension
(#492) Private method name "ClassLoader::findFileWithExtension" must be in lower-case letters only
(#493) Opening brace should be on the same line as the declaration
(#494) Inline comments must end in full-stops, exclamation marks, or question marks
(#495) Variable "logicalPathPsr4" must be all lower-case
(#499) Variable "subPath" must be all lower-case
(#500) Variable "lastPos" must be all lower-case
(#500) Variable "subPath" must be all lower-case
(#501) Variable "subPath" must be all lower-case
(#501) Variable "subPath" must be all lower-case
(#501) Variable "lastPos" must be all lower-case
(#502) Variable "subPath" must be all lower-case
(#504) Variable "pathEnd" must be all lower-case
(#504) Variable "logicalPathPsr4" must be all lower-case
(#504) Variable "lastPos" must be all lower-case
(#506) Variable "pathEnd" must be all lower-case
(#514) Inline comments must end in full-stops, exclamation marks, or question marks
(#516) Variable "logicalPathPsr4" must be all lower-case
(#521) Inline comments must end in full-stops, exclamation marks, or question marks
(#523) Inline comments must start with a capital letter, digit or 3-dots sequence
(#523) Inline comments must end in full-stops, exclamation marks, or question marks
(#524) Variable "logicalPathPsr0" must be all lower-case
(#524) Variable "logicalPathPsr4" must be all lower-case
(#525) Variable "logicalPathPsr4" must be all lower-case
(#527) Inline comments must end in full-stops, exclamation marks, or question marks
(#528) Variable "logicalPathPsr0" must be all lower-case
(#535) Variable "logicalPathPsr0" must be all lower-case
(#543) Inline comments must end in full-stops, exclamation marks, or question marks
(#545) Variable "logicalPathPsr0" must be all lower-case
(#551) Variable "logicalPathPsr0" must be all lower-case
(#561) No one-line description found in phpdocs for docblock of function initializeIncludeClosure
(#561) Private method name "ClassLoader::initializeIncludeClosure" must be in lower-case letters only
(#562) Opening brace should be on the same line as the declaration
(#563) Variable "includeFile" must be all lower-case
(#567) Inline doc block comments are not allowed; use "// Comment." instead
(#575) Variable "includeFile" must be all lower-case
(#575) Expected 1 space after FUNCTION keyword; 0 found
(#576) "include" must be immediately followed by an open parenthesis
local/openlms/vendor/composer/InstalledVersions.php
(#1) Moodle boilerplate not found
(#18) Missing @copyright tag
(#18) Missing @license tag
(#25) Docblock tag "@final" is not recommended.
(#27) DocBlock missing a @package tag for class InstalledVersions. Expected @package local_openlms
(#31) @psalm-var tag is not allowed in member variable comment
(#31) Invalid docblock tag "@psalm-var".
(#31) Line exceeds maximum limit of 180 characters; contains 417 characters
(#38) Member variable "canGetVendors" must be all lower-case
(#42) @psalm-var tag is not allowed in member variable comment
(#42) Invalid docblock tag "@psalm-var".
(#42) Line exceeds maximum limit of 180 characters; contains 419 characters
(#44) Member variable "installedByVendor" must be all lower-case
(#44) Short array syntax must be used to define arrays
(#50) Invalid docblock tag "@psalm-return".
(#52) Public method name "InstalledVersions::getInstalledPackages" must be in lower-case letters only
(#53) Opening brace should be on the same line as the declaration
(#54) Short array syntax must be used to define arrays
(#71) Invalid docblock tag "@psalm-return".
(#73) Public method name "InstalledVersions::getInstalledPackagesByType" must be in lower-case letters only
(#74) Opening brace should be on the same line as the declaration
(#75) Variable "packagesByType" must be all lower-case
(#75) Short array syntax must be used to define arrays
(#80) Variable "packagesByType" must be all lower-case
(#85) Variable "packagesByType" must be all lower-case
(#97) Public method name "InstalledVersions::isInstalled" must be in lower-case letters only
(#97) Variable "packageName" must be all lower-case
(#97) Variable "includeDevRequirements" must be all lower-case
(#98) Opening brace should be on the same line as the declaration
(#100) Variable "packageName" must be all lower-case
(#101) Variable "includeDevRequirements" must be all lower-case
(#101) Variable "packageName" must be all lower-case
(#101) Variable "packageName" must be all lower-case
(#101) Line exceeds maximum limit of 180 characters; contains 183 characters
(#117) Line exceeds 132 characters; contains 158 characters
(#120) Variable "packageName" must be all lower-case
(#121) Opening brace should be on the same line as the declaration
(#123) Variable "packageName" must be all lower-case
(#137) Public method name "InstalledVersions::getVersionRanges" must be in lower-case letters only
(#137) Variable "packageName" must be all lower-case
(#138) Opening brace should be on the same line as the declaration
(#140) Variable "packageName" must be all lower-case
(#144) Short array syntax must be used to define arrays
(#145) Variable "packageName" must be all lower-case
(#146) Variable "packageName" must be all lower-case
(#148) Variable "packageName" must be all lower-case
(#149) Variable "packageName" must be all lower-case
(#151) Variable "packageName" must be all lower-case
(#152) Variable "packageName" must be all lower-case
(#154) Variable "packageName" must be all lower-case
(#155) Variable "packageName" must be all lower-case
(#161) Variable "packageName" must be all lower-case
(#166) Line exceeds maximum limit of 180 characters; contains 218 characters
(#168) No one-line description found in phpdocs for docblock of function getVersion
(#168) Public method name "InstalledVersions::getVersion" must be in lower-case letters only
(#168) Variable "packageName" must be all lower-case
(#169) Opening brace should be on the same line as the declaration
(#171) Variable "packageName" must be all lower-case
(#175) Variable "packageName" must be all lower-case
(#179) Variable "packageName" must be all lower-case
(#182) Variable "packageName" must be all lower-case
(#187) Line exceeds maximum limit of 180 characters; contains 218 characters
(#189) No one-line description found in phpdocs for docblock of function getPrettyVersion
(#189) Public method name "InstalledVersions::getPrettyVersion" must be in lower-case letters only
(#189) Variable "packageName" must be all lower-case
(#190) Opening brace should be on the same line as the declaration
(#192) Variable "packageName" must be all lower-case
(#196) Variable "packageName" must be all lower-case
(#200) Variable "packageName" must be all lower-case
(#203) Variable "packageName" must be all lower-case
(#208) Line exceeds 132 characters; contains 135 characters
(#210) No one-line description found in phpdocs for docblock of function getReference
(#210) Public method name "InstalledVersions::getReference" must be in lower-case letters only
(#210) Variable "packageName" must be all lower-case
(#211) Opening brace should be on the same line as the declaration
(#213) Variable "packageName" must be all lower-case
(#217) Variable "packageName" must be all lower-case
(#221) Variable "packageName" must be all lower-case
(#224) Variable "packageName" must be all lower-case
(#229) Line exceeds maximum limit of 180 characters; contains 200 characters
(#231) No one-line description found in phpdocs for docblock of function getInstallPath
(#231) Public method name "InstalledVersions::getInstallPath" must be in lower-case letters only
(#231) Variable "packageName" must be all lower-case
(#232) Opening brace should be on the same line as the declaration
(#234) Variable "packageName" must be all lower-case
(#238) Variable "packageName" must be all lower-case
(#238) Variable "packageName" must be all lower-case
(#238) Line exceeds 132 characters; contains 141 characters
(#241) Variable "packageName" must be all lower-case
(#246) Invalid docblock tag "@psalm-return".
(#246) Line exceeds 132 characters; contains 171 characters
(#248) No one-line description found in phpdocs for docblock of function getRootPackage
(#248) Public method name "InstalledVersions::getRootPackage" must be in lower-case letters only
(#249) Opening brace should be on the same line as the declaration
(#258) Line exceeds maximum limit of 180 characters; contains 201 characters
(#260) Invalid docblock tag "@psalm-return".
(#260) Line exceeds maximum limit of 180 characters; contains 407 characters
(#262) Public method name "InstalledVersions::getRawData" must be in lower-case letters only
(#263) Opening brace should be on the same line as the declaration
(#264) Line exceeds maximum limit of 180 characters; contains 228 characters
(#267) Inline comments must start with a capital letter, digit or 3-dots sequence
(#268) Line exceeds 132 characters; contains 134 characters
(#268) Inline comments must end in full-stops, exclamation marks, or question marks
(#270) "include" must be immediately followed by an open parenthesis
(#272) Short array syntax must be used to define arrays
(#283) Invalid docblock tag "@psalm-return".
(#283) Line exceeds maximum limit of 180 characters; contains 413 characters
(#285) Public method name "InstalledVersions::getAllRawData" must be in lower-case letters only
(#286) Opening brace should be on the same line as the declaration
(#306) Invalid docblock tag "@psalm-param".
(#306) Line exceeds maximum limit of 180 characters; contains 412 characters
(#309) Opening brace should be on the same line as the declaration
(#311) Variable "installedByVendor" must be all lower-case
(#311) Short array syntax must be used to define arrays
(#316) Invalid docblock tag "@psalm-return".
(#316) Line exceeds maximum limit of 180 characters; contains 413 characters
(#318) No one-line description found in phpdocs for docblock of function getInstalled
(#318) Private method name "InstalledVersions::getInstalled" must be in lower-case letters only
(#319) Opening brace should be on the same line as the declaration
(#320) Variable "canGetVendors" must be all lower-case
(#321) Variable "canGetVendors" must be all lower-case
(#324) Short array syntax must be used to define arrays
(#326) Variable "canGetVendors" must be all lower-case
(#327) Variable "vendorDir" must be all lower-case
(#328) Variable "installedByVendor" must be all lower-case
(#328) Variable "vendorDir" must be all lower-case
(#329) Variable "installedByVendor" must be all lower-case
(#329) Variable "vendorDir" must be all lower-case
(#330) Usage of ELSEIF not allowed; use ELSE IF instead
(#330) Variable "vendorDir" must be all lower-case
(#330) Expected at least 1 space before "."; 0 found
(#330) Expected at least 1 space after "."; 0 found
(#332) "require" must be immediately followed by an open parenthesis
(#332) Variable "vendorDir" must be all lower-case
(#332) Expected at least 1 space before "."; 0 found
(#332) Expected at least 1 space after "."; 0 found
(#333) Variable "installedByVendor" must be all lower-case
(#333) Variable "vendorDir" must be all lower-case
(#334) Variable "vendorDir" must be all lower-case
(#334) Expected at least 1 space before "."; 0 found
(#334) Expected at least 1 space after "."; 0 found
(#342) Inline comments must start with a capital letter, digit or 3-dots sequence
(#343) Line exceeds 132 characters; contains 134 characters
(#343) Inline comments must end in full-stops, exclamation marks, or question marks
(#346) "require" must be immediately followed by an open parenthesis
(#349) Short array syntax must be used to define arrays
(#353) Short array syntax must be used to define arrays
local/openlms/vendor/composer/autoload_classmap.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file autoload_classmap.php
(#1) Moodle boilerplate not found
(#3) Inline comments must start with a capital letter, digit or 3-dots sequence
(#3) Inline comments must end in full-stops, exclamation marks, or question marks
(#5) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#5) Variable "vendorDir" must be all lower-case
(#6) Variable "baseDir" must be all lower-case
(#6) Variable "vendorDir" must be all lower-case
(#8) Short array syntax must be used to define arrays
(#9) Variable "vendorDir" must be all lower-case
local/openlms/vendor/composer/autoload_namespaces.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file autoload_namespaces.php
(#1) Moodle boilerplate not found
(#3) Inline comments must start with a capital letter, digit or 3-dots sequence
(#3) Inline comments must end in full-stops, exclamation marks, or question marks
(#5) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#5) Variable "vendorDir" must be all lower-case
(#6) Variable "baseDir" must be all lower-case
(#6) Variable "vendorDir" must be all lower-case
(#8) Short array syntax must be used to define arrays
local/openlms/vendor/composer/autoload_psr4.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file autoload_psr4.php
(#1) Moodle boilerplate not found
(#3) Inline comments must start with a capital letter, digit or 3-dots sequence
(#3) Inline comments must end in full-stops, exclamation marks, or question marks
(#5) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#5) Variable "vendorDir" must be all lower-case
(#6) Variable "baseDir" must be all lower-case
(#6) Variable "vendorDir" must be all lower-case
(#8) Short array syntax must be used to define arrays
(#9) Short array syntax must be used to define arrays
(#9) Variable "vendorDir" must be all lower-case
(#10) Short array syntax must be used to define arrays
(#10) Variable "vendorDir" must be all lower-case
(#11) Short array syntax must be used to define arrays
(#11) Variable "vendorDir" must be all lower-case
local/openlms/vendor/composer/autoload_real.php
(#1) Moodle boilerplate not found
(#3) Inline comments must start with a capital letter, digit or 3-dots sequence
(#3) Inline comments must end in full-stops, exclamation marks, or question marks
(#5) Missing @copyright tag
(#5) Missing @license tag
(#5) Missing docblock for class ComposerAutoloaderInitdbec4d4bc8617e7a2e6437a23894a057
(#7) Missing member variable doc comment
(#9) Missing docblock for function loadClassLoader
(#9) Public method name "ComposerAutoloaderInitdbec4d4bc8617e7a2e6437a23894a057::loadClassLoader" must be in lower-case letters only
(#10) Opening brace should be on the same line as the declaration
(#12) "require" must be immediately followed by an open parenthesis
(#19) No one-line description found in phpdocs for docblock of function getLoader
(#19) Public method name "ComposerAutoloaderInitdbec4d4bc8617e7a2e6437a23894a057::getLoader" must be in lower-case letters only
(#20) Opening brace should be on the same line as the declaration
(#25) "require" must be immediately followed by an open parenthesis
(#27) Short array syntax must be used to define arrays
(#29) Short array syntax must be used to define arrays
(#31) "require" must be immediately followed by an open parenthesis
local/openlms/vendor/composer/autoload_static.php
(#1) Moodle boilerplate not found
(#3) Inline comments must start with a capital letter, digit or 3-dots sequence
(#3) Inline comments must end in full-stops, exclamation marks, or question marks
(#7) Missing @copyright tag
(#7) Missing @license tag
(#7) Missing docblock for class ComposerStaticInitdbec4d4bc8617e7a2e6437a23894a057
(#9) Missing member variable doc comment
(#9) Member variable "prefixLengthsPsr4" must be all lower-case
(#9) Short array syntax must be used to define arrays
(#10) Whitespace found at end of line
(#11) Short array syntax must be used to define arrays
(#18) Missing member variable doc comment
(#18) Member variable "prefixDirsPsr4" must be all lower-case
(#18) Short array syntax must be used to define arrays
(#19) Whitespace found at end of line
(#20) Short array syntax must be used to define arrays
(#23) Whitespace found at end of line
(#24) Short array syntax must be used to define arrays
(#27) Whitespace found at end of line
(#28) Short array syntax must be used to define arrays
(#33) Missing member variable doc comment
(#33) Member variable "classMap" must be all lower-case
(#33) Short array syntax must be used to define arrays
(#37) Missing docblock for function getInitializer
(#37) Public method name "ComposerStaticInitdbec4d4bc8617e7a2e6437a23894a057::getInitializer" must be in lower-case letters only
(#38) Opening brace should be on the same line as the declaration
(#40) Variable "prefixLengthsPsr4" must be all lower-case
(#41) Variable "prefixDirsPsr4" must be all lower-case
(#42) Variable "classMap" must be all lower-case
(#44) Function closing brace must go on the next line following the body; found 1 blank lines before brace
local/openlms/vendor/composer/installed.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file installed.php
(#1) Moodle boilerplate not found
(#1) Opening PHP tag must be on a line by itself
(#1) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#1) Short array syntax must be used to define arrays
(#2) Short array syntax must be used to define arrays
(#9) Short array syntax must be used to define arrays
(#12) Short array syntax must be used to define arrays
(#13) Short array syntax must be used to define arrays
(#19) Short array syntax must be used to define arrays
(#22) Short array syntax must be used to define arrays
(#28) Short array syntax must be used to define arrays
(#31) Short array syntax must be used to define arrays
(#37) Short array syntax must be used to define arrays
(#40) Short array syntax must be used to define arrays
(#46) Short array syntax must be used to define arrays
local/openlms/vendor/composer/platform_check.php
(#1) Missing @copyright tag
(#1) Missing @license tag
(#1) Missing docblock for file platform_check.php
(#1) Moodle boilerplate not found
(#3) Inline comments must start with a capital letter, digit or 3-dots sequence
(#3) Inline comments must end in full-stops, exclamation marks, or question marks
(#5) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#5) Short array syntax must be used to define arrays
(#17) Expected at least 1 space before "."; 0 found
(#17) Expected at least 1 space after "."; 0 found
(#17) Expected at least 1 space before "."; 0 found
(#17) Expected at least 1 space after "."; 0 found
(#17) Line exceeds 132 characters; contains 137 characters
(#18) Usage of ELSEIF not allowed; use ELSE IF instead
(#19) Expected at least 1 space before "."; 0 found
(#19) Expected at least 1 space after "."; 0 found
(#19) Expected at least 1 space before "."; 0 found
(#19) Expected at least 1 space after "."; 0 found
(#19) Expected at least 1 space before "."; 0 found
(#19) Expected at least 1 space after "."; 0 found
(#19) Expected at least 1 space before "."; 0 found
(#19) Expected at least 1 space after "."; 0 found
(#19) Line exceeds 132 characters; contains 179 characters
(#24) Passing E_USER_ERROR to trigger_error() is deprecated since 8.4. Throw an exception or call exit with a string message instead.

Javascript coding style problems

(0 errors, 3 warnings)

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

local/openlms/amd/src/dialog_form.js
(#170) The function binding is unnecessary. (no-extra-bind)
(#173) The function binding is unnecessary. (no-extra-bind)
(#347) The function binding is unnecessary. (no-extra-bind)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(9 errors, 0 warnings)

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

local/openlms/classes/dialog_form_trait.php
(#54) Phpdocs for function dialog_form_trait::redirect_submitted has incomplete parameters list
local/openlms/classes/notification/manager.php
(#46) Phpdocs for function manager::get_candidate_types has incomplete parameters list
(#86) Inline phpdocs tag not enclosed with curly brackets @link found
local/openlms/tests/behat/behat_local_openlms.php
(#60) Phpdocs for function behat_local_openlms::execute_scheduled_task has incomplete parameters list
(#107) Phpdocs for function behat_local_openlms::skip_if_plugin_missing has incomplete parameters list
(#116) Phpdocs for function behat_local_openlms::skip_if_plugin_installed has incomplete parameters list
(#130) Phpdocs for function behat_local_openlms::list_term_contains_text has incomplete parameters list
(#195) Phpdocs for function behat_local_openlms::list_term_note_contains_text has incomplete parameters list
local/openlms/vendor/composer/ClassLoader.php
(#157) Phpdocs for function ClassLoader::addClassMap has incomplete parameters list

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

(1 errors, 9 warnings)

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

local/openlms/templates/dialog_form/button.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 3: Bad value “” for attribute “action” on element “form”: Must be non-empty. (<noscript><form method="get" action=""><butto)
local/openlms/templates/dialog_form/button_disabled.mustache
(#1) Example context missing (@template section not found.)
local/openlms/templates/dialog_form/button_legacy.mustache
(#1) Example context missing (@template section not found.)
(#1) HTML Validation error, line 3: Bad value “” for attribute “action” on element “form”: Must be non-empty. (d><body><form method="post" action=""><butt)
local/openlms/templates/dialog_form/icon.mustache
(#1) Example context missing (@template section not found.)
local/openlms/templates/dialog_form/icon_disabled.mustache
(#1) Example context missing (@template section not found.)
local/openlms/templates/dialog_form/link.mustache
(#1) Example context missing (@template section not found.)
local/openlms/templates/dialog_form/link_disabled.mustache
(#1) Example context missing (@template section not found.)
local/openlms/templates/extra_menu/dropdown.mustache
(#1) Mustache syntax exception: Example context JSON is unparsable, fails with: Syntax error

Gherkin .feature problems

(0 errors, 0 warnings)

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