Passed
Push — work-fleets ( 6f822b...6dcfe4 )
by SuperNova.WS
06:31 queued 16s
created
includes/template.php 1 patch
Doc Comments   +7 added lines, -8 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
  * @param string    $title
37 37
  * @param string    $dest
38 38
  * @param int       $time
39
- * @param bool|true $show_header
39
+ * @param boolean $show_header
40 40
  */
41 41
 function message($mes, $title = 'Error', $dest = '', $time = 5, $show_header = true) {
42 42
   $template = gettemplate('message_body', true);
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
  * @param bool|true       $isDisplayTopNav
196 196
  * @param string          $metatags
197 197
  * @param bool|false      $AdminPage
198
- * @param bool|true       $isDisplayMenu
198
+ * @param boolean       $isDisplayMenu
199 199
  *
200 200
  * @return mixed
201 201
  */
@@ -208,7 +208,6 @@  discard block
 block discarded – undo
208 208
  * @param string          $title
209 209
  * @param bool|true       $isDisplayTopNav
210 210
  * @param string          $metatags
211
- * @param bool|false      $AdminPage
212 211
  * @param bool|true       $isDisplayMenu
213 212
  * @param bool|int|string $exitStatus - Код или сообщение выхода
214 213
  */
@@ -359,7 +358,7 @@  discard block
 block discarded – undo
359 358
 
360 359
 /**
361 360
  * @param $fileList
362
- * @param $extension
361
+ * @param string $extension
363 362
  * @param $sn_page_name
364 363
  * @param $template_result
365 364
  *
@@ -387,7 +386,7 @@  discard block
 block discarded – undo
387 386
 }
388 387
 
389 388
 /**
390
- * @return mixed|string
389
+ * @return string
391 390
  */
392 391
 function calculateFontSize() {
393 392
   $font_size = !empty($_COOKIE[SN_COOKIE_F]) ? $_COOKIE[SN_COOKIE_F] : classSupernova::$user_options[PLAYER_OPTION_BASE_FONT_SIZE];
@@ -406,10 +405,10 @@  discard block
 block discarded – undo
406 405
 
407 406
 /**
408 407
  * @param       $time
409
- * @param       $event
408
+ * @param       integer $event
410 409
  * @param       $msg
411 410
  * @param       $coordinates
412
- * @param       $is_decrease
411
+ * @param       boolean $is_decrease
413 412
  * @param Fleet $objFleet
414 413
  * @param       $fleet_flying_sorter
415 414
  * @param       $fleet_flying_events
@@ -733,7 +732,7 @@  discard block
 block discarded – undo
733 732
 }
734 733
 
735 734
 /**
736
- * @param array|string  $files
735
+ * @param string  $files
737 736
  * @param template|bool $template
738 737
  * @param string|bool   $template_path
739 738
  *
Please login to merge, or discard this patch.
classes/Account.php 1 patch
Doc Comments   +21 added lines patch added patch discarded remove patch
@@ -169,6 +169,10 @@  discard block
 block discarded – undo
169 169
    * @return bool
170 170
    */
171 171
   // OK v4.5
172
+
173
+  /**
174
+   * @param string $account_name_unsafe
175
+   */
172 176
   public function db_get_by_name($account_name_unsafe) {
173 177
     $this->reset();
174 178
 
@@ -205,6 +209,11 @@  discard block
 block discarded – undo
205 209
    *
206 210
    */
207 211
   // OK v4.5
212
+
213
+  /**
214
+   * @param string $account_name_unsafe
215
+   * @param string $email_unsafe
216
+   */
208 217
   public function db_get_by_name_or_email($account_name_unsafe, $email_unsafe) {
209 218
     $this->reset();
210 219
 
@@ -231,6 +240,13 @@  discard block
 block discarded – undo
231 240
    * @throws Exception
232 241
    */
233 242
   // OK v4.5
243
+
244
+  /**
245
+   * @param string $account_name_unsafe
246
+   * @param string $password_raw
247
+   * @param string $email_unsafe
248
+   * @param string $language_unsafe
249
+   */
234 250
   public function db_create($account_name_unsafe, $password_raw, $email_unsafe, $language_unsafe = null, $salt_unsafe = null) {
235 251
     $this->reset();
236 252
 
@@ -320,6 +336,11 @@  discard block
 block discarded – undo
320 336
    * @return int|string
321 337
    */
322 338
   // OK 4.8
339
+
340
+  /**
341
+   * @param integer $change_type
342
+   * @param double $metamatter
343
+   */
323 344
   protected function db_mm_log_insert($comment, $change_type, $metamatter, $user_id_unsafe) {
324 345
     $metamatter = round(floatval($metamatter));
325 346
 
Please login to merge, or discard this patch.
classes/classCache.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -93,6 +93,10 @@  discard block
 block discarded – undo
93 93
   // -------------------------------------------------------------------------
94 94
   // Here comes low-level functions - those that directly works with cacher engines
95 95
   // -------------------------------------------------------------------------
96
+
97
+  /**
98
+   * @param string $name
99
+   */
96 100
   public function __set($name, $value) {
97 101
     switch (self::$mode) {
98 102
       case CACHER_NO_CACHE:
@@ -119,6 +123,9 @@  discard block
 block discarded – undo
119 123
     return null;
120 124
   }
121 125
 
126
+  /**
127
+   * @param string $name
128
+   */
122 129
   public function __isset($name) {
123 130
     switch (self::$mode) {
124 131
       case CACHER_NO_CACHE:
Please login to merge, or discard this patch.
classes/Confirmation.php 1 patch
Doc Comments   +19 added lines patch added patch discarded remove patch
@@ -16,6 +16,11 @@  discard block
 block discarded – undo
16 16
 
17 17
   // TODO - НЕ ОБЯЗАТЕЛЬНО ОТПРАВЛЯТЬ ЧЕРЕЗ ЕМЕЙЛ! ЕСЛИ ЭТО ФЕЙСБУЧЕК ИЛИ ВКШЕЧКА - МОЖНО ЧЕРЕЗ ЛС ПИСАТЬ!!
18 18
   // TODO - OK 4.6
19
+
20
+  /**
21
+   * @param integer $confirmation_type_safe
22
+   * @param string $email_unsafe
23
+   */
19 24
   public function db_confirmation_get_latest_by_type_and_email($confirmation_type_safe, $email_unsafe) {
20 25
     $email_safe = $this->db->db_escape($email_unsafe);
21 26
 
@@ -25,10 +30,19 @@  discard block
 block discarded – undo
25 30
     );
26 31
   }
27 32
   // TODO - OK 4.6
33
+
34
+  /**
35
+   * @param integer $confirmation_type_safe
36
+   */
28 37
   public function db_confirmation_delete_by_type_and_email($confirmation_type_safe, $email_unsafe) {
29 38
     return $this->db->doDeleteWhere(TABLE_CONFIRMATIONS, array('type' => $confirmation_type_safe, 'email' => $email_unsafe));
30 39
   }
31 40
   // TODO - OK 4.6
41
+
42
+  /**
43
+   * @param integer $confirmation_type_safe
44
+   * @param string $email_unsafe
45
+   */
32 46
   public function db_confirmation_get_unique_code_by_type_and_email($confirmation_type_safe, $email_unsafe) {
33 47
     do {
34 48
       // Ну, если у нас > 999.999 подтверждений - тут нас ждут проблемы...
@@ -45,6 +59,11 @@  discard block
 block discarded – undo
45 59
     return $confirm_code_unsafe;
46 60
   }
47 61
   // TODO - OK 4.6
62
+
63
+  /**
64
+   * @param integer $confirmation_type_safe
65
+   * @param string $confirmation_code_unsafe
66
+   */
48 67
   public function db_confirmation_get_by_type_and_code($confirmation_type_safe, $confirmation_code_unsafe) {
49 68
     $confirmation_code_safe = $this->db->db_escape($confirmation_code_unsafe);
50 69
 
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
@@ -285,7 +285,6 @@  discard block
 block discarded – undo
285 285
   /**
286 286
    * Функция пытается залогиниться по всем известным провайдерам
287 287
    *
288
-   * @param null $result
289 288
    */
290 289
   public function login() {
291 290
     if (empty(sn_module::$sn_module_list['auth'])) {
@@ -819,10 +818,17 @@  discard block
 block discarded – undo
819 818
 
820 819
   // OK v4.5
821 820
   // TODO - REMEMBER_ME
821
+
822
+  /**
823
+   * @param integer $period
824
+   */
822 825
   protected static function cookie_set($value, $impersonate = false, $period = null) {
823 826
     sn_setcookie($impersonate ? SN_COOKIE_U_I : SN_COOKIE_U, $value, $period === null ? SN_TIME_NOW + PERIOD_YEAR : $period, SN_ROOT_RELATIVE);
824 827
   }
825 828
 
829
+  /**
830
+   * @param string $message
831
+   */
826 832
   protected static function flog($message, $die = false) {
827 833
     if (!defined('DEBUG_AUTH') || !DEBUG_AUTH) {
828 834
       return;
Please login to merge, or discard this patch.
classes/DbRowDirectOperator.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -186,6 +186,9 @@
 block discarded – undo
186 186
   }
187 187
 
188 188
 
189
+  /**
190
+   * @param string $table
191
+   */
189 192
   public function doUpdateRowSetAffected($table, $fieldsAndValues, $where) {
190 193
     $this->db->doUpdateRowSet($table, $fieldsAndValues, $where);
191 194
 
Please login to merge, or discard this patch.
classes/DBStatic/DBStaticAlly.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -364,7 +364,7 @@
 block discarded – undo
364 364
   }
365 365
 
366 366
   /**
367
-   * @param $ranklist
367
+   * @param string $ranklist
368 368
    * @param $userAllyId
369 369
    */
370 370
   public static function db_ally_update_ranklist($ranklist, $userAllyId) {
Please login to merge, or discard this patch.
classes/DBStatic/DBStaticFleetACS.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
 
88 88
 
89 89
   /**
90
-   * @param $fleet_group_id_list
90
+   * @param string $fleet_group_id_list
91 91
    */
92 92
   public static function db_acs_delete_by_list($fleet_group_id_list) {
93 93
     classSupernova::$db->doDeleteDanger(
Please login to merge, or discard this patch.
classes/DBStatic/DBStaticFleetMissile.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -6,6 +6,10 @@
 block discarded – undo
6 6
 
7 7
 class DBStaticFleetMissile {
8 8
 
9
+  /**
10
+   * @param double $arrival
11
+   * @param integer $target_structure
12
+   */
9 13
   public static function db_missile_insert($target_coord, $user, $planetrow, $arrival, $fleet_ship_count, $target_structure) {
10 14
     classSupernova::$db->doInsertSet(TABLE_MISSILES, array(
11 15
       'fleet_target_owner' => $target_coord['id_owner'],
Please login to merge, or discard this patch.