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

views/default/resources/user/view.php (1 issue)

1
<?php
2
3
$user_guid = elgg_extract('guid', $vars);
4
elgg_entity_gatekeeper($user_guid, 'user');
5
$user = get_user($user_guid);
6
7
$title = $user->getDisplayName();
8
9
$params = [
10
	'content' => elgg_view_entity($user),
0 ignored issues
show
$user of type false is incompatible with the type ElggEntity expected by parameter $entity of elgg_view_entity(). ( Ignorable by Annotation )

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

10
	'content' => elgg_view_entity(/** @scrutinizer ignore-type */ $user),
Loading history...
11
	'title' => $title,
12
	'sidebar' => false,
13
];
14
$body = elgg_view_layout('default', $params);
15
16
echo elgg_view_page($title, $body);
17