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

(7 errors, 21 warnings)

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

enrol/sslcommerz/cancel.php
(#26) Inline comments must start with a capital letter, digit or 3-dots sequence
(#26) Inline comments must end in full-stops, exclamation marks, or question marks
(#26) This comment is 73% valid code; is this commented out code?
(#26) No space found before comment text; expected "// defined('MOODLE_INTERNAL') || die();" but found "//defined('MOODLE_INTERNAL') || die();"
(#27) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#29) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#71) This comment is 58% valid code; is this commented out code?
(#81) This comment is 70% valid code; is this commented out code?
enrol/sslcommerz/checkout.php
(#98) Inline comments must end in full-stops, exclamation marks, or question marks
(#100) This comment is 70% valid code; is this commented out code?
enrol/sslcommerz/classes/util.php
(#82) The use of function error_log() is forbidden; use debugging() instead
enrol/sslcommerz/cli/sync.php
(#71) Inline doc block comments are not allowed; use "// Comment." instead
enrol/sslcommerz/fail.php
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#27) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#68) This comment is 67% valid code; is this commented out code?
(#79) This comment is 70% valid code; is this commented out code?
enrol/sslcommerz/ipn.php
(#100) Line exceeds 132 characters; contains 166 characters
enrol/sslcommerz/return.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#28) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
(#75) Inline comments must end in full-stops, exclamation marks, or question marks
(#146) This comment is 63% valid code; is this commented out code?
enrol/sslcommerz/success.php
(#26) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#30) Expected login check (require_login, require_course_login, require_admin, admin_externalpage_setup) following config inclusion. None found.
enrol/sslcommerz/tests/privacy_provider_test.php
(#40) PHPUnit testcase name "enrol_sslcommerz_privacy_provider_testcase" does not match file name "privacy_provider_test"
(#40) PHUnit class "enrol_sslcommerz_privacy_provider_testcase" does not have any namespace. It is recommended to add it to the "enrol_sslcommerz" namespace, using more levels if needed, in order to match the code being tested
enrol/sslcommerz/tests/sslcommerz_test.php
(#35) PHPUnit testcase name "enrol_sslcommerz_testcase" does not match file name "sslcommerz_test"
(#35) PHUnit class "enrol_sslcommerz_testcase" does not have any namespace. It is recommended to add it to the "enrol_sslcommerz" namespace, using more levels if needed, in order to match the code being tested
(#220) Inline comments must start with a capital letter, digit or 3-dots sequence

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

(4 errors, 0 warnings)

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

enrol/sslcommerz/lib.php
(#78) Phpdocs for function enrol_sslcommerz_plugin::allow_unenrol has incomplete parameters list
(#88) Phpdocs for function enrol_sslcommerz_plugin::allow_manage has incomplete parameters list
(#100) Phpdocs for function enrol_sslcommerz_plugin::show_enrolme_link has incomplete parameters list
(#270) Phpdocs for function enrol_sslcommerz_plugin::restore_user_enrolment 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]


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]