Test Failed
Branch trunk (c9c94d)
by SuperNova.WS
10:03 queued 05:45
created
classes/sn_module_payment.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -702,7 +702,7 @@  discard block
 block discarded – undo
702 702
    * Рассчёт бонуса ММ
703 703
    *
704 704
    * @param            $dark_matter
705
-   * @param bool|true  $direct
705
+   * @param boolean  $direct
706 706
    * @param bool|false $return_bonus
707 707
    *
708 708
    * @return float|int
@@ -738,6 +738,12 @@  discard block
 block discarded – undo
738 738
 
739 739
   // Дополнительная ре-трансляция адреса, если в каком-то случае платежная система ожидает нелогичный ответ
740 740
   // Пример: иксолла при неправильно заданном пользователе в ордере ожидает НЕПРАВИЛЬНЫЙ_ОРДЕР, а не НЕПРАВИЛЬНЫЙ_ПОЛЬЗОВАТЕЛЬ
741
+
742
+  /**
743
+   * @param integer $error_code
744
+   *
745
+   * @return integer|null
746
+   */
741 747
   function retranslate_error($error_code, $options = array()) {
742 748
     return isset($options['retranslate_error'][$error_code]) ? $options['retranslate_error'][$error_code] : $error_code;
743 749
   }
Please login to merge, or discard this patch.
classes/template.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -103,6 +103,7 @@
 block discarded – undo
103 103
   /**
104 104
   * Set custom template location (able to use directory outside of phpBB)
105 105
   * @access public
106
+  * @param string $template_path
106 107
   */
107 108
   function set_custom_template($template_path, $template_name, $fallback_template_path = false)
108 109
   {
Please login to merge, or discard this patch.
classes/userOptions.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -151,6 +151,9 @@
 block discarded – undo
151 151
   }
152 152
 
153 153
 
154
+  /**
155
+   * @param integer $user_id
156
+   */
154 157
   public function __construct($user_id) {
155 158
     $this->user_change($user_id);
156 159
   }
Please login to merge, or discard this patch.
classes/Account.php 1 patch
Doc Comments   +23 added lines patch added patch discarded remove patch
@@ -179,6 +179,10 @@  discard block
 block discarded – undo
179 179
    * @return bool
180 180
    */
181 181
   // OK v4.5
