Passed
Push — master ( c0a3a7...3b84a4 )
by Jeroen
58:51
created

views/default/groups/imprint/member_count.php (1 issue)

Checks if an incompatible expression is used in output or concatination.

Bug Minor
1
<?php
2
3
$entity = elgg_extract('entity', $vars);
4
if (!($entity instanceof \ElggGroup)) {
5
	return;
6
}
7
8
// number of members
9
$content = $entity->getMembers(['count' => true]) . ' ' . elgg_echo('groups:member');
0 ignored issues
show
Are you sure $entity->getMembers(array('count' => true)) of type array can be used in concatenation? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

9
$content = /** @scrutinizer ignore-type */ $entity->getMembers(['count' => true]) . ' ' . elgg_echo('groups:member');
Loading history...
10
11
echo elgg_view('object/elements/imprint/element', [
12
	'icon_name' => elgg_extract('icon_name', $vars, 'users'),
13
	'content' => $content,
14
	'class' => 'elgg-listing-group-members',
15
]);
16