Issues (1369)

Labels
Severity
1
<?php
2
/**
3
 * Created by Gorlum 18.02.2018 16:42
4
 */
5
6
include_once('common.' . substr(strrchr(__FILE__, '.'), 1));
7
8
$template = SnTemplate::gettemplate('rank_list', true);
0 ignored issues
show
true of type true is incompatible with the type null|template expected by parameter $template of SnTemplate::gettemplate(). ( Ignorable by Annotation )

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

8
$template = SnTemplate::gettemplate('rank_list', /** @scrutinizer ignore-type */ true);
Loading history...
9
10
for ($i = 0; $i <= 20; $i++) {
11
  $template->assign_block_vars('player_rank', [
12
    'ID' => $i,
13
    'NAME' => $lang['ranks'][$i],
14
    'SELECTED' => $i == SN::$gc->playerLevelHelper->getPointLevel($user['total_points'], $user['authlevel']),
15
  ]);
16
}
17
18
$template->assign_vars([
19
  'PAGE_HEADER' => $lang['rank_page_title'],
20
]);
21
22
SnTemplate::display($template, $lang['rank_page_title']);
23