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

(67 errors, 54 warnings)

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

availability/condition/facetoface/classes/condition.php
(#86) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#86) Only one argument is allowed per line in a multi-line function call
(#86) Only one argument is allowed per line in a multi-line function call
(#86) Only one argument is allowed per line in a multi-line function call
(#86) Only one argument is allowed per line in a multi-line function call
(#86) Closing parenthesis of a multi-line function call must be on a line by itself
(#86) Line exceeds 132 characters; contains 134 characters
(#107) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#107) Multi-line function declarations must define one parameter per line
(#108) Multi-line function declaration not indented correctly; expected 8 spaces but found 49
(#108) Multi-line function declarations must define one parameter per line
(#108) Multi-line function declarations must define one parameter per line
(#108) The closing parenthesis of a multi-line function declaration must be on a new line
(#120) There should be a comma after the last array item in a multi-line array.
(#209) Line exceeds 132 characters; contains 135 characters
(#215) Blank line found at end of control structure
(#232) Missing docblock for function get_debug_string
(#247) The first parameter of a multi-line function declaration must be on the line after the opening bracket
(#247) Multi-line function declarations must define one parameter per line
(#247) Multi-line function declarations must define one parameter per line
(#248) Multi-line function declaration not indented correctly; expected 8 spaces but found 42
(#248) Multi-line function declarations must define one parameter per line
(#248) The closing parenthesis of a multi-line function declaration must be on a new line
(#252) Missing docblock for function update_after_restore
(#269) Opening parenthesis of a multi-line function call must be the last content on the line
(#271) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#271) Closing parenthesis of a multi-line function call must be on a line by itself
(#289) Opening parenthesis of a multi-line function call must be the last content on the line
(#291) Multi-line function call not indented correctly; expected 16 spaces but found 20
(#291) Closing parenthesis of a multi-line function call must be on a line by itself
(#300) Missing docblock for function update_dependency_id
(#308) Blank line found at end of control structure
(#316) Blank line found at end of control structure
(#322) Missing docblock for function is_applied_to_user_lists
availability/condition/facetoface/classes/frontend.php
(#104) 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.
(#104) 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.
(#122) 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.
(#122) 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/facetoface/classes/privacy/provider.php
(#27) Opening brace must not be followed by a blank line
(#35) There must not be a space before the colon in a return type declaration
availability/condition/facetoface/db/upgrade.php
(#1) No one-line description found in phpdocs for docblock of file upgrade.php
(#24) Missing docblock for function xmldb_availability_facetoface_upgrade
(#27) Blank line found at start of control structure
(#31) Expected at least 1 space before "."; 0 found
(#31) Expected at least 1 space after "."; 0 found
availability/condition/facetoface/lang/ar/availability_facetoface.php
(#30) The string key "error_invalidconfiguration" is not in the correct order, it should be before "error_selectfacetoface"
(#39) The string key "requires_effectivefromstart" is not in the correct order, it should be before "requires_session"
availability/condition/facetoface/lang/ca/availability_facetoface.php
(#30) The string key "error_invalidconfiguration" is not in the correct order, it should be before "error_selectfacetoface"
(#39) The string key "requires_effectivefromstart" is not in the correct order, it should be before "requires_session"
availability/condition/facetoface/lang/cs/availability_facetoface.php
(#30) The string key "error_invalidconfiguration" is not in the correct order, it should be before "error_selectfacetoface"
(#39) The string key "requires_effectivefromstart" is not in the correct order, it should be before "requires_session"
availability/condition/facetoface/lang/da/availability_facetoface.php
(#30) The string key "error_invalidconfiguration" is not in the correct order, it should be before "error_selectfacetoface"
(#39) The string key "requires_effectivefromstart" is not in the correct order, it should be before "requires_session"
availability/condition/facetoface/lang/de/availability_facetoface.php
(#30) The string key "error_invalidconfiguration" is not in the correct order, it should be before "error_selectfacetoface"
(#39) The string key "requires_effectivefromstart" is not in the correct order, it should be before "requires_session"
availability/condition/facetoface/lang/en/availability_facetoface.php
(#30) The string key "error_invalidconfiguration" is not in the correct order, it should be before "error_selectfacetoface"
(#39) The string key "requires_effectivefromstart" is not in the correct order, it should be before "requires_session"
availability/condition/facetoface/lang/es/availability_facetoface.php
(#30) The string key "error_invalidconfiguration" is not in the correct order, it should be before "error_selectfacetoface"
(#39) The string key "requires_effectivefromstart" is not in the correct order, it should be before "requires_session"
availability/condition/facetoface/lang/fi/availability_facetoface.php
(#30) The string key "error_invalidconfiguration" is not in the correct order, it should be before "error_selectfacetoface"
(#39) The string key "requires_effectivefromstart" is not in the correct order, it should be before "requires_session"
availability/condition/facetoface/lang/fr/availability_facetoface.php
(#30) The string key "error_invalidconfiguration" is not in the correct order, it should be before "error_selectfacetoface"
(#39) The string key "requires_effectivefromstart" is not in the correct order, it should be before "requires_session"
availability/condition/facetoface/lang/it/availability_facetoface.php
(#30) The string key "error_invalidconfiguration" is not in the correct order, it should be before "error_selectfacetoface"
(#39) The string key "requires_effectivefromstart" is not in the correct order, it should be before "requires_session"
availability/condition/facetoface/lang/ja/availability_facetoface.php
(#30) The string key "error_invalidconfiguration" is not in the correct order, it should be before "error_selectfacetoface"
(#39) The string key "requires_effectivefromstart" is not in the correct order, it should be before "requires_session"
availability/condition/facetoface/lang/nl/availability_facetoface.php
(#30) The string key "error_invalidconfiguration" is not in the correct order, it should be before "error_selectfacetoface"
(#39) The string key "requires_effectivefromstart" is not in the correct order, it should be before "requires_session"
availability/condition/facetoface/lang/pl/availability_facetoface.php
(#30) The string key "error_invalidconfiguration" is not in the correct order, it should be before "error_selectfacetoface"
(#39) The string key "requires_effectivefromstart" is not in the correct order, it should be before "requires_session"
availability/condition/facetoface/lang/pt_br/availability_facetoface.php
(#30) The string key "error_invalidconfiguration" is not in the correct order, it should be before "error_selectfacetoface"
(#39) The string key "requires_effectivefromstart" is not in the correct order, it should be before "requires_session"
availability/condition/facetoface/lang/th/availability_facetoface.php
(#30) The string key "error_invalidconfiguration" is not in the correct order, it should be before "error_selectfacetoface"
(#39) The string key "requires_effectivefromstart" is not in the correct order, it should be before "requires_session"
availability/condition/facetoface/lang/tr/availability_facetoface.php
(#30) The string key "error_invalidconfiguration" is not in the correct order, it should be before "error_selectfacetoface"
(#39) The string key "requires_effectivefromstart" is not in the correct order, it should be before "requires_session"
availability/condition/facetoface/lang/zh_tw/availability_facetoface.php
(#30) The string key "error_invalidconfiguration" is not in the correct order, it should be before "error_selectfacetoface"
(#39) The string key "requires_effectivefromstart" is not in the correct order, it should be before "requires_session"
availability/condition/facetoface/tests/condition_test.php
(#19) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#32) Unit test condition_test should be declared as final.
(#32) Opening brace must not be followed by a blank line
(#37) Public method name "condition_test::setupBeforeClass" must be in lower-case letters only
(#53) No one-line description found in phpdocs for docblock of function test_evaluate_availability
(#168) No space found after comma in argument list
(#168) Commas (,) must be followed by white space.
(#168) Expected 1 space between the comma and "$user4". Found: no spaces
(#202) Test method test_upgrade_waitlistedusers() is missing any coverage information, own or at class level
(#203) Inline doc block type-hinting for '$generator' does not match next code line 'global...'
(#219) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#219) Closing parenthesis of a multi-line function call must be on a line by itself
(#220) Opening parenthesis of a multi-line function call must be the last content on the line
(#220) Only one argument is allowed per line in a multi-line function call
(#223) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#223) Closing parenthesis of a multi-line function call must be on a line by itself
(#225) Whitespace found at end of line within string
(#227) Expected at least 1 space before "."; 0 found
(#227) Expected at least 1 space after "."; 0 found
(#240) Opening parenthesis of a multi-line function call must be the last content on the line
(#240) Line exceeds 132 characters; contains 137 characters
(#241) Multi-line function call not indented correctly; expected 8 spaces but found 12
(#241) Closing parenthesis of a multi-line function call must be on a line by itself
(#248) No one-line description found in phpdocs for docblock of function test_save
(#301) There should be a comma after the last array item in a multi-line array.
(#312) There should be a comma after the last array item in a multi-line array.
(#317) The closing brace for the class must go on the next line after the body
availability/condition/facetoface/tests/frontend_test.php
(#29) Unit test frontend_test should be declared as final.
(#38) No one-line description found in phpdocs for docblock of function test_get_facetoface_options
(#122) No one-line description found in phpdocs for docblock of function test_get_javascript_strings
(#124) Missing docblock for function get_javascript_strings in testcase
(#124) Possible useless method overriding detected
(#139) No one-line description found in phpdocs for docblock of function test_get_javascript_init_params
(#144) Missing docblock for function get_javascript_init_params in testcase
(#144) Possible useless method overriding detected
(#144) 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.
(#144) 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.
(#165) No one-line description found in phpdocs for docblock of function test_allow_add
(#183) Missing docblock for function allow_add in testcase
(#183) Possible useless method overriding detected
(#183) 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.
(#183) 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.

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/facetoface/yui/src/form/js/form.js
(#6) Identifier 'availability_facetoface' is not in camel case. (camelcase)
(#14) Comments should not begin with a lowercase character. (capitalized-comments)

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/facetoface/classes/condition.php
(#172) Phpdocs for function condition::get_description 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

(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]