Completed
Push — work-fleets ( da4c88...99e92e )
by SuperNova.WS
05:42
created
includes/classes/DBStaticUnit.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -56,6 +56,9 @@  discard block
 block discarded – undo
56 56
     WHERE unit_player_id = {$user_id} AND unit_location_type = " . LOC_PLANET . " AND unit_level > 0 AND unit_snid IN (" . STRUC_LABORATORY . ", " . STRUC_LABORATORY_NANO . ");");
57 57
   }
58 58
 
59
+  /**
60
+   * @param string $set
61
+   */
59 62
   public static function db_unit_set_by_id($unit_id, $set) {
60 63
     return classSupernova::db_upd_record_by_id(LOC_UNIT, $unit_id, $set);
61 64
   }
@@ -69,6 +72,9 @@  discard block
 block discarded – undo
69 72
     return classSupernova::db_ins_record(LOC_UNIT, $set);
70 73
   }
71 74
 
75
+  /**
76
+   * @param integer $unit_location_type
77
+   */
72 78
   public static function db_unit_list_delete($user_id = 0, $unit_location_type, $unit_location_id, $unit_snid = 0) {
73 79
     return classSupernova::db_del_record_list(LOC_UNIT,
74 80
       "`unit_location_type` = {$unit_location_type} AND `unit_location_id` = {$unit_location_id}" .
Please login to merge, or discard this patch.
includes/classes/DBStaticAlly.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -293,7 +293,7 @@
 block discarded – undo
293 293
   }
294 294
 
295 295
   /**
296
-   * @param $ranklist
296
+   * @param string $ranklist
297 297
    * @param $user
298 298
    */
299 299
   public static function db_ally_update_ranklist($ranklist, $user) {
Please login to merge, or discard this patch.
includes/classes/DBStaticChat.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,9 +19,9 @@  discard block
 block discarded – undo
19 19
 
20 20
   /**
21 21
    * @param $user_id
22
-   * @param $nick
22
+   * @param string $nick
23 23
    * @param $ally_id
24
-   * @param $message
24
+   * @param string $message
25 25
    * @param $chat_message_sender_name
26 26
    * @param $chat_message_recipient_id
27 27
    * @param $chat_message_recipient_name
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
    * @param $alliance
58 58
    * @param $where_add
59 59
    * @param $start_row
60
-   * @param $page_limit
60
+   * @param integer $page_limit
61 61
    *
62 62
    * @return array|bool|mysqli_result|null
63 63
    */
Please login to merge, or discard this patch.
includes/classes/DBStaticFleetACS.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
 
76 76
 
77 77
   /**
78
-   * @param $fleet_group_id_list
78
+   * @param string $fleet_group_id_list
79 79
    */
80 80
   public static function db_acs_delete_by_list($fleet_group_id_list) {
81 81
     doquery("DELETE FROM {{aks}} WHERE `id` IN ({$fleet_group_id_list})");
Please login to merge, or discard this patch.
includes/classes/DBStaticNews.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@
 block discarded – undo
25 25
   }
26 26
 
27 27
   /**
28
-   * @param $template
29
-   * @param $query_where
30
-   * @param $query_limit
28
+   * @param template $template
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/DBStaticSurveyVote.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
    * @param $user
18 18
    * @param $survey_id
19 19
    * @param $survey_vote_id
20
-   * @param $user_name_safe
20
+   * @param string $user_name_safe
21 21
    */
22 22
   public static function db_survey_vote_insert(&$user, $survey_id, $survey_vote_id, $user_name_safe) {
23 23
     doquery("INSERT INTO {{survey_votes}} SET `survey_parent_id` = {$survey_id}, `survey_parent_answer_id` = {$survey_vote_id}, `survey_vote_user_id` = {$user['id']}, `survey_vote_user_name` = '{$user_name_safe}';");
Please login to merge, or discard this patch.
includes/classes/db_mysql.php 1 patch
Doc Comments   +10 added lines, -3 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
   /**
125 125
    * @param string $query
126 126
    *
127
-   * @return mixed|string
127
+   * @return string
128 128
    */
129 129
   public function replaceTablePlaceholders($query) {
130 130
     $sql = $query;
@@ -138,8 +138,8 @@  discard block
 block discarded – undo
138 138
   }
139 139
 
140 140
   /**
141
-   * @param       $query
142
-   * @param       $fetch
141
+   * @param       string $query
142
+   * @param       boolean $fetch
143 143
    */
144 144
   protected function logQuery($query, $fetch) {
145 145
     if (!classSupernova::$config->debug) {
@@ -257,6 +257,10 @@  discard block
 block discarded – undo
257 257
 
258 258
 
259 259
   // TODO Заменить это на новый логгер
260
+
261
+  /**
262
+   * @param string $query
263
+   */
260 264
   protected function security_watch_user_queries($query) {
261 265
     global $user;
262 266
 
@@ -280,6 +284,9 @@  discard block
 block discarded – undo
280 284
   }
281 285
 
282 286
 
287
+  /**
288
+   * @param string $query
289
+   */
283 290
   public function security_query_check_bad_words($query, $skip_query_check = false) {
284 291
     if ($skip_query_check) {
285 292
       return;
Please login to merge, or discard this patch.
includes/classes/DbSqlLiteral.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
   }
27 27
 
28 28
   /**
29
-   * @param mixed $value
29
+   * @param string $value
30 30
    *
31 31
    * @return $this
32 32
    */
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
@@ -470,6 +470,12 @@
 block discarded – undo
470 470
   {$StartRec}, 25;");
471 471
   }
472 472
 
473
+  /**
474
+   * @param integer $message_type
475
+   * @param string $from
476
+   * @param string $subject
477
+   * @param string $text
478
+   */
473 479
   public static function db_message_insert_all($message_type, $from, $subject, $text) {
474 480
     return doquery($QryInsertMessage = 'INSERT INTO {{messages}} (`message_owner`, `message_sender`, `message_time`, `message_type`, `message_from`, `message_subject`, `message_text`) ' .
475 481
       "SELECT `id`, 0, unix_timestamp(now()), {$message_type}, '{$from}', '{$subject}', '{$text}' FROM {{users}}");
Please login to merge, or discard this patch.