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

(30 errors, 19 warnings)

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

blocks/groups/block_groups.php
(#40) Opening brace should be on the same line as the declaration for class block_groups
(#94) global $PAGE cannot be used in block classes. Use $this->page.
(#101) This comment is 50% valid code; is this commented out code?
(#102) global $PAGE cannot be used in block classes. Use $this->page.
(#104) global $PAGE cannot be used in block classes. Use $this->page.
(#143) global $PAGE cannot be used in block classes. Use $this->page.
(#148) This comment is 50% valid code; is this commented out code?
(#149) global $PAGE cannot be used in block classes. Use $this->page.
(#176) global $PAGE cannot be used in block classes. Use $this->page.
(#177) This comment is 50% valid code; is this commented out code?
(#178) global $PAGE cannot be used in block classes. Use $this->page.
(#190) File must end with a newline character
blocks/groups/changeallgroups.php
(#88) File must end with a newline character
blocks/groups/classes/privacy/provider.php
(#27) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#44) Method name "_get_reason" should not be prefixed with an underscore to indicate visibility
blocks/groups/db/access.php
(#37) File must end with a newline character
blocks/groups/db/services.php
(#44) File must end with a newline character
blocks/groups/db/upgrade.php
(#23) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#32) File must end with a newline character
blocks/groups/externallib.php
(#34) Expected 1 space before opening brace; found 0
(#74) global $PAGE cannot be used in block classes. Use $this->page.
(#76) global $PAGE cannot be used in block classes. Use $this->page.
(#80) global $PAGE cannot be used in block classes. Use $this->page.
(#106) Expected 1 space before opening brace; found 0
(#150) global $PAGE cannot be used in block classes. Use $this->page.
(#155) global $PAGE cannot be used in block classes. Use $this->page.
(#171) global $PAGE cannot be used in block classes. Use $this->page.
blocks/groups/locallib.php
(#23) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
blocks/groups/renderer.php
(#24) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#73) global $OUTPUT cannot be used in renderers. Use $this->output.
(#84) global $OUTPUT cannot be used in renderers. Use $this->output.
(#147) global $OUTPUT cannot be used in renderers. Use $this->output.
(#158) global $OUTPUT cannot be used in renderers. Use $this->output.
(#163) File must end with a newline character
blocks/groups/tests/behat/behat_block_groups.php
(#95) File must end with a newline character
blocks/groups/tests/block_groups_test.php
(#24) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#34) PHPUnit testcase name "block_groups_testcase" does not match file name "block_groups_test"
(#34) PHPUnit class "block_groups_testcase" does not have any namespace. It is recommended to add it to the "block_groups" namespace, using more levels if needed, in order to match the code being tested
(#51) Test method test_locallib() is missing any coverage information, own or at class level
(#79) Test method test_deleting() is missing any coverage information, own or at class level
(#90) Test method test_user_table_was_reset() is missing any coverage information, own or at class level
(#95) File must end with a newline character
blocks/groups/tests/generator/lib.php
(#25) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#80) File must end with a newline character
blocks/groups/tests/generator_test.php
(#24) Unexpected MOODLE_INTERNAL check. No side effects or multiple artifacts detected.
(#35) PHPUnit testcase name "block_groups_generator_testcase" does not match file name "generator_test"
(#35) PHPUnit class "block_groups_generator_testcase" does not have any namespace. It is recommended to add it to the "block_groups" namespace, using more levels if needed, in order to match the code being tested
(#36) Test method test_generator() is missing any coverage information, own or at class level
(#50) File must end with a newline character

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

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


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]