@@ -7,7 +7,7 @@ discard block |
||
| 7 | 7 | /** |
| 8 | 8 | * @param UBE $ube |
| 9 | 9 | * |
| 10 | - * @return bool|string |
|
| 10 | + * @return false|string |
|
| 11 | 11 | * |
| 12 | 12 | * @version 2016-02-25 23:42:45 41a4.68 |
| 13 | 13 | */ |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | // ------------------------------------------------------------------------------------------------ |
| 187 | 187 | // Читает боевой отчет из БД |
| 188 | 188 | /** |
| 189 | - * @param $report_cypher |
|
| 189 | + * @param string $report_cypher |
|
| 190 | 190 | * |
| 191 | 191 | * @return string|UBE |
| 192 | 192 | */ |
@@ -69,8 +69,8 @@ |
||
| 69 | 69 | |
| 70 | 70 | /** |
| 71 | 71 | * @param Fleet $objFleet |
| 72 | - * @param $ov_label |
|
| 73 | - * @param $planet_end_type |
|
| 72 | + * @param integer $ov_label |
|
| 73 | + * @param integer $planet_end_type |
|
| 74 | 74 | * |
| 75 | 75 | * @return mixed |
| 76 | 76 | */ |
@@ -185,6 +185,9 @@ |
||
| 185 | 185 | return $result; |
| 186 | 186 | } |
| 187 | 187 | |
| 188 | +/** |
|
| 189 | + * @param integer $que_id |
|
| 190 | + */ |
|
| 188 | 191 | function tpl_parse_planet_que($que, $planet, $que_id) { |
| 189 | 192 | $hangar_que = array(); |
| 190 | 193 | $que_hangar = $que['ques'][$que_id][$planet['id_owner']][$planet['id']]; |
@@ -1,5 +1,8 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | |
| 3 | +/** |
|
| 4 | + * @param string $type |
|
| 5 | + */ |
|
| 3 | 6 | function sn_ube_simulator_encode_replay($combat, $type) |
| 4 | 7 | { |
| 5 | 8 | $strPacked = "{$type}!"; |
@@ -10,9 +10,8 @@ |
||
| 10 | 10 | |
| 11 | 11 | /** |
| 12 | 12 | * @param Mission $objMission |
| 13 | - * @param array $mission_data |
|
| 14 | 13 | * |
| 15 | - * @return array|null |
|
| 14 | + * @return null|boolean |
|
| 16 | 15 | */ |
| 17 | 16 | function flt_mission_attack($objMission) { |
| 18 | 17 | $objFleet = $objMission->fleet; |
@@ -31,7 +31,7 @@ |
||
| 31 | 31 | /** |
| 32 | 32 | * Fleet mission "Relocate" |
| 33 | 33 | * |
| 34 | - * @param $mission_data Mission |
|
| 34 | + * @param Mission $mission_data Mission |
|
| 35 | 35 | * |
| 36 | 36 | * @return int |
| 37 | 37 | * |
@@ -34,7 +34,7 @@ discard block |
||
| 34 | 34 | * @param string $title |
| 35 | 35 | * @param string $dest |
| 36 | 36 | * @param int $time |
| 37 | - * @param bool|true $show_header |
|
| 37 | + * @param boolean $show_header |
|
| 38 | 38 | */ |
| 39 | 39 | function message($mes, $title = 'Error', $dest = '', $time = 5, $show_header = true) { |
| 40 | 40 | $template = gettemplate('message_body', true); |
@@ -195,7 +195,7 @@ discard block |
||
| 195 | 195 | * @param bool|true $isDisplayTopNav |
| 196 | 196 | * @param string $metatags |
| 197 | 197 | * @param bool|false $AdminPage |
| 198 | - * @param bool|true $isDisplayMenu |
|
| 198 | + * @param boolean $isDisplayMenu |
|
| 199 | 199 | * |
| 200 | 200 | * @return mixed |
| 201 | 201 | */ |
@@ -208,7 +208,6 @@ discard block |
||
| 208 | 208 | * @param string $title |
| 209 | 209 | * @param bool|true $isDisplayTopNav |
| 210 | 210 | * @param string $metatags |
| 211 | - * @param bool|false $AdminPage |
|
| 212 | 211 | * @param bool|true $isDisplayMenu |
| 213 | 212 | * @param bool|int|string $exitStatus - Код или сообщение выхода |
| 214 | 213 | */ |
@@ -385,10 +384,10 @@ discard block |
||
| 385 | 384 | |
| 386 | 385 | /** |
| 387 | 386 | * @param $time |
| 388 | - * @param $event |
|
| 387 | + * @param integer $event |
|
| 389 | 388 | * @param $msg |
| 390 | 389 | * @param $coordinates |
| 391 | - * @param $is_decrease |
|
| 390 | + * @param boolean $is_decrease |
|
| 392 | 391 | * @param Fleet $objFleet |
| 393 | 392 | * @param $fleet_flying_sorter |
| 394 | 393 | * @param $fleet_flying_events |
@@ -708,7 +707,7 @@ discard block |
||
| 708 | 707 | } |
| 709 | 708 | |
| 710 | 709 | /** |
| 711 | - * @param array|string $files |
|
| 710 | + * @param string $files |
|
| 712 | 711 | * @param template|bool $template |
| 713 | 712 | * @param string|bool $template_path |
| 714 | 713 | * |
@@ -411,7 +411,7 @@ |
||
| 411 | 411 | /** |
| 412 | 412 | * @param array $field_set |
| 413 | 413 | * |
| 414 | - * @return int|string |
|
| 414 | + * @return integer |
|
| 415 | 415 | */ |
| 416 | 416 | protected function db_field_set_create(array $field_set) { |
| 417 | 417 | !sn_db_field_set_is_safe($field_set) ? $field_set = sn_db_field_set_make_safe($field_set) : false; |
@@ -150,7 +150,7 @@ discard block |
||
| 150 | 150 | } |
| 151 | 151 | |
| 152 | 152 | /** |
| 153 | - * @param $ube_report_id |
|
| 153 | + * @param integer $ube_report_id |
|
| 154 | 154 | * |
| 155 | 155 | * @return array |
| 156 | 156 | * |
@@ -288,7 +288,7 @@ discard block |
||
| 288 | 288 | |
| 289 | 289 | |
| 290 | 290 | /** |
| 291 | - * @param $ube_report_id |
|
| 291 | + * @param integer $ube_report_id |
|
| 292 | 292 | * |
| 293 | 293 | * @return array |
| 294 | 294 | */ |
@@ -336,7 +336,7 @@ discard block |
||
| 336 | 336 | // Рендерит таблицу общего результата боя |
| 337 | 337 | /** |
| 338 | 338 | * @param $array |
| 339 | - * @param $lang_header_index |
|
| 339 | + * @param string $lang_header_index |
|
| 340 | 340 | * |
| 341 | 341 | * @return array |
| 342 | 342 | */ |
@@ -362,6 +362,9 @@ discard block |
||
| 362 | 362 | } |
| 363 | 363 | |
| 364 | 364 | |
| 365 | + /** |
|
| 366 | + * @param integer $ube_report_id |
|
| 367 | + */ |
|
| 365 | 368 | public function sql_generate_outcome_unit_array(&$sql_perform_report_unit, $ube_report_id) { |
| 366 | 369 | $fleet_id = $this->db_id; |
| 367 | 370 | |
@@ -468,6 +471,10 @@ discard block |
||
| 468 | 471 | $this->fleet_capacity -= $fleet_total_resources; |
| 469 | 472 | } |
| 470 | 473 | |
| 474 | + /** |
|
| 475 | + * @param integer $is_small_fleet_recce |
|
| 476 | + * @param integer $reapers_status |
|
| 477 | + */ |
|
| 471 | 478 | public function db_save_combat_result_fleet($is_small_fleet_recce, $reapers_status) { |
| 472 | 479 | $ship_count_initial = $this->unit_list->unitsCount(); |
| 473 | 480 | $ship_count_lost = $this->unit_list->unitCountLost(); |
@@ -535,7 +542,7 @@ discard block |
||
| 535 | 542 | |
| 536 | 543 | /** |
| 537 | 544 | * @param UBEFleetList $fleet_list |
| 538 | - * @param $is_simulator |
|
| 545 | + * @param boolean $is_simulator |
|
| 539 | 546 | * |
| 540 | 547 | * @version 2016-02-25 23:42:45 41a4.68 |
| 541 | 548 | */ |