@@ -332,7 +332,7 @@ |
||
332 | 332 | $time_left = min(floor($time_left / PERIOD_DAY), $term_original); |
333 | 333 | $cost_left = $term_original > 0 ? ceil($time_left / $term_original * $original_cost) : 0; |
334 | 334 | |
335 | - array_walk_recursive($result, function (&$value) use ($cost_left) { |
|
335 | + array_walk_recursive($result, function(&$value) use ($cost_left) { |
|
336 | 336 | $value -= $cost_left; |
337 | 337 | }); |
338 | 338 | } |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | $insert_position = $is_positioned == '-' ? 0 : count($menu); |
129 | 129 | } |
130 | 130 | |
131 | - $insert_position += $is_positioned == '+' ? 1 : 0; |
|
131 | + $insert_position += $is_positioned == '+' ? 1 : 0; |
|
132 | 132 | $spliced = array_splice($menu, $insert_position, count($menu) - $insert_position); |
133 | 133 | $menu[$menu_item_id] = $menu_item; |
134 | 134 | |
@@ -646,7 +646,7 @@ discard block |
||
646 | 646 | 'LANG' => $language ? $language : '', |
647 | 647 | 'referral' => $id_ref ? '&id_ref=' . $id_ref : '', |
648 | 648 | |
649 | - 'REQUEST_PARAMS' => !empty($url_params) ? '?' . implode('&', $url_params) : '',// "?lang={$language}" . ($id_ref ? "&id_ref={$id_ref}" : ''), |
|
649 | + 'REQUEST_PARAMS' => !empty($url_params) ? '?' . implode('&', $url_params) : '', // "?lang={$language}" . ($id_ref ? "&id_ref={$id_ref}" : ''), |
|
650 | 650 | 'FILENAME' => basename($_SERVER['PHP_SELF']), |
651 | 651 | )); |
652 | 652 | |
@@ -834,7 +834,7 @@ discard block |
||
834 | 834 | } |
835 | 835 | |
836 | 836 | $fleet_listx = flt_get_fleets_to_planet($CurPlanet); |
837 | - if($CurPlanet['planet_type'] == PT_MOON) { |
|
837 | + if ($CurPlanet['planet_type'] == PT_MOON) { |
|
838 | 838 | $parentPlanet = DBStaticPlanet::db_planet_by_id($CurPlanet['parent_planet']); |
839 | 839 | } else { |
840 | 840 | $parentPlanet = $CurPlanet; |
@@ -879,7 +879,7 @@ discard block |
||
879 | 879 | 'QUE_ID' => QUE_RESEARCH, |
880 | 880 | 'QUE_HTML' => 'topnav', |
881 | 881 | |
882 | - 'RESEARCH_ONGOING' => (boolean)$user['que'], |
|
882 | + 'RESEARCH_ONGOING' => (boolean) $user['que'], |
|
883 | 883 | |
884 | 884 | 'TIME_TEXT' => sprintf($str_date_format, $time_now_parsed['year'], $lang['months'][$time_now_parsed['mon']], $time_now_parsed['mday'], |
885 | 885 | $time_now_parsed['hours'], $time_now_parsed['minutes'], $time_now_parsed['seconds'] |
@@ -1169,7 +1169,7 @@ discard block |
||
1169 | 1169 | SnTemplate::renderFooter($page, $template_result); |
1170 | 1170 | } |
1171 | 1171 | |
1172 | - $user['authlevel'] >= 3 && $config->debug ? $debug->echo_log() : false;; |
|
1172 | + $user['authlevel'] >= 3 && $config->debug ? $debug->echo_log() : false; ; |
|
1173 | 1173 | |
1174 | 1174 | sn_db_disconnect(); |
1175 | 1175 |
@@ -262,7 +262,7 @@ |
||
262 | 262 | foreach ($planets as $planetId => $planet) { |
263 | 263 | $templatizedPlanet = tpl_parse_planet($user, $planet); |
264 | 264 | |
265 | - if($planet['planet_type'] == PT_MOON) { |
|
265 | + if ($planet['planet_type'] == PT_MOON) { |
|
266 | 266 | $parentPlanet = DBStaticPlanet::db_planet_by_id($planet['parent_planet']); |
267 | 267 | } else { |
268 | 268 | $parentPlanet = $planet; |