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

(7 errors, 23 warnings)

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

availability/condition/enrolmentmethod/classes/condition.php
(#2) Moodle boilerplate not found at first line
(#47) Missing member variable doc comment
(#48) Whitespace found at end of line
(#72) Short array syntax must be used to define arrays
(#165) Short array syntax must be used to define arrays
(#214) Short array syntax must be used to define arrays
availability/condition/enrolmentmethod/classes/frontend.php
(#55) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $cm.
(#55) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $section.
(#62) Short array syntax must be used to define arrays
(#65) Short array syntax must be used to define arrays
(#66) Short array syntax must be used to define arrays
(#68) Short array syntax must be used to define arrays
(#70) Whitespace found at end of line
(#83) Whitespace found at end of line
(#94) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $cm.
(#94) Implicitly marking a parameter as nullable is deprecated since PHP 8.4. Update the type to be explicitly nullable instead. Found implicitly nullable parameter: $section.
availability/condition/enrolmentmethod/classes/privacy/provider.php
(#41) There must not be a space before the colon in a return type declaration
availability/condition/enrolmentmethod/lang/en/availability_enrolmentmethod.php
(#28) The string key "error_selectenrolmentmethod" is not in the correct order, it should be before "pluginname"
(#32) The string key "privacy:metadata" is not in the correct order, it should be before "title"
availability/condition/enrolmentmethod/tests/condition_test.php
(#43) Unit test condition_test should be declared as final.
(#47) The setUp() method in unit tests must always call to parent::setUp().
(#60) Test method test_usage() is missing a return type
(#95) Short array syntax must be used to define arrays
(#135) Test method test_constructor() is missing any coverage information, own or at class level
(#135) Test method test_constructor() is missing a return type
(#137) Short array syntax must be used to define arrays
(#154) Test method test_save() is missing any coverage information, own or at class level
(#154) Test method test_save() is missing a return type
(#155) Short array syntax must be used to define arrays
(#160) Short array syntax must be used to define arrays

Javascript coding style problems

(0 errors, 1 warnings)

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

availability/condition/enrolmentmethod/yui/src/form/js/form.js
(#6) Identifier 'availability_enrolmentmethod' is not in camel case. (camelcase)

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

(2 errors, 0 warnings)

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

availability/condition/enrolmentmethod/yui/build/moodle-availability_enrolmentmethod-form/moodle-availability_enrolmentmethod-form-min.js
Uncommitted change detected.
availability/condition/enrolmentmethod/yui/build/moodle-availability_enrolmentmethod-form/moodle-availability_enrolmentmethod-form.js
Uncommitted change detected.

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]