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

(8 errors, 33 warnings)

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

availability/condition/mobileapp/classes/condition.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#63) Missing docblock for function save
(#64) Short array syntax must be used to define arrays
(#77) Short array syntax must be used to define arrays
(#80) Missing docblock for function get_debug_string
(#114) Missing docblock for function is_available
(#134) Missing docblock for function get_description
availability/condition/mobileapp/classes/frontend.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#38) Missing docblock for function get_javascript_strings
(#39) Short array syntax must be used to define arrays
(#42) Missing docblock for function allow_add
(#42) 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.
(#42) 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.
(#51) Short array syntax must be used to define arrays
(#53) Short array syntax must be used to define arrays
(#55) Logical operator "and" is prohibited; use "&&" instead
availability/condition/mobileapp/classes/privacy/provider.php
(#28) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#45) Method name "_get_reason" should not be prefixed with an underscore to indicate visibility
availability/condition/mobileapp/lang/en/availability_mobileapp.php
(#27) The string key "label_access" is not in the correct order, it should be before "pluginname"
availability/condition/mobileapp/tests/condition_test.php
(#38) Testcase availability_mobileapp_condition_testcase should be declared as abstract.
(#38) PHPUnit testcase name "availability_mobileapp_condition_testcase" does not match file name "condition_test"
(#38) PHPUnit class "availability_mobileapp_condition_testcase" does not have any namespace. It is recommended to add it to the "availability_mobileapp" namespace, using more levels if needed, in order to match the code being tested
(#42) The setUp() method in unit tests must always call to parent::setUp().
(#51) Test method test_in_tree() is missing any coverage information, own or at class level
(#51) Test method test_in_tree() is missing a return type
(#59) Short array syntax must be used to define arrays
(#65) 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
(#75) Short array syntax must be used to define arrays
(#75) Short array syntax must be used to define arrays
(#76) Short array syntax must be used to define arrays
(#90) Test method test_constructor() is missing any coverage information, own or at class level
(#90) Test method test_constructor() is missing a return type
(#115) Test method test_save() is missing any coverage information, own or at class level
(#115) Test method test_save() is missing a return type
(#116) Short array syntax must be used to define arrays
(#125) Test method test_usage() is missing any coverage information, own or at class level
(#125) Test method test_usage() is missing a return type
(#133) Short array syntax must be used to define arrays
(#136) Short array syntax must be used to define arrays

Javascript coding style problems

(0 errors, 2 warnings)

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

availability/condition/mobileapp/yui/src/form/js/form.js
(#6) Identifier 'availability_mobileapp' is not in camel case. (camelcase)
(#16) 'M.str' is restricted from being used. Use "core/str" module or M.util.get_string() (no-restricted-properties)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(1 errors, 0 warnings)

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

availability/condition/mobileapp/classes/privacy/provider.php
(#18) Inline phpdocs tag {@link \availability_mobileapp\privacy\provider} with incorrect contents found. It must match {@link [valid URL] [description (optional)]} or {@see [valid FQSEN] [description (optional)]}

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, 0 warnings)

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

availability/condition/mobileapp/yui/build/moodle-availability_mobileapp-form/moodle-availability_mobileapp-form-min.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]