Completed
Push — work-fleets ( 4ec5b3...fe2ede )
by SuperNova.WS
10:06
created
classes/Buddy/BuddyParams.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,6 @@
 block discarded – undo
26 26
   /**
27 27
    * BuddyParams constructor.
28 28
    *
29
-   * @param array $user
30 29
    */
31 30
   public function __construct(array $values = array()) {
32 31
     parent::__construct($values);
Please login to merge, or discard this patch.
classes/classCache.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -81,6 +81,10 @@  discard block
 block discarded – undo
81 81
   // -------------------------------------------------------------------------
82 82
   // Here comes low-level functions - those that directly works with cacher engines
83 83
   // -------------------------------------------------------------------------
84
+
85
+  /**
86
+   * @param string $name
87
+   */
84 88
   public function __set($name, $value) {
85 89
     switch ($name) {
86 90
       case '_MODE':
@@ -132,6 +136,9 @@  discard block
 block discarded – undo
132 136
     return null;
133 137
   }
134 138
 
139
+  /**
140
+   * @param string $name
141
+   */
135 142
   public function __isset($name) {
136 143
     switch (self::$mode) {
137 144
       case CACHER_NO_CACHE:
Please login to merge, or discard this patch.
classes/classLocale.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -173,6 +173,9 @@
 block discarded – undo
173 173
   }
174 174
 
175 175
 
176
+  /**
177
+   * @param string $path
178
+   */
176 179
   protected function lng_try_filepath($path, $file_path_relative) {
177 180
     $file_path = SN_ROOT_PHYSICAL . ($path && file_exists(SN_ROOT_PHYSICAL . $path . $file_path_relative) ? $path : '') . $file_path_relative;
178 181
     return file_exists($file_path) ? $file_path : false;
Please login to merge, or discard this patch.
classes/Common/snMath.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
    * @param int  $sigma
19 19
    * @param bool $strict
20 20
    *
21
-   * @return int
21
+   * @return double
22 22
    */
23 23
   public static function sn_rand_gauss($mu = 0, $sigma = 1, $strict = false) {
24 24
     // http://ru.wikipedia.org/wiki/Среднеквадратическое_отклонение
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
    *
43 43
    * @param float      $range_start - Начало диапазона
44 44
    * @param float      $range_end - Конец диапазона
45
-   * @param bool|int   $round - До скольки знаков округлять результат. False - не округлять, True - округлять до целого, 1 - округлять до десятков, 2 - до сотен итд
45
+   * @param boolean   $round - До скольки знаков округлять результат. False - не округлять, True - округлять до целого, 1 - округлять до десятков, 2 - до сотен итд
46 46
    * @param int        $strict - В сколько сигм надо уложить результат
47 47
    * @param bool|false $cut_extreme - надо ли обрезать крайние значения. Например, при $strict = 2 их слишком много
48 48
    *
Please login to merge, or discard this patch.
classes/Confirmation.php 1 patch
Doc Comments   +19 added lines patch added patch discarded remove patch
@@ -18,6 +18,11 @@  discard block
 block discarded – undo
18 18
 
19 19
   // TODO - НЕ ОБЯЗАТЕЛЬНО ОТПРАВЛЯТЬ ЧЕРЕЗ ЕМЕЙЛ! ЕСЛИ ЭТО ФЕЙСБУЧЕК ИЛИ ВКШЕЧКА - МОЖНО ЧЕРЕЗ ЛС ПИСАТЬ!!
20 20
   // TODO - OK 4.6
21
+
22
+  /**
23
+   * @param integer $confirmation_type_safe
24
+   * @param string $email_unsafe
25
+   */
21 26
   public function db_confirmation_get_latest_by_type_and_email($confirmation_type_safe, $email_unsafe) {
22 27
     $email_safe = $this->db->db_escape($email_unsafe);
23 28
 
@@ -26,12 +31,21 @@  discard block
 block discarded – undo
26 31
           `type` = {$confirmation_type_safe} AND `email` = '{$email_safe}' ORDER BY create_time DESC LIMIT 1;", true);
27 32
   }
28 33
   // TODO - OK 4.6
34
+
35
+  /**
36
+   * @param integer $confirmation_type_safe
37
+   */
29 38
   public function db_confirmation_delete_by_type_and_email($confirmation_type_safe, $email_unsafe) {
30 39
     $email_safe = $this->db->db_escape($email_unsafe);
31 40
 
32 41
     return $this->db->doquery("DELETE FROM {{confirmations}} WHERE `type` = {$confirmation_type_safe} AND `email` = '{$email_safe}'");
33 42
   }
34 43
   // TODO - OK 4.6
44
+
45
+  /**
46
+   * @param integer $confirmation_type_safe
47
+   * @param string $email_unsafe
48
+   */
35 49
   public function db_confirmation_get_unique_code_by_type_and_email($confirmation_type_safe, $email_unsafe) {
36 50
     $email_safe = $this->db->db_escape($email_unsafe);
37 51
 
@@ -50,6 +64,11 @@  discard block
 block discarded – undo
50 64
     return $confirm_code_unsafe;
51 65
   }
52 66
   // TODO - OK 4.6
67
+
68
+  /**
69
+   * @param integer $confirmation_type_safe
70
+   * @param string $confirmation_code_unsafe
71
+   */
53 72
   public function db_confirmation_get_by_type_and_code($confirmation_type_safe, $confirmation_code_unsafe) {
54 73
     $confirmation_code_safe = $this->db->db_escape($confirmation_code_unsafe);
55 74
 
Please login to merge, or discard this patch.
classes/core_auth.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -286,7 +286,6 @@  discard block
 block discarded – undo
286 286
   /**
287 287
    * Функция пытается залогиниться по всем известным провайдерам
288 288
    *
289
-   * @param null $result
290 289
    */
291 290
   public function login() {
292 291
     if(empty(sn_module::$sn_module_list['auth'])) {
@@ -823,10 +822,17 @@  discard block
 block discarded – undo
823 822
 
824 823
   // OK v4.5
825 824
   // TODO - REMEMBER_ME
825
+
826
+  /**
827
+   * @param integer $period
828
+   */
826 829
   protected static function cookie_set($value, $impersonate = false, $period = null) {
827 830
     sn_setcookie($impersonate ? SN_COOKIE_U_I : SN_COOKIE_U, $value, $period === null ? SN_TIME_NOW + PERIOD_YEAR : $period, SN_ROOT_RELATIVE);
828 831
   }
829 832
 
833
+  /**
834
+   * @param string $message
835
+   */
830 836
   protected static function flog($message, $die = false) {
831 837
     if(!defined('DEBUG_AUTH') || !DEBUG_AUTH) {
832 838
       return;
Please login to merge, or discard this patch.
classes/db_mysql.php 1 patch
Doc Comments   +28 added lines, -5 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
   /**
158 158
    * @param string $query
159 159
    *
160
-   * @return mixed|string
160
+   * @return string
161 161
    */
162 162
   public function replaceTablePlaceholders($query) {
163 163
     $sql = $query;
@@ -171,7 +171,7 @@  discard block
 block discarded – undo
171 171
   }
172 172
 
173 173
   /**
174
-   * @param $query
174
+   * @param string $query
175 175
    */
176 176
   protected function logQuery($query) {
177 177
     if (!classSupernova::$config->debug) {
@@ -286,6 +286,7 @@  discard block
 block discarded – undo
286 286
    * @param array  $fields
287 287
    * @param array  $where
288 288
    * @param bool   $isOneRecord
289
+   * @param boolean $forUpdate
289 290
    *
290 291
    * @return array|bool|mysqli_result|null
291 292
    */
@@ -331,6 +332,11 @@  discard block
 block discarded – undo
331 332
 
332 333
 
333 334
   // INSERT/REPLACE
335
+
336
+  /**
337
+   * @param string $table
338
+   * @param integer $replace
339
+   */
334 340
   protected function doSet($table, $fieldsAndValues, $replace = DB_INSERT_PLAIN) {
335 341
     $query = DbQuery::build($this)
336 342
       ->setTable($table)
@@ -368,6 +374,10 @@  discard block
 block discarded – undo
368 374
 
369 375
 
370 376
   // INSERTERS
377
+
378
+  /**
379
+   * @param string $query
380
+   */
371 381
   public function doInsertComplex($query) {
372 382
     return $this->doSql($query);
373 383
   }
@@ -387,7 +397,7 @@  discard block
 block discarded – undo
387 397
    * Values should be passed as-is
388 398
    *
389 399
    * @param string   $table
390
-   * @param array    $fields
400
+   * @param string[]    $fields
391 401
    * @param string[] $values
392 402
    *
393 403
    * @return array|bool|mysqli_result|null
@@ -440,7 +450,7 @@  discard block
 block discarded – undo
440 450
    * Self-contained - means no params used
441 451
    * Such queries usually used to make large amount of in-base calculations
442 452
    *
443
-   * @param $query
453
+   * @param string $query
444 454
    *
445 455
    * @return array|bool|mysqli_result|null
446 456
    */
@@ -457,13 +467,16 @@  discard block
 block discarded – undo
457 467
   }
458 468
 
459 469
   /**
460
-   * @param $DbQuery DbQuery
470
+   * @param DbQuery $DbQuery DbQuery
461 471
    */
462 472
   public function doUpdateDbQueryAdjust($DbQuery) {
463 473
     return $this->doUpdateDbQuery($DbQuery);
464 474
   }
465 475
 
466 476
 
477
+  /**
478
+   * @param boolean $isOneRecord
479
+   */
467 480
   protected function doUpdateWhere($table, $fieldsSet, $fieldsAdjust = array(), $where = array(), $isOneRecord = DB_RECORDS_ALL, $whereDanger = array()) {
468 481
     $query = DbQuery::build($this)
469 482
       ->setTable($table)
@@ -482,6 +495,9 @@  discard block
 block discarded – undo
482 495
     return $this->doUpdateWhere($table, $fieldsAndValues, array(), $where, DB_RECORD_ONE);
483 496
   }
484 497
 
498
+  /**
499
+   * @param string $table
500
+   */
485 501
   public function doUpdateTableSet($table, $fieldsAndValues, $where = array()) {
486 502
     return $this->doUpdateWhere($table, $fieldsAndValues, array(), $where, DB_RECORDS_ALL);
487 503
   }
@@ -597,6 +613,10 @@  discard block
 block discarded – undo
597 613
   }
598 614
 
599 615
   // TODO Заменить это на новый логгер
616
+
617
+  /**
618
+   * @param string $query
619
+   */
600 620
   protected function security_watch_user_queries($query) {
601 621
     global $user;
602 622
 
@@ -620,6 +640,9 @@  discard block
 block discarded – undo
620 640
   }
621 641
 
622 642
 
643
+  /**
644
+   * @param string $query
645
+   */
623 646
   public function security_query_check_bad_words($query) {
624 647
     if ($this->skipQueryCheck) {
625 648
       return;
Please login to merge, or discard this patch.
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.
classes/DbQueryConstructor.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -444,7 +444,6 @@  discard block
 block discarded – undo
444 444
   }
445 445
 
446 446
   /**
447
-   * @param bool $skip_query_check
448 447
    *
449 448
    * @return array
450 449
    */
@@ -455,7 +454,6 @@  discard block
 block discarded – undo
455 454
   }
456 455
 
457 456
   /**
458
-   * @param bool $skip_query_check
459 457
    *
460 458
    * @return mixed|null
461 459
    */
Please login to merge, or discard this patch.