@@ -1,8 +1,7 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | |
3 | 3 | // Compare function to sort fleet in time order |
4 | -function tpl_assign_fleet_compare($a, $b) |
|
5 | -{ |
|
4 | +function tpl_assign_fleet_compare($a, $b) { |
|
6 | 5 | if($a['fleet']['OV_THIS_PLANET'] == $b['fleet']['OV_THIS_PLANET']) |
7 | 6 | { |
8 | 7 | if($a['fleet']['OV_LEFT'] == $b['fleet']['OV_LEFT']) |
@@ -10,8 +9,7 @@ discard block |
||
10 | 9 | return 0; |
11 | 10 | } |
12 | 11 | return ($a['fleet']['OV_LEFT'] < $b['fleet']['OV_LEFT']) ? -1 : 1; |
13 | - } |
|
14 | - else |
|
12 | + } else |
|
15 | 13 | { |
16 | 14 | return $a['fleet']['OV_THIS_PLANET'] ? -1 : 1; |
17 | 15 | } |
@@ -207,8 +205,7 @@ discard block |
||
207 | 205 | return $result; |
208 | 206 | } |
209 | 207 | |
210 | -function tpl_parse_planet_que($que, $planet, $que_id) |
|
211 | -{ |
|
208 | +function tpl_parse_planet_que($que, $planet, $que_id) { |
|
212 | 209 | $hangar_que = array(); |
213 | 210 | $que_hangar = $que['ques'][$que_id][$planet['id_owner']][$planet['id']]; |
214 | 211 | if(!empty($que_hangar)) |
@@ -270,8 +267,7 @@ discard block |
||
270 | 267 | * |
271 | 268 | * @return array |
272 | 269 | */ |
273 | -function tpl_parse_planet($planet) |
|
274 | -{ |
|
270 | +function tpl_parse_planet($planet) { |
|
275 | 271 | global $lang; |
276 | 272 | |
277 | 273 | $que = que_get($planet['id_owner'], $planet['id'], false); |
@@ -330,8 +326,7 @@ discard block |
||
330 | 326 | return $result; |
331 | 327 | } |
332 | 328 | |
333 | -function flt_get_fleets_to_planet($planet, $fleet_db_list = 0) |
|
334 | -{ |
|
329 | +function flt_get_fleets_to_planet($planet, $fleet_db_list = 0) { |
|
335 | 330 | if(!($planet && $planet['id']) && !$fleet_db_list) |
336 | 331 | { |
337 | 332 | return $planet; |
@@ -353,8 +348,7 @@ discard block |
||
353 | 348 | continue; |
354 | 349 | } |
355 | 350 | $fleet_ownage = 'own'; |
356 | - } |
|
357 | - else |
|
351 | + } else |
|
358 | 352 | { |
359 | 353 | switch($fleet['fleet_mission']) |
360 | 354 | { |
@@ -402,8 +396,7 @@ discard block |
||
402 | 396 | * @param array $planetrow |
403 | 397 | * @param array $fleets_to_planet |
404 | 398 | */ |
405 | -function tpl_set_resource_info(&$template, $planetrow, $fleets_to_planet = array()) |
|
406 | -{ |
|
399 | +function tpl_set_resource_info(&$template, $planetrow, $fleets_to_planet = array()) { |
|
407 | 400 | $template->assign_vars(array( |
408 | 401 | 'RESOURCE_ROUNDING' => 0, |
409 | 402 |