Completed
Push — work-fleets ( 2bd11a...17dd3b )
by SuperNova.WS
06:36
created
includes/classes/auth_local.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,6 @@  discard block
 block discarded – undo
134 134
   /**
135 135
    * Попытка залогиниться с использованием метода $method
136 136
    *
137
-   * @param string $method_name
138 137
    */
139 138
   public function login() {
140 139
     // TODO Проверяем поддерживаемость метода
@@ -162,6 +161,10 @@  discard block
 block discarded – undo
162 161
    * @return array|bool|resource
163 162
    */
164 163
   // OK v4.5
164
+
165
+  /**
166
+   * @param string $salt_unsafe
167
+   */
165 168
   public function password_change($old_password_unsafe, $new_password_unsafe, $salt_unsafe = null) {
166 169
     $result = parent::password_change($old_password_unsafe, $new_password_unsafe, $salt_unsafe);
167 170
     if($result) {
@@ -171,6 +174,9 @@  discard block
 block discarded – undo
171 174
     return $result;
172 175
   }
173 176
 
177
+  /**
178
+   * @param Account $account_to_impersonate
179
+   */
174 180
   public function impersonate($account_to_impersonate) {
175 181
     $this->cookie_set($account_to_impersonate);
176 182
   }
Please login to merge, or discard this patch.
includes/classes/classSupernova.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
   /**
201 201
    * Блокирует указанные таблицу/список таблиц
202 202
    *
203
-   * @param string|array $tables Таблица/список таблиц для блокировки. Названия таблиц - без префиксов
203
+   * @param string $tables Таблица/список таблиц для блокировки. Названия таблиц - без префиксов
204 204
    * <p>string - название таблицы для блокировки</p>
205 205
    * <p>array - массив, где ключ - имя таблицы, а значение - условия блокировки элементов</p>
206 206
    */
@@ -377,6 +377,9 @@  discard block
 block discarded – undo
377 377
     return $result;
378 378
   }
379 379
 
380
+  /**
381
+   * @param integer $location_type
382
+   */
380 383
   public static function db_ins_field_set($location_type, $field_set, $serialize = false) {
381 384
     // TODO multiinsert
382 385
     !sn_db_field_set_is_safe($field_set) ? $field_set = sn_db_field_set_make_safe($field_set, $serialize) : false;
Please login to merge, or discard this patch.
includes/classes/db_mysql.php 1 patch
Doc Comments   +9 added lines, -2 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
   /**
150 150
    * @param string $query
151 151
    *
152
-   * @return mixed|string
152
+   * @return string
153 153
    */
154 154
   public function replaceTablePlaceholders($query) {
155 155
     $sql = $query;
@@ -163,7 +163,7 @@  discard block
 block discarded – undo
163 163
   }
164 164
 
165 165
   /**
166
-   * @param $query
166
+   * @param string $query
167 167
    */
168 168
   protected function logQuery($query) {
169 169
     if (!classSupernova::$config->debug) {
@@ -352,6 +352,10 @@  discard block
 block discarded – undo
352 352
   }
353 353
 
354 354
   // TODO Заменить это на новый логгер
355
+
356
+  /**
357
+   * @param string $query
358
+   */
355 359
   protected function security_watch_user_queries($query) {
356 360
     global $user;
357 361
 
@@ -375,6 +379,9 @@  discard block
 block discarded – undo
375 379
   }
376 380
 
377 381
 
382
+  /**
383
+   * @param string $query
384
+   */
378 385
   public function security_query_check_bad_words($query) {
379 386
     if ($this->skipQueryCheck) {
380 387
       return;
Please login to merge, or discard this patch.
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/DbQueryConstructor.php 1 patch
Doc Comments   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -155,10 +155,17 @@  discard block
 block discarded – undo
155 155
     return $this->field(DbSqlLiteral::build($this->db)->literal($field));
156 156
   }
157 157
 
158
+  /**
159
+   * @param string $functionName
160
+   * @param string $alias
161
+   */
158 162
   public function fieldSingleFunction($functionName, $field = '*', $alias = DbSqlLiteral::SQL_LITERAL_ALIAS_NONE) {
159 163
     return $this->field(DbSqlLiteral::build($this->db)->buildSingleArgument($functionName, $field, $alias));
160 164
   }
161 165
 
166
+  /**
167
+   * @param string $alias
168
+   */
162 169
   public function fieldCount($field = '*', $alias = DbSqlLiteral::SQL_LITERAL_ALIAS_NONE) {
163 170
     return $this->field(DbSqlLiteral::build($this->db)->count($field, $alias));
164 171
   }
@@ -240,7 +247,7 @@  discard block
 block discarded – undo
240 247
 
241 248
   /**
242 249
    * @param db_mysql|null $db
243
-   * @param string|object|DBStaticRecord|DbSqlAware $className
250
+   * @param string $className
244 251
    *
245 252
    * @return static
246 253
    */
@@ -435,7 +442,6 @@  discard block
 block discarded – undo
435 442
   }
436 443
 
437 444
   /**
438
-   * @param bool $skip_query_check
439 445
    *
440 446
    * @return DbEmptyIterator|DbMysqliResultIterator
441 447
    */
@@ -444,7 +450,6 @@  discard block
 block discarded – undo
444 450
   }
445 451
 
446 452
   /**
447
-   * @param bool $skip_query_check
448 453
    *
449 454
    * @return array
450 455
    */
@@ -455,7 +460,6 @@  discard block
 block discarded – undo
455 460
   }
456 461
 
457 462
   /**
458
-   * @param bool $skip_query_check
459 463
    *
460 464
    * @return mixed|null
461 465
    */
Please login to merge, or discard this patch.
includes/classes/DBStaticMessages.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -477,6 +477,9 @@
 block discarded – undo
477 477
   {$StartRec}, 25;");
478 478
   }
