@@ -464,7 +464,7 @@ discard block |
||
| 464 | 464 | * Преобразовывает данные симулятора в данные для расчета боя |
| 465 | 465 | * |
| 466 | 466 | * @param $side_info |
| 467 | - * @param $attacker |
|
| 467 | + * @param boolean $attacker |
|
| 468 | 468 | * @param int $player_id |
| 469 | 469 | * |
| 470 | 470 | * @version 41a6.22 |
@@ -572,7 +572,7 @@ discard block |
||
| 572 | 572 | } |
| 573 | 573 | |
| 574 | 574 | /** |
| 575 | - * @param $template |
|
| 575 | + * @param null|template $template |
|
| 576 | 576 | * |
| 577 | 577 | * @return template |
| 578 | 578 | */ |
@@ -93,7 +93,7 @@ discard block |
||
| 93 | 93 | } |
| 94 | 94 | |
| 95 | 95 | /** |
| 96 | - * @param $moon_debris_left_part |
|
| 96 | + * @param double $moon_debris_left_part |
|
| 97 | 97 | */ |
| 98 | 98 | public function debris_adjust_proportional($moon_debris_left_part) { |
| 99 | 99 | foreach($this->debris as $resource_id => &$resource_amount) { |
@@ -104,7 +104,7 @@ discard block |
||
| 104 | 104 | /** |
| 105 | 105 | * @param classConfig $config |
| 106 | 106 | * |
| 107 | - * @return int |
|
| 107 | + * @return double |
|
| 108 | 108 | */ |
| 109 | 109 | public function debris_in_metal($config) { |
| 110 | 110 | return floatval( |
@@ -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(); |
@@ -534,7 +541,7 @@ discard block |
||
| 534 | 541 | |
| 535 | 542 | /** |
| 536 | 543 | * @param UBEFleetList $fleet_list |
| 537 | - * @param $is_simulator |
|
| 544 | + * @param boolean $is_simulator |
|
| 538 | 545 | * |
| 539 | 546 | * @version 2016-02-25 23:42:45 41a4.68 |
| 540 | 547 | */ |
@@ -586,7 +593,7 @@ discard block |
||
| 586 | 593 | } |
| 587 | 594 | |
| 588 | 595 | /** |
| 589 | - * @return int |
|
| 596 | + * @return double |
|
| 590 | 597 | * |
| 591 | 598 | * @version 2016-02-25 23:42:45 41a4.68 |
| 592 | 599 | */ |
@@ -278,6 +278,9 @@ |
||
| 278 | 278 | return count($this->ube_side_present_at_round_start); |
| 279 | 279 | } |
| 280 | 280 | |
| 281 | + /** |
|
| 282 | + * @param integer $round |
|
| 283 | + */ |
|
| 281 | 284 | public function ubeAnalyzeFleetOutcome($round) { |
| 282 | 285 | $this->ube_actualize_sides(); |
| 283 | 286 | |
@@ -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 | */ |
@@ -188,6 +188,11 @@ discard block |
||
| 188 | 188 | */ |
| 189 | 189 | // OK v4 |
| 190 | 190 | // TODO - вынести в отдельный класс |
| 191 | +/** |
|
| 192 | + * @param string $db_id_field_name |
|
| 193 | + * @param string $db_table_name |
|
| 194 | + * @param string $db_value_field_name |
|
| 195 | + */ |
|
| 191 | 196 | function db_get_set_unique_id_value($current_value_unsafe, $db_id_field_name, $db_table_name, $db_value_field_name) { |
| 192 | 197 | $current_value_safe = db_escape($current_value_unsafe); |
| 193 | 198 | $value_id = doquery("SELECT `{$db_id_field_name}` AS id_field FROM {{{$db_table_name}}} WHERE `{$db_value_field_name}` = '{$current_value_safe}' LIMIT 1 FOR UPDATE", true); |
@@ -220,7 +225,7 @@ discard block |
||
| 220 | 225 | |
| 221 | 226 | /** |
| 222 | 227 | * @param $user |
| 223 | - * @param $username_safe |
|
| 228 | + * @param string $username_safe |
|
| 224 | 229 | */ |
| 225 | 230 | function db_player_name_history_replace($user, $username_safe) { |
| 226 | 231 | doquery("REPLACE INTO {{player_name_history}} SET `player_id` = {$user['id']}, `player_name` = '{$username_safe}'"); |
@@ -228,7 +233,7 @@ discard block |
||
| 228 | 233 | |
| 229 | 234 | |
| 230 | 235 | /** |
| 231 | - * @param $username_safe |
|
| 236 | + * @param string $username_safe |
|
| 232 | 237 | * |
| 233 | 238 | * @return array|bool|mysqli_result|null |
| 234 | 239 | */ |
@@ -488,9 +493,9 @@ discard block |
||
| 488 | 493 | * @param $user_id |
| 489 | 494 | * @param $change_type |
| 490 | 495 | * @param $dark_matter |
| 491 | - * @param $comment |
|
| 496 | + * @param string $comment |
|
| 492 | 497 | * @param $row |
| 493 | - * @param $page_url |
|
| 498 | + * @param string $page_url |
|
| 494 | 499 | */ |
| 495 | 500 | function db_log_dark_matter_insert($user_id, $change_type, $dark_matter, $comment, $row, $page_url) { |
| 496 | 501 | doquery( |
@@ -534,9 +539,9 @@ discard block |
||
| 534 | 539 | |
| 535 | 540 | // Quests *********************************************************************************************************** |
| 536 | 541 | /** |
| 537 | - * @param $query_add_select |
|
| 542 | + * @param string $query_add_select |
|
| 538 | 543 | * @param $query_add_from |
| 539 | - * @param $query_add_where |
|
| 544 | + * @param string $query_add_where |
|
| 540 | 545 | * |
| 541 | 546 | * @return array|bool|mysqli_result|null |
| 542 | 547 | */ |
@@ -580,11 +585,11 @@ discard block |
||
| 580 | 585 | } |
| 581 | 586 | |
| 582 | 587 | /** |
| 583 | - * @param $quest_name |
|
| 584 | - * @param $quest_type |
|
| 585 | - * @param $quest_description |
|
| 588 | + * @param string $quest_name |
|
| 589 | + * @param integer $quest_type |
|
| 590 | + * @param string $quest_description |
|
| 586 | 591 | * @param $quest_conditions |
| 587 | - * @param $quest_rewards |
|
| 592 | + * @param string $quest_rewards |
|
| 588 | 593 | * @param $quest_id |
| 589 | 594 | */ |
| 590 | 595 | function db_quest_update($quest_name, $quest_type, $quest_description, $quest_conditions, $quest_rewards, $quest_id) { |
@@ -607,7 +612,7 @@ discard block |
||
| 607 | 612 | /** |
| 608 | 613 | * @param $banner |
| 609 | 614 | * @param $banned |
| 610 | - * @param $reason |
|
| 615 | + * @param string $reason |
|
| 611 | 616 | * @param $ban_until |
| 612 | 617 | */ |
| 613 | 618 | function db_ban_insert($banner, $banned, $reason, $ban_until) { |
@@ -630,7 +635,7 @@ discard block |
||
| 630 | 635 | /** |
| 631 | 636 | * @param $banner |
| 632 | 637 | * @param $banned |
| 633 | - * @param $reason |
|
| 638 | + * @param string $reason |
|
| 634 | 639 | */ |
| 635 | 640 | function db_ban_insert_unset($banner, $banned, $reason) { |
| 636 | 641 | doquery( |
@@ -293,7 +293,7 @@ |
||
| 293 | 293 | } |
| 294 | 294 | |
| 295 | 295 | /** |
| 296 | - * @param $ranklist |
|
| 296 | + * @param string $ranklist |
|
| 297 | 297 | * @param $user |
| 298 | 298 | */ |
| 299 | 299 | function db_ally_update_ranklist($ranklist, $user) { |
@@ -17,9 +17,9 @@ discard block |
||
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * @param $user_id |
| 20 | - * @param $nick |
|
| 20 | + * @param string $nick |
|
| 21 | 21 | * @param $ally_id |
| 22 | - * @param $message |
|
| 22 | + * @param string $message |
|
| 23 | 23 | * @param $chat_message_sender_name |
| 24 | 24 | * @param $chat_message_recipient_id |
| 25 | 25 | * @param $chat_message_recipient_name |
@@ -55,7 +55,7 @@ discard block |
||
| 55 | 55 | * @param $alliance |
| 56 | 56 | * @param $where_add |
| 57 | 57 | * @param $start_row |
| 58 | - * @param $page_limit |
|
| 58 | + * @param integer $page_limit |
|
| 59 | 59 | * |
| 60 | 60 | * @return array|bool|mysqli_result|null |
| 61 | 61 | */ |
@@ -22,6 +22,10 @@ discard block |
||
| 22 | 22 | doquery('DELETE FROM `{{aks}}` WHERE `id` NOT IN (SELECT DISTINCT `fleet_group` FROM `{{fleets}}`);'); |
| 23 | 23 | } |
| 24 | 24 | |
| 25 | +/** |
|
| 26 | + * @param double $arrival |
|
| 27 | + * @param integer $target_structure |
|
| 28 | + */ |
|
| 25 | 29 | function db_missile_insert($target_coord, $user, $planetrow, $arrival, $fleet_ship_count, $target_structure) { |
| 26 | 30 | doquery( |
| 27 | 31 | "INSERT INTO `{{iraks}}` SET |
@@ -114,14 +118,14 @@ discard block |
||
| 114 | 118 | |
| 115 | 119 | |
| 116 | 120 | /** |
| 117 | - * @param $fleet_group_id_list |
|
| 121 | + * @param string $fleet_group_id_list |
|
| 118 | 122 | */ |
| 119 | 123 | function db_acs_delete_by_list($fleet_group_id_list) { |
| 120 | 124 | doquery("DELETE FROM {{aks}} WHERE `id` IN ({$fleet_group_id_list})"); |
| 121 | 125 | } |
| 122 | 126 | |
| 123 | 127 | /** |
| 124 | - * @param $bashing_list |
|
| 128 | + * @param string $bashing_list |
|
| 125 | 129 | */ |
| 126 | 130 | function db_bashing_insert($bashing_list) { |
| 127 | 131 | doquery("INSERT INTO {{bashing}} (bashing_user_id, bashing_planet_id, bashing_time) VALUES {$bashing_list};"); |