Issues (1369)

server_info.php (2 issues)

1
<?php
2
3
$allow_anonymous = true;
4
include('common.' . substr(strrchr(__FILE__, '.'), 1));
5
6
lng_include('admin');
7
8
$template = SnTemplate::gettemplate('server_info', 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('server_info', /** @scrutinizer ignore-type */ true);
Loading history...
9
10
$template->assign_vars(array(
11
  'game_build_and_research' => SN::$config->BuildLabWhileRun,
12
  'USER_VACATION_DISABLE' => SN::$config->user_vacation_disable,
13
  'ALLOW_BUFFING' => SN::$config->allow_buffing,
14
  'ALLY_HELP_WEAK' => SN::$config->ally_help_weak,
15
  'FLEET_BASHING_ATTACKS' => SN::$config->fleet_bashing_attacks,
16
  'fleet_bashing_interval' => sys_time_human(SN::$config->fleet_bashing_interval),
17
  'fleet_bashing_scope' => sys_time_human(SN::$config->fleet_bashing_scope),
18
  'fleet_bashing_war_delay' => sys_time_human(SN::$config->fleet_bashing_war_delay),
19
  'EMPIRE_MERCENARY_TEMPORARY' => SN::$config->empire_mercenary_temporary,
20
  'ALI_BONUS_MEMBERS' => !empty(SN::$gc->modules->getModule('ali_ally_player')) ? SN::$config->ali_bonus_members : 0,
21
22
  'PLAYER_MAX_COLONIES' => SN::$config->player_max_colonies,
23
24
  'GAME_MULTIACCOUNT_ENABLED' => SN::$config->game_multiaccount_enabled,
0 ignored issues
show
Bug Best Practice introduced by
The property game_multiaccount_enabled does not exist on classConfig. Since you implemented __get, consider adding a @property annotation.
Loading history...
25
26
  'GAME_SPEED' => get_game_speed(),
27
  'GAME_SPEED_PLAIN' => get_game_speed(true),
28
  'FLEET_SPEED' => Universe::flt_server_flight_speed_multiplier(),
29
  'FLEET_SPEED_PLAIN' => Universe::flt_server_flight_speed_multiplier(true),
30
  'RESOURCE_MULTIPLIER' => game_resource_multiplier(),
31
  'RESOURCE_MULTIPLIER_PLAIN' => game_resource_multiplier(true),
32
33
  'DB_PATCH_VERSION' => dbPatchGetCurrent(),
34
));
35
36
SnTemplate::display($template);
37