Completed
Push — work-fleets ( 85ab35...ea0fb4 )
by SuperNova.WS
06:12
created
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/db_mysql.php 1 patch
Doc Comments   +30 added lines, -5 removed lines patch added patch discarded remove patch
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
   /**
163 163
    * @param string $query
164 164
    *
165
-   * @return mixed|string
165
+   * @return string
166 166
    */
167 167
   public function replaceTablePlaceholders($query) {
168 168
     $sql = $query;
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
   }
177 177
 
178 178
   /**
179
-   * @param $query
179
+   * @param string $query
180 180
    */
181 181
   protected function logQuery($query) {
182 182
     if (!classSupernova::$config->debug) {
@@ -306,10 +306,16 @@  discard block
 block discarded – undo
306 306
   }
307 307
 
308 308
 
309
+  /**
310
+   * @param string $query
311
+   */
309 312
   public function doInsertComplex($query) {
310 313
     return $this->doExecute($query);
311 314
   }
312 315
 
316
+  /**
317
+   * @param integer $replace
318
+   */
313 319
   protected function doSet($table, $fieldsAndValues, $replace = DB_INSERT_PLAIN) {
314 320
     $tableSafe = $this->db_escape($table);
315 321
     $safeFieldsAndValues = implode(',', $this->safeFieldsEqualValues($fieldsAndValues));
@@ -342,6 +348,9 @@  discard block
 block discarded – undo
342 348
     return $this->doSet($table, $fieldsAndValues, $replace);
343 349
   }
344 350
 
351
+  /**
352
+   * @param string $table
353
+   */
345 354
   public function doReplaceSet($table, $fieldsAndValues) {
346 355
     return $this->doSet($table, $fieldsAndValues, DB_INSERT_REPLACE);
347 356
   }
@@ -376,7 +385,7 @@  discard block
 block discarded – undo
376 385
    * Values should be passed as-is
377 386
    *
378 387
    * @param string   $table
379
-   * @param array    $fields
388
+   * @param string[]    $fields
380 389
    * @param string[] $values
381 390
    *
382 391
    * @return array|bool|mysqli_result|null
@@ -411,7 +420,7 @@  discard block
 block discarded – undo
411 420
    * Self-contained - means no params used
412 421
    * Such queries usually used to make large amount of in-base calculations
413 422
    *
414
-   * @param $query
423
+   * @param string $query
415 424
    *
416 425
    * @return array|bool|mysqli_result|null
417 426
    */
@@ -419,6 +428,9 @@  discard block
 block discarded – undo
419 428
     return $this->doExecute($query);
420 429
   }
421 430
 
431
+  /**
432
+   * @param boolean $isOneRecord
433
+   */
422 434
   protected function doUpdateWhere($table, $fieldsAndValues, $where = array(), $isOneRecord = DB_RECORDS_ALL) {
423 435
     $tableSafe = $this->db_escape($table);
424 436
     $safeFieldsEqualValues = implode(',', $this->safeFieldsEqualValues($fieldsAndValues));
@@ -430,10 +442,16 @@  discard block
 block discarded – undo
430 442
     return $this->doExecute($query);
431 443
   }
432 444
 
445
+  /**
446
+   * @param string $table
447
+   */
433 448
   public function doUpdateRowWhere($table, $fieldsAndValues, $where) {
434 449
     return $this->doUpdateWhere($table, $fieldsAndValues, $where, DB_RECORD_ONE);
435 450
   }
436 451
 
452
+  /**
453
+   * @param string $table
454
+   */
437 455
   public function doUpdateTable($table, $fieldsAndValues, $where = array()) {
438 456
     return $this->doUpdateWhere($table, $fieldsAndValues, $where, DB_RECORDS_ALL);
439 457
   }
@@ -504,7 +522,7 @@  discard block
 block discarded – undo
504 522
    *
505 523
    * Usually used for mallformed $where conditions
506 524
    *
507
-   * @param $table
525
+   * @param string $table
508 526
    * @param $where
509 527
    *
510 528
    * @return array|bool|mysqli_result|null
@@ -642,6 +660,10 @@  discard block
 block discarded – undo
642 660
   }
643 661
 
644 662
   // TODO Заменить это на новый логгер
663
+
664
+  /**
665
+   * @param string $query
666
+   */
645 667
   protected function security_watch_user_queries($query) {
646 668
     global $user;
647 669
 
@@ -665,6 +687,9 @@  discard block
 block discarded – undo
665 687
   }
666 688
 
667 689
 
690
+  /**
691
+   * @param string $query
692
+   */
668 693
   public function security_query_check_bad_words($query) {
669 694
     if ($this->skipQueryCheck) {
670 695
       return;
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.