for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Tagcloud plugin
*/
* Tagcloud init
*
* @return void
function tagcloud_init() {
elgg_extend_view('theme_sandbox/components', 'tagcloud/theme_sandbox/component');
elgg_extend_view('elgg.css', 'elgg/tagcloud.css');
elgg_register_page_handler('tags', 'tagcloud_tags_page_handler');
elgg_register_page_handler()
If this is a false-positive, you can also ignore this issue in your code via the ignore-deprecated annotation
ignore-deprecated
/** @scrutinizer ignore-deprecated */ elgg_register_page_handler('tags', 'tagcloud_tags_page_handler');
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.
}
* Page hander for sitewide tag cloud
* @param array $page Page array
* @return bool
function tagcloud_tags_page_handler($page) {
$page
If this is a false-positive, you can also ignore this issue in your code via the ignore-unused annotation
ignore-unused
function tagcloud_tags_page_handler(/** @scrutinizer ignore-unused */ $page) {
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.
echo elgg_view_resource('tagcloud');
return true;
return function() {
elgg_register_event_handler('init', 'system', 'tagcloud_init');
};
This function has been deprecated. The supplier of the function has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the function will be removed and what other function to use instead.