Completed
Push — work-fleets ( 867546...331178 )
by SuperNova.WS
06:17
created
includes/classes/SnDbCachedOperator.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -314,6 +314,9 @@  discard block
 block discarded – undo
314 314
     return $result;
315 315
   }
316 316
 
317
+  /**
318
+   * @param integer $location_type
319
+   */
317 320
   public static function db_ins_field_set($location_type, $field_set, $serialize = false) {
318 321
     // TODO multiinsert
319 322
     !sn_db_field_set_is_safe($field_set) ? $field_set = sn_db_field_set_make_safe($field_set, $serialize) : false;
@@ -350,7 +353,7 @@  discard block
 block discarded – undo
350 353
   /**
351 354
    * Блокирует указанные таблицу/список таблиц
352 355
    *
353
-   * @param string|array $tables Таблица/список таблиц для блокировки. Названия таблиц - без префиксов
356
+   * @param string $tables Таблица/список таблиц для блокировки. Названия таблиц - без префиксов
354 357
    * <p>string - название таблицы для блокировки</p>
355 358
    * <p>array - массив, где ключ - имя таблицы, а значение - условия блокировки элементов</p>
356 359
    */
Please login to merge, or discard this patch.
includes/classes/DBStaticFleetMissile.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -2,6 +2,10 @@
 block discarded – undo
2 2
 
3 3
 class DBStaticFleetMissile {
4 4
 
5
+  /**
6
+   * @param double $arrival
7
+   * @param integer $target_structure
8
+   */
5 9
   public static function db_missile_insert($target_coord, $user, $planetrow, $arrival, $fleet_ship_count, $target_structure) {
6 10
     classSupernova::$db->doInsert(
7 11
       "INSERT INTO `{{iraks}}` SET
Please login to merge, or discard this patch.
includes/classes/DBStaticNews.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@
 block discarded – undo
26 26
 
27 27
   /**
28 28
    * @param template $template
29
-   * @param $query_where
30
-   * @param $query_limit
29
+   * @param string $query_where
30
+   * @param integer $query_limit
31 31
    *
32 32
    * @return array|bool|mysqli_result|null
33 33
    */
Please login to merge, or discard this patch.
includes/classes/DBStaticChat.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
   /**
21 21
    * @param $user_id
22
-   * @param $nickUnsafe
22
+   * @param string $nickUnsafe
23 23
    * @param $ally_id
24 24
    * @param $message_unsafe
25 25
    * @param $chat_message_sender_name_unsafe
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
    * @param $alliance
55 55
    * @param $where_add
56 56
    * @param $start_row
57
-   * @param $page_limit
57
+   * @param integer $page_limit
58 58
    *
59 59
    * @return array|bool|mysqli_result|null
60 60
    */
Please login to merge, or discard this patch.
includes/classes/DBStaticFleetBashing.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@
 block discarded – undo
5 5
   /**
6 6
    * @param $user
7 7
    * @param $planet_dst
8
-   * @param $time_limit
8
+   * @param integer $time_limit
9 9
    *
10 10
    * @return array|bool|mysqli_result|null
11 11
    */
Please login to merge, or discard this patch.
includes/classes/UBE/UBE.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -459,7 +459,7 @@  discard block
 block discarded – undo
459 459
    * Преобразовывает данные симулятора в данные для расчета боя
460 460
    *
461 461
    * @param     $side_info
462
-   * @param     $attacker
462
+   * @param     boolean $attacker
463 463
    * @param int $player_id
464 464
    *
465 465
    */
@@ -521,7 +521,7 @@  discard block
 block discarded – undo
521 521
   }
522 522
 
523 523
   /**
524
-   * @return int
524
+   * @return double
525 525
    */
526 526
   public function get_time_spent() {
527 527
     return $this->time_spent;
@@ -564,7 +564,7 @@  discard block
 block discarded – undo
564 564
   }
565 565
 
566 566
   /**
567
-   * @param $template
567
+   * @param null|template $template
568 568
    *
569 569
    * @return template
570 570
    */
Please login to merge, or discard this patch.
includes/classes/UBE/UBEReport.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
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
    */
Please login to merge, or discard this patch.
includes/classes/DBStaticMessages.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -467,6 +467,12 @@
 block discarded – undo
467 467
   {$StartRec}, 25;");
468 468
   }
469 469
 
470
+  /**
471
+   * @param integer $message_type
472
+   * @param string $from_unsafe
473
+   * @param string $subject_unsafe
474
+   * @param string $text_unsafe
475
+   */
470 476
   public static function db_message_insert_all($message_type, $from_unsafe, $subject_unsafe, $text_unsafe) {
471 477
     $message_type_safe = intval($message_type);
472 478
     $from_safe = db_escape($from_unsafe);
Please login to merge, or discard this patch.
includes/db/db_queries.php 1 patch
Doc Comments   +15 added lines, -10 removed lines patch added patch discarded remove patch
@@ -169,6 +169,11 @@  discard block
 block discarded – undo
169 169
  */
170 170
 // OK v4
171 171
 // TODO - вынести в отдельный класс
172
+/**
173
+ * @param string $db_id_field_name
174
+ * @param string $db_table_name
175
+ * @param string $db_value_field_name
176
+ */
172 177
 function db_get_set_unique_id_value($current_value_unsafe, $db_id_field_name, $db_table_name, $db_value_field_name) {
173 178
   $current_value_safe = db_escape($current_value_unsafe);
174 179
   $value_id = classSupernova::$db->doSelectFetch("SELECT `{$db_id_field_name}` FROM {{{$db_table_name}}} WHERE `{$db_value_field_name}` = '{$current_value_safe}' LIMIT 1 FOR UPDATE");
@@ -487,8 +492,8 @@  discard block
 block discarded – undo
487 492
 
488 493
 
489 494
 /**
490
- * @param $user_id
491
- * @param $change_type
495
+ * @param integer $user_id
496
+ * @param integer $change_type
492 497
  * @param $dark_matter
493 498
  * @param $comment_unsafe
494 499
  * @param $rowUserNameUnsafe
@@ -509,7 +514,7 @@  discard block
 block discarded – undo
509 514
 /**
510 515
  * @param $user_id_safe
511 516
  *
512
- * @return array|bool|mysqli_result|null
517
+ * @return integer
513 518
  */
514 519
 function db_referral_get_by_id($user_id_safe) {
515 520
   $old_referral = classSupernova::$db->doSelectFetch("SELECT * FROM {{referrals}} WHERE `id` = {$user_id_safe} LIMIT 1 FOR UPDATE;");
@@ -540,9 +545,9 @@  discard block
 block discarded – undo
540 545
 
541 546
 // Quests ***********************************************************************************************************
542 547
 /**
543
- * @param $query_add_select
548
+ * @param string $query_add_select
544 549
  * @param $query_add_from
545
- * @param $query_add_where
550
+ * @param string $query_add_where
546 551
  *
547 552
  * @return array|bool|mysqli_result|null
548 553
  */
@@ -586,11 +591,11 @@  discard block
 block discarded – undo
586 591
 }
587 592
 
588 593
 /**
589
- * @param $quest_name_unsafe
590
- * @param $quest_type
591
- * @param $quest_description_unsafe
594
+ * @param string $quest_name_unsafe
595
+ * @param integer $quest_type
596
+ * @param string $quest_description_unsafe
592 597
  * @param $quest_conditions
593
- * @param $quest_rewards
598
+ * @param string $quest_rewards
594 599
  * @param $quest_id
595 600
  */
596 601
 function db_quest_update($quest_name_unsafe, $quest_type, $quest_description_unsafe, $quest_conditions, $quest_rewards, $quest_id) {
@@ -674,7 +679,7 @@  discard block
 block discarded – undo
674 679
 
675 680
 /**
676 681
  * @param $payment_id
677
- * @param $payment_status
682
+ * @param integer $payment_status
678 683
  * @param $comment_unsafe
679 684
  */
680 685
 function db_payment_update($payment_id, $payment_status, $comment_unsafe) {
Please login to merge, or discard this patch.