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

(10 errors, 12 warnings)

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

blocks/use_stats/block_use_stats.php
(#271) This comment is 42% valid code; is this commented out code?
(#608) Line exceeds 132 characters; contains 134 characters
blocks/use_stats/db/services.php
(#25) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
blocks/use_stats/externallib.php
(#230) Commas (,) must be followed by white space.
blocks/use_stats/lang/en/block_use_stats.php
(#74) Inline comments must start with a capital letter, digit or 3-dots sequence
blocks/use_stats/lang/fr/block_use_stats.php
(#35) Inline comments must start with a capital letter, digit or 3-dots sequence
(#102) Inline comments must start with a capital letter, digit or 3-dots sequence
blocks/use_stats/test/test_client.php
(#2) The opening <?php tag must be followed by exactly one newline.
(#3) Expected MOODLE_INTERNAL check or config.php inclusion. Change in global state detected.
(#5) Inline comments must start with a capital letter, digit or 3-dots sequence
(#20) Line exceeds 132 characters; contains 146 characters
(#43) Line exceeds 132 characters; contains 138 characters
(#75) The use of function print_r() is forbidden
(#89) The use of function print_r() is forbidden
(#94) Inline comments must end in full-stops, exclamation marks, or question marks
(#98) This comment is 67% valid code; is this commented out code?
(#98) Inline comments must start with a capital letter, digit or 3-dots sequence
(#104) Commas (,) must be followed by white space.
(#104) Commas (,) must be followed by white space.
(#105) Commas (,) must be followed by white space.
(#105) Commas (,) must be followed by white space.
(#107) This comment is 66% valid code; is this commented out code?

Javascript coding style problems

(10 errors, 4 warnings)

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

blocks/use_stats/js/usestats.js
(#8) Missing JSDoc comment. (require-jsdoc)
(#8) 'toggleusestatsto' is defined but never used (no-unused-vars)
(#9) 'fid' is not defined. (no-undef)
(#10) '$' is not defined. (no-undef)
(#10) 'fid' is not defined. (no-undef)
(#10) Closing curly brace should be on the same line as opening curly brace or on the line after the previous block. (brace-style)
(#10) Statement inside of curly braces should be on next line. (brace-style)
(#13) Missing JSDoc comment. (require-jsdoc)
(#13) 'initusestatsto' is defined but never used (no-unused-vars)
(#14) 'fid' is not defined. (no-undef)
(#16) '$' is not defined. (no-undef)
(#16) 'fid' is not defined. (no-undef)
(#18) '$' is not defined. (no-undef)
(#18) 'fid' is not defined. (no-undef)

CSS problems

(0 errors, 0 warnings)

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


PHPDocs style problems

(92 errors, 4 warnings)

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

blocks/use_stats/adminlib.php
(#19) Category blocks is not valid
(#17) No one-line description found in phpdocs for file
(#29) Class admin_setting_configdatetime does not have @copyright tag
blocks/use_stats/block_use_stats.php
(#21) Category blocks is not valid
(#38) Class block_use_stats is not documented
(#40) Function block_use_stats::init is not documented
(#236) Function block_use_stats::get_range is not documented
(#516) Function block_use_stats::prepare_coursetable is not documented
(#587) Function block_use_stats::_seeother is not documented
(#595) Function block_use_stats::get_required_javascript is not documented
blocks/use_stats/classes/event/block_use_stats_keepalive.php
(#21) Category blocks is not valid
(#43) Phpdocs for function block_use_stats_keepalive::create_from_cm has incomplete parameters list
(#118) Phpdocs for function block_use_stats_keepalive::set_legacy_logdata has incomplete parameters list
(#29) Class block_use_stats_keepalive does not have @copyright tag
(#29) Class block_use_stats_keepalive does not have @license tag
blocks/use_stats/classes/task/cache_ttl_task.php
(#17) No one-line description found in phpdocs for file
(#28) Class cache_ttl_task does not have @copyright tag
(#28) Class cache_ttl_task does not have @license tag
blocks/use_stats/classes/task/cleanup_task.php
(#17) No one-line description found in phpdocs for file
(#28) Class cleanup_task does not have @copyright tag
(#28) Class cleanup_task does not have @license tag
blocks/use_stats/classes/task/compile_task.php
(#19) Category blocks is not valid
(#17) No one-line description found in phpdocs for file
(#29) Class compile_task does not have @copyright tag
(#29) Class compile_task does not have @license tag
blocks/use_stats/db/access.php
(#19) Category blocks is not valid
(#17) No one-line description found in phpdocs for file
blocks/use_stats/db/caches.php
(#19) Category blocks is not valid
(#17) No one-line description found in phpdocs for file
blocks/use_stats/db/mnet.php
(#19) Category blocks is not valid
(#17) No one-line description found in phpdocs for file
blocks/use_stats/db/upgrade.php
(#19) Category blocks is not valid
(#17) No one-line description found in phpdocs for file
(#26) Phpdocs for function xmldb_block_use_stats_upgrade has incomplete parameters list
blocks/use_stats/detail.php
(#19) Category blocks is not valid
(#25) File-level phpdocs block is not found
blocks/use_stats/edit_form.php
(#20) Package blocks_use_stats is not valid
(#21) Category blocks is not valid
(#36) Function block_use_stats_edit_form::specific_definition is not documented
blocks/use_stats/externallib.php
(#19) Category blocks is not valid
(#30) Class block_use_stats_external is not documented
(#32) Function block_use_stats_external::get_user_stats_parameters is not documented
(#47) Function block_use_stats_external::get_user_stats is not documented
(#160) Function block_use_stats_external::get_user_stats_returns is not documented
(#211) Function block_use_stats_external::get_users_stats_parameters is not documented
(#230) Function block_use_stats_external::get_users_stats is not documented
(#253) Function block_use_stats_external::get_users_stats_returns is not documented
(#261) Function block_use_stats_external::validate_course_parameters is not documented
(#297) Function block_use_stats_external::validate_user_parameters is not documented
(#17) No one-line description found in phpdocs for file
(#17) File-level phpdocs block does not have @copyright tag
blocks/use_stats/lang/en/block_use_stats.php
(#18) File-level phpdocs block is not found
blocks/use_stats/lang/fr/block_use_stats.php
(#18) File-level phpdocs block is not found
blocks/use_stats/lib.php
(#19) Category blocks is not valid
(#87) Function block_use_stats_setup_theme_notification is not documented
(#17) No one-line description found in phpdocs for file
blocks/use_stats/locallib.php
(#20) Package blocks_use_stats is not valid
(#21) Category blocks is not valid
(#30) Function debug_trace is not documented
(#37) Function use_stats_get_reader is not documented
(#1153) Function block_use_stats_is_login_event is not documented
(#1157) Function block_use_stats_is_logout_event is not documented
(#222) Phpdocs for function use_stats_aggregate_logs has incomplete parameters list
(#808) Phpdocs for function use_stats_site_aggregate_time has incomplete parameters list
(#1037) Phpdocs for function block_use_stats_format_time has incomplete parameters list
(#1059) Phpdocs for function block_use_stats_render_aggregate has incomplete parameters list
blocks/use_stats/renderer.php
(#21) Category blocks is not valid
(#28) Class block_use_stats_renderer is not documented
(#30) Function block_use_stats_renderer::per_course is not documented
(#189) Function block_use_stats_renderer::calendar is not documented
(#91) There is no description in phpdocs for function change_params_form
(#208) There is no description in phpdocs for function button_pdf
(#95) Phpdocs for function block_use_stats_renderer::change_params_form has incomplete parameters list
(#209) Phpdocs for function block_use_stats_renderer::button_pdf has incomplete parameters list
(#92) Not recommended phpdocs tag @global used
(#92) Not recommended phpdocs tag @global used
(#92) Not recommended phpdocs tag @global used
blocks/use_stats/rpclib.php
(#21) Category blocks is not valid
(#311) Function use_stats_rpc_get_stats_wrapped is not documented
(#456) Function use_stats_rpc_get_scores_wrapped is not documented
(#115) Phpdocs for function use_stats_rpc_get_stats has incomplete parameters list
blocks/use_stats/settings.php
(#19) Category blocks is not valid
(#17) No one-line description found in phpdocs for file
blocks/use_stats/test/test_client.php
(#3) Package is not specified for class test_client. It is also not specified in file-level phpdocs
(#2) Empty line found after PHP open tag
(#3) File-level phpdocs block is not found
(#3) Class test_client is not documented
(#7) Function test_client::__construct is not documented
(#20) Function test_client::test_get_user_stats is not documented
(#43) Function test_client::test_get_users_stats is not documented
(#67) Function test_client::send is not documented
(#5) Variable test_client::$t is not documented
blocks/use_stats/version.php
(#21) Category blocks is not valid
blocks/use_stats/xlib.php
(#19) Category blocks is not valid
(#29) Function block_use_stats_get_coursetable is not documented
(#17) No one-line description found in phpdocs for file

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]

npm-shrinkwrap.json
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]