Prechecker results: error


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

(1 errors, 19 warnings)

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

question/format/giftmedia/classes/privacy/provider.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#46) File must end with a newline character
question/format/giftmedia/format.php
(#26) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#381) Curly brace syntax for accessing array elements and string offsets has been deprecated in PHP 7.4. Found: $answertext{0}
(#610) This comment is 42% valid code; is this commented out code?
question/format/giftmedia/tests/gifmediatformat_test.php
(#47) PHPUnit testcase name "qformat_giftmedia_test" does not match file name "gifmediatformat_test"
(#47) PHPUnit class "qformat_giftmedia_test" does not have any namespace. It is recommended to add it to the "qformat_giftmedia" namespace, using more levels if needed, in order to match the code being tested
(#53) Test method test_import_essay() is missing any coverage information, own or at class level
(#84) Test method test_import_match() is missing any coverage information, own or at class level
(#161) Test method test_import_multichoice() is missing any coverage information, own or at class level
(#240) Test method test_import_multichoice_multi() is missing any coverage information, own or at class level
(#328) Test method test_import_multichoice_multi_tricky() is missing any coverage information, own or at class level
(#407) Test method test_import_numerical() is missing any coverage information, own or at class level
(#452) Test method test_import_shortanswer() is missing any coverage information, own or at class level
(#504) Test method test_import_shortanswer_with_general_feedback() is missing any coverage information, own or at class level
(#560) Test method test_import_truefalse() is missing any coverage information, own or at class level
(#594) Test method test_import_truefalse_true_answer1() is missing any coverage information, own or at class level
(#629) Test method test_import_truefalse_true_answer2() is missing any coverage information, own or at class level
(#663) Test method test_import_backslash() is missing any coverage information, own or at class level
(#697) Test method test_import_pre_content() is missing any coverage information, own or at class level

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

(6 errors, 0 warnings)

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

question/format/giftmedia/format.php
(#250) Function qformat_giftmedia::readquestion is not documented
(#29) No one-line description found in phpdocs for class qformat_giftmedia
(#85) Phpdocs for function qformat_giftmedia::validate_file has incomplete parameters list
(#114) Phpdocs for function qformat_giftmedia::store_file_for_text_field has incomplete parameters list
question/format/giftmedia/tests/gifmediatformat_test.php
(#48) Function qformat_giftmedia_test::assert_same_gift is not documented
(#36) No one-line description found in phpdocs for class qformat_giftmedia_test

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]


Missing changes in external functions or backup support for new detected tables or columns

(0 errors, 0 warnings)

This section shows potential problems detected when there are new database structures added in a patch and it is detected that nothing has been changed related with external functions (to be used by WS) or backup and restore. It must be checked that everything is correct and nothing is being missed in those areas. [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]