Completed
Push — work-fleets ( 094cef...4ec5b3 )
by SuperNova.WS
06:12
created
includes/classes/DBAL/DbTransaction.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
    *   <p>true - транзакция должна быть запущена - для совместимости с $for_update</p>
40 40
    *   <p>false - всё равно - для совместимости с $for_update</p>
41 41
    *
42
-   * @return bool Текущий статус транзакции
42
+   * @return null|boolean Текущий статус транзакции
43 43
    */
44 44
   public function check($status = null) {
45 45
     $error_msg = false;
Please login to merge, or discard this patch.
includes/classes/debug.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -187,6 +187,9 @@
 block discarded – undo
187 187
     return $error_backtrace;
188 188
   }
189 189
 
190
+  /**
191
+   * @param string $die_message
192
+   */
190 193
   public function error_fatal($die_message, $details = 'There is a fatal error on page') {
191 194
     // TODO - Записывать детали ошибки в лог-файл
192 195
     die($die_message);
Please login to merge, or discard this patch.
includes/functions/eco_planet_update.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -9,6 +9,9 @@
 block discarded – undo
9 9
  *     [+] Full rewrote and optimization
10 10
  *
11 11
  */
12
+/**
13
+ * @param integer $UpdateTime
14
+ */
12 15
 function sys_o_get_updated($user, $planet, $UpdateTime, $simulation = false, $no_user_update = false) {
13 16
   sn_db_transaction_check(true);
14 17
 
Please login to merge, or discard this patch.
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/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/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.
includes/db.php 1 patch
Doc Comments   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,6 @@  discard block
 block discarded – undo
16 16
  * @param       $user
17 17
  * @param       $planet
18 18
  * @param array $unit_list
19
- * @param null  $query
20 19
  */
21 20
 function db_change_resources(&$user, &$planet, $unit_list) {
22 21
   $group = sn_get_groups('resources_loot');
@@ -56,6 +55,9 @@  discard block
 block discarded – undo
56 55
 
57 56
 }
58 57
 
58
+/**
59
+ * @param boolean $transaction_should_be_started
60
+ */
59 61
 function sn_db_transaction_check($transaction_should_be_started = null) {
60 62
   return classSupernova::$gc->db->getTransaction()->check($transaction_should_be_started);
61 63
 }
Please login to merge, or discard this patch.
includes/classes/EntityModel.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -63,6 +63,10 @@
 block discarded – undo
63 63
    */
64 64
   protected $accessors = array();
65 65
 
66
+  /**
67
+   * @param string $varName
68
+   * @param string $type
69
+   */
66 70
   protected function assignAccessor($varName, $type, $callable) {
67 71
     if (empty($callable)) {
68 72
       return;
Please login to merge, or discard this patch.