479 479
 
480
+  /**
481
+   * @param integer $message_type
482
+   */
480 483
   public static function db_message_insert_all($message_type, $from, $subject, $text) {
481 484
     return classSupernova::$db->doInsert('INSERT INTO {{messages}} (`message_owner`, `message_sender`, `message_time`, `message_type`, `message_from`, `message_subject`, `message_text`) ' .
482 485
       "SELECT `id`, 0, unix_timestamp(now()), {$message_type}, '{$from}', '{$subject}', '{$text}' FROM {{users}}");
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/db.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -9,6 +9,9 @@  discard block
 block discarded – undo
9 9
 
10 10
 require_once('db/db_queries.php');
11 11
 
12
+/**
13
+ * @param string $tablename
14
+ */
12 15
 function db_change_units_perform($query, $tablename, $object_id) {
13 16
   $query = implode(',', $query);
14 17
   if($query && $object_id) {
@@ -60,6 +63,9 @@  discard block
 block discarded – undo
60 63
   db_change_units_perform($query[LOC_USER], 'users', $user['id']);
61 64
   db_change_units_perform($query[LOC_PLANET], 'planets', $planet['id']);
62 65
 }
66
+/**
67
+ * @param string $table
68
+ */
63 69
 function sn_db_perform($table, $values, $type = 'insert', $options = false) {
64 70
   $field_set = '';
65 71
 
@@ -153,6 +159,9 @@  discard block
 block discarded – undo
153 159
 
154 160
 
155 161
 
162
+/**
163
+ * @param boolean $transaction_should_be_started
164
+ */
156 165
 function sn_db_transaction_check($transaction_should_be_started = null) {
157 166
   return classSupernova::$gc->db->getTransaction()->check($transaction_should_be_started);
158 167
 }
Please login to merge, or discard this patch.
includes/db/db_queries.php 1 patch
Doc Comments   +13 added lines, -8 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}` AS id_field FROM {{{$db_table_name}}} WHERE `{$db_value_field_name}` = '{$current_value_safe}' LIMIT 1 FOR UPDATE");
@@ -474,8 +479,8 @@  discard block
 block discarded – undo
474 479
 
475 480
 
476 481
 /**
477
- * @param $user_id
478
- * @param $change_type
482
+ * @param integer $user_id
483
+ * @param integer $change_type
479 484
  * @param $dark_matter
480 485
  * @param $comment
481 486
  * @param $row
@@ -495,7 +500,7 @@  discard block
 block discarded – undo
495 500
 /**
496 501
  * @param $user_id_safe
497 502
  *
498
- * @return array|bool|mysqli_result|null
503
+ * @return integer
499 504
  */
500 505
 function db_referral_get_by_id($user_id_safe) {
501 506
   $old_referral = classSupernova::$db->doSelectFetch("SELECT * FROM {{referrals}} WHERE `id` = {$user_id_safe} LIMIT 1 FOR UPDATE;");
@@ -523,9 +528,9 @@  discard block
 block discarded – undo
523 528
 
524 529
 // Quests ***********************************************************************************************************
525 530
 /**
526
- * @param $query_add_select
531
+ * @param string $query_add_select
527 532
  * @param $query_add_from
528
- * @param $query_add_where
533
+ * @param string $query_add_where
529 534
  *
530 535
  * @return array|bool|mysqli_result|null
531 536
  */
@@ -570,10 +575,10 @@  discard block
 block discarded – undo
570 575
 
571 576
 /**
572 577
  * @param $quest_name
573
- * @param $quest_type
578
+ * @param integer $quest_type
574 579
  * @param $quest_description
575 580
  * @param $quest_conditions
576
- * @param $quest_rewards
581
+ * @param string $quest_rewards
577 582
  * @param $quest_id
578 583
  */
579 584
 function db_quest_update($quest_name, $quest_type, $quest_description, $quest_conditions, $quest_rewards, $quest_id) {
@@ -592,7 +597,7 @@  discard block
 block discarded – undo
592 597
 /**
593 598
  * @param $banner
594 599
  * @param $banned
595
- * @param $reason
600
+ * @param string $reason
596 601
  * @param $ban_until
597 602
  */
598 603
 function db_ban_insert($banner, $banned, $reason, $ban_until) {
Please login to merge, or discard this patch.