182
+
183
+  /**
184
+   * @param string $account_name_unsafe
185
+   */
182 186
   public function db_get_by_name($account_name_unsafe) {
183 187
     $this->reset();
184 188
 
@@ -217,6 +221,11 @@  discard block
 block discarded – undo
217 221
    *
218 222
    */
219 223
   // OK v4.5
224
+
225
+  /**
226
+   * @param string $account_name_unsafe
227
+   * @param string $email_unsafe
228
+   */
220 229
   public function db_get_by_name_or_email($account_name_unsafe, $email_unsafe) {
221 230
     $this->reset();
222 231
 
@@ -232,6 +241,13 @@  discard block
 block discarded – undo
232 241
    * @throws Exception
233 242
    */
234 243
   // OK v4.5
244
+
245
+  /**
246
+   * @param string $account_name_unsafe
247
+   * @param string $password_raw
248
+   * @param string $email_unsafe
249
+   * @param string $language_unsafe
250
+   */
235 251
   public function db_create($account_name_unsafe, $password_raw, $email_unsafe, $language_unsafe = null, $salt_unsafe = null) {
236 252
     $this->reset();
237 253
 
@@ -326,6 +342,10 @@  discard block
 block discarded – undo
326 342
    * @return int|string
327 343
    */
328 344
   // OK 4.8
345
+
346
+  /**
347
+   * @param double $metamatter
348
+   */
329 349
   protected function db_mm_log_insert($comment, $change_type, $metamatter, $user_id_unsafe) {
330 350
     $provider_id_safe = intval(core_auth::$main_provider->provider_id);
331 351
     //$account_id_safe = $this->db->db_escape($this->account_id);
@@ -493,6 +513,9 @@  discard block
 block discarded – undo
493 513
     return false;
494 514
   }
495 515
 
516
+  /**
517
+   * @param string $password
518
+   */
496 519
   protected function password_encode_for_cookie($password) {
497 520
     return md5("{$password}--" . $this->secret_word);
498 521
   }
Please login to merge, or discard this patch.
classes/auth_local.php 1 patch
Doc Comments   +8 added lines, -2 removed lines patch added patch discarded remove patch
@@ -138,7 +138,6 @@  discard block
 block discarded – undo
138 138
    * Попытка залогиниться с использованием метода $method
139 139
    * @version 4.5
140 140
    *
141
-   * @param string $method_name
142 141
    */
143 142
   public function login() {
144 143
     // TODO Проверяем поддерживаемость метода
@@ -163,7 +162,7 @@  discard block
 block discarded – undo
163 162
    *
164 163
    * @param      $old_password_unsafe
165 164
    * @param      $new_password_unsafe
166
-   * @param null $salt_unsafe
165
+   * @param string $salt_unsafe
167 166
    *
168 167
    * @return array|bool|resource
169 168
    */
@@ -176,6 +175,9 @@  discard block
 block discarded – undo
176 175
     return $result;
177 176
   }
178 177
 
178
+  /**
179
+   * @param Account $account_to_impersonate
180
+   */
179 181
   public function impersonate($account_to_impersonate) {
180 182
     $this->cookie_set($account_to_impersonate);
181 183
   }
@@ -662,6 +664,10 @@  discard block
 block discarded – undo
662 664
   protected function make_random_password() {
663 665
     return core_auth::make_random_password();
664 666
   }
667
+
668
+  /**
669
+   * @param string $message
670
+   */
665 671
   protected function flog($message, $die = false) {
666 672
     if(!defined('DEBUG_AUTH') || !DEBUG_AUTH) {
667 673
       return;
Please login to merge, or discard this patch.
classes/classPersistent.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -41,6 +41,9 @@  discard block
 block discarded – undo
41 41
     return self::$cacheObject;
42 42
   }
43 43
 
44
+  /**
45
+   * @param string $index
46
+   */
44 47
   public function db_loadItem($index) {
45 48
     $result = null;
46 49
     if($index) {
@@ -80,6 +83,9 @@  discard block
 block discarded – undo
80 83
     $this->db_saveItem(array_combine(array_keys($this->defaults), array_fill(0, count($this->defaults), null)));
81 84
   }
82 85
 
86
+  /**
87
+   * @param integer $value
88
+   */
83 89
   public function db_saveItem($item_list, $value = NULL) {
84 90
     if(empty($item_list)) {
85 91
       return;
Please login to merge, or discard this patch.
classes/core_auth.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -829,10 +829,17 @@
 block discarded – undo
829 829
 
830 830
   // OK v4.5
831 831
   // TODO - REMEMBER_ME
832
+
833
+  /**
834
+   * @param integer $period
835
+   */
832 836
   protected static function cookie_set($value, $impersonate = false, $period = null) {
833 837
     sn_setcookie($impersonate ? SN_COOKIE_U_I : SN_COOKIE_U, $value, $period === null ? SN_TIME_NOW + PERIOD_YEAR : $period, SN_ROOT_RELATIVE);
834 838
   }
835 839
 
840
+  /**
841
+   * @param string $message
842
+   */
836 843
   protected static function flog($message, $die = false) {
837 844
     if(!defined('DEBUG_AUTH') || !DEBUG_AUTH) {
838 845
       return;
Please login to merge, or discard this patch.
classes/db_mysql.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -180,6 +180,9 @@  discard block
 block discarded – undo
180 180
   }
181 181
 
182 182
 
183
+  /**
184
+   * @param string $query
185
+   */
183 186
   function security_watch_user_queries($query) {
184 187
     // TODO Заменить это на новый логгер
185 188
     global $config, $is_watching, $user, $debug;
@@ -202,6 +205,9 @@  discard block
 block discarded – undo
202 205
   }
203 206
 
204 207
 
208
+  /**
209
+   * @param string $query
210
+   */
205 211
   function security_query_check_bad_words($query) {
206 212
     global $user, $dm_change_legit, $mm_change_legit;
207 213
 
Please login to merge, or discard this patch.
classes/db_mysql_v4.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -55,6 +55,9 @@
 block discarded – undo
55 55
     return true;
56 56
   }
57 57
 
58
+  /**
59
+   * @param string $query_string
60
+   */
58 61
   function mysql_query($query_string) {
59 62
     return mysql_query($query_string, $this->link);
60 63
   }
Please login to merge, or discard this patch.