Passed
Push — 5.x ( 39b1e8...2ac3d7 )
by Jeroen
15:45 queued 13s
created

groups/views/default/resources/groups/invite.php (1 issue)

Labels
Severity
1
<?php
2
3
$group = elgg_get_page_owner_entity();
4
5
elgg_push_entity_breadcrumbs($group);
1 ignored issue
show
It seems like $group can also be of type null; however, parameter $entity of elgg_push_entity_breadcrumbs() does only seem to accept ElggEntity, maybe add an additional type check? ( Ignorable by Annotation )

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

5
elgg_push_entity_breadcrumbs(/** @scrutinizer ignore-type */ $group);
Loading history...
6
7
$content = elgg_view_form('groups/invite', [
8
	'id' => 'invite_to_group',
9
	'class' => 'elgg-form-alt mtm',
10
], [
11
	'entity' => $group,
12
]);
13
14
echo elgg_view_page(elgg_echo('groups:invite:title'), [
15
	'content' => $content,
16
	'filter_id' => 'groups/invite',
17
	'filter_value' => 'invite',
18
]);
19