Completed
Push — work-fleets ( 04acf9...8f8df9 )
by SuperNova.WS
07:02
created
includes/classes/db_mysql.php 1 patch
Doc Comments   +17 added lines, -4 removed lines patch added patch discarded remove patch
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
   /**
160 160
    * @param string $query
161 161
    *
162
-   * @return mixed|string
162
+   * @return string
163 163
    */
164 164
   public function replaceTablePlaceholders($query) {
165 165
     $sql = $query;
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
   }
174 174
 
175 175
   /**
176
-   * @param $query
176
+   * @param string $query
177 177
    */
178 178
   protected function logQuery($query) {
179 179
     if (!classSupernova::$config->debug) {
@@ -307,6 +307,9 @@  discard block
 block discarded – undo
307 307
   }
308 308
 
309 309
 
310
+  /**
311
+   * @param integer $replace
312
+   */
310 313
   protected function doSet($table, $fieldsAndValues, $replace = DB_INSERT_PLAIN) {
311 314
     $tableSafe = $this->db_escape($table);
312 315
     $safeFieldsAndValues = implode(',', $this->safeFieldsAndValues($fieldsAndValues));
@@ -339,6 +342,9 @@  discard block
 block discarded – undo
339 342
     return $this->doSet($table, $fieldsAndValues, $replace);
340 343
   }
341 344
 
345
+  /**
346
+   * @param string $table
347
+   */
342 348
   public function doReplaceSet($table, $fieldsAndValues) {
343 349
     return $this->doSet($table, $fieldsAndValues, DB_INSERT_REPLACE);
344 350
   }
@@ -373,7 +379,7 @@  discard block
 block discarded – undo
373 379
    * Values should be passed as-is
374 380
    *
375 381
    * @param string   $table
376
-   * @param array    $fields
382
+   * @param string[]    $fields
377 383
    * @param string[] $values
378 384
    *
379 385
    * @return array|bool|mysqli_result|null
@@ -451,7 +457,7 @@  discard block
 block discarded – undo
451 457
    *
452 458
    * Usually used for mallformed $where conditions
453 459
    *
454
-   * @param $table
460
+   * @param string $table
455 461
    * @param $where
456 462
    *
457 463
    * @return array|bool|mysqli_result|null
@@ -589,6 +595,10 @@  discard block
 block discarded – undo
589 595
   }
590 596
 
591 597
   // TODO Заменить это на новый логгер
598
+
599
+  /**
600
+   * @param string $query
601
+   */
592 602
   protected function security_watch_user_queries($query) {
593 603
     global $user;
594 604
 
@@ -612,6 +622,9 @@  discard block
 block discarded – undo
612 622
   }
613 623
 
614 624
 
625
+  /**
626
+   * @param string $query
627
+   */
615 628
   public function security_query_check_bad_words($query) {
616 629
     if ($this->skipQueryCheck) {
617 630
       return;
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/db/db_queries.php 1 patch
Doc Comments   +12 added lines, -7 removed lines patch added patch discarded remove patch
@@ -173,6 +173,11 @@  discard block
 block discarded – undo
173 173
  */
174 174
 // OK v4
175 175
 // TODO - вынести в отдельный класс
176
+/**
177
+ * @param string $db_id_field_name
178
+ * @param string $db_table_name
179
+ * @param string $db_value_field_name
180
+ */
176 181
 function db_get_set_unique_id_value($current_value_unsafe, $db_id_field_name, $db_table_name, $db_value_field_name) {
177 182
   $current_value_safe = db_escape($current_value_unsafe);
178 183
   $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");
@@ -475,8 +480,8 @@  discard block
 block discarded – undo
475 480
 
476 481
 
477 482
 /**
478
- * @param $user_id
479
- * @param $change_type
483
+ * @param integer $user_id
484
+ * @param integer $change_type
480 485
  * @param $dark_matter
481 486
  * @param $comment_unsafe
482 487
  * @param $rowUserNameUnsafe
@@ -497,7 +502,7 @@  discard block
 block discarded – undo
497 502
 /**
498 503
  * @param $user_id_safe
499 504
  *
500
- * @return array|bool|mysqli_result|null
505
+ * @return integer
501 506
  */
502 507
 function db_referral_get_by_id($user_id_safe) {
503 508
   $old_referral = classSupernova::$db->doSelectFetch("SELECT * FROM {{referrals}} WHERE `id` = {$user_id_safe} LIMIT 1 FOR UPDATE;");
@@ -528,9 +533,9 @@  discard block
 block discarded – undo
528 533
 
529 534
 // Quests ***********************************************************************************************************
530 535
 /**
531
- * @param $query_add_select
536
+ * @param string $query_add_select
532 537
  * @param $query_add_from
533
- * @param $query_add_where
538
+ * @param string $query_add_where
534 539
  *
535 540
  * @return array|bool|mysqli_result|null
536 541
  */
@@ -575,10 +580,10 @@  discard block
 block discarded – undo
575 580
 
576 581
 /**
577 582
  * @param $quest_name
578
- * @param $quest_type
583
+ * @param integer $quest_type
579 584
  * @param $quest_description
580 585
  * @param $quest_conditions
581
- * @param $quest_rewards
586
+ * @param string $quest_rewards
582 587
  * @param $quest_id
583 588
  */
584 589
 function db_quest_update($quest_name, $quest_type, $quest_description, $quest_conditions, $quest_rewards, $quest_id) {
Please login to merge, or discard this patch.