Test Failed
Branch trunk (d809b8)
by SuperNova.WS
05:48
created
classes/DBStaticUnit.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -56,6 +56,9 @@  discard block
 block discarded – undo
56 56
     WHERE unit_player_id = {$user_id} AND unit_location_type = " . LOC_PLANET . " AND unit_level > 0 AND unit_snid IN (" . STRUC_LABORATORY . ", " . STRUC_LABORATORY_NANO . ");");
57 57
   }
58 58
 
59
+  /**
60
+   * @param string $set
61
+   */
59 62
   public static function db_unit_set_by_id($unit_id, $set) {
60 63
     return classSupernova::db_upd_record_by_id(LOC_UNIT, $unit_id, $set);
61 64
   }
@@ -69,6 +72,9 @@  discard block
 block discarded – undo
69 72
     return classSupernova::db_ins_record(LOC_UNIT, $set);
70 73
   }
71 74
 
75
+  /**
76
+   * @param integer $unit_location_type
77
+   */
72 78
   public static function db_unit_list_delete($user_id = 0, $unit_location_type, $unit_location_id = 0, $unit_snid = 0) {
73 79
     return classSupernova::db_del_record_list(LOC_UNIT,
74 80
       "`unit_location_type` = {$unit_location_type}" .
Please login to merge, or discard this patch.
classes/Vector/Vector.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -70,8 +70,8 @@
 block discarded – undo
70 70
   /**
71 71
    * Vector constructor.
72 72
    *
73
-   * @param int|string       $galaxy
74
-   * @param int|Vector|array $system
73
+   * @param integer       $galaxy
74
+   * @param integer $system
75 75
    * @param int              $planet
76 76
    * @param int              $type
77 77
    */
Please login to merge, or discard this patch.
classes/BBCodeParser.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -14,6 +14,9 @@
 block discarded – undo
14 14
     $this->design = $gc->design;
15 15
   }
16 16
 
17
+  /**
18
+   * @param integer $authorAccessLevel
19
+   */
17 20
   protected function applyElements($elements, $text, $authorAccessLevel = AUTH_LEVEL_REGISTERED) {
18 21
     foreach ($elements as $auth_level => $element) {
19 22
       if ($auth_level > $authorAccessLevel) {
Please login to merge, or discard this patch.
classes/classSupernova.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -309,7 +309,7 @@  discard block
 block discarded – undo
309 309
    *   <p>null - транзакция НЕ должна быть запущена</p>
310 310
    *   <p>true - транзакция должна быть запущена - для совместимости с $for_update</p>
311 311
    *   <p>false - всё равно - для совместимости с $for_update</p>
312
-   * @return bool Текущий статус транзакции
312
+   * @return null|boolean Текущий статус транзакции
313 313
    */
314 314
   public static function db_transaction_check($status = null) {
315 315
     $error_msg = false;
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
   /**
377 377
    * Блокирует указанные таблицу/список таблиц
378 378
    *
379
-   * @param string|array $tables Таблица/список таблиц для блокировки. Названия таблиц - без префиксов
379
+   * @param string $tables Таблица/список таблиц для блокировки. Названия таблиц - без префиксов
380 380
    * <p>string - название таблицы для блокировки</p>
381 381
    * <p>array - массив, где ключ - имя таблицы, а значение - условия блокировки элементов</p>
382 382
    */
Please login to merge, or discard this patch.
classes/Common/AccessorsV2.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -97,9 +97,7 @@
 block discarded – undo
97 97
   /**
98 98
    * Gets accessor for later use
99 99
    *
100
-   * @param string $accessor
101 100
    *
102
-   * @param string $varName
103 101
    *
104 102
    * @return callable|null
105 103
    */
Please login to merge, or discard this patch.
classes/DBAL/DbQuery.php 1 patch
Doc Comments   +9 added lines, -5 removed lines patch added patch discarded remove patch
@@ -94,6 +94,10 @@  discard block
 block discarded – undo
94 94
    * @param  null|\db_mysql $db
95 95
    */
96 96
   // TODO - $db should be supplied externally
97
+
98
+  /**
99
+   * @param db_mysql $db
100
+   */
97 101
   public function __construct($db = null) {
98 102
     $this->db = empty($db) ? classSupernova::$gc->db : $db;
99 103
   }
@@ -205,7 +209,7 @@  discard block
 block discarded – undo
205 209
 
206 210
 
207 211
   /**
208
-   * @param $table
212
+   * @param string $table
209 213
    *
210 214
    * @return $this
211 215
    */
@@ -313,7 +317,7 @@  discard block
 block discarded – undo
313 317
   /**
314 318
    * Wrapper for db_escape()
315 319
    *
316
-   * @param mixed $string
320
+   * @param string $string
317 321
    *
318 322
    * @return string
319 323
    */
@@ -344,7 +348,7 @@  discard block
 block discarded – undo
344 348
   /**
345 349
    * Quote mysql DB identifier
346 350
    *
347
-   * @param mixed $fieldName
351
+   * @param string $fieldName
348 352
    *
349 353
    * @return string
350 354
    */
@@ -391,7 +395,7 @@  discard block
 block discarded – undo
391 395
   /**
392 396
    * Quote table name with `{{ }}`
393 397
    *
394
-   * @param mixed $tableName
398
+   * @param string $tableName
395 399
    *
396 400
    * @return string
397 401
    */
@@ -438,7 +442,7 @@  discard block
 block discarded – undo
438 442
 
439 443
 
440 444
   /**
441
-   * @param $command
445
+   * @param string $command
442 446
    */
443 447
   protected function buildCommand($command) {
444 448
     switch ($this->command = $command) {
Please login to merge, or discard this patch.
classes/Design.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -42,6 +42,9 @@
 block discarded – undo
42 42
     $this->addSmiles($sn_data_smiles);
43 43
   }
44 44
 
45
+  /**
46
+   * @param integer $accessLevel
47
+   */
45 48
   protected function detectElementsFormat($elements, $accessLevel = AUTH_LEVEL_REGISTERED) {
46 49
     $firstElement = reset($elements);
47 50
     if (!is_array($firstElement)) {
Please login to merge, or discard this patch.
classes/SkinModel.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -70,6 +70,11 @@
 block discarded – undo
70 70
     return $this->getImageFrom($this->activeSkin->getName(), $image_tag, $template);
71 71
   }
72 72
 
73
+  /**
74
+   * @param string $skinName
75
+   * @param string $image_tag
76
+   * @param template|null $template
77
+   */
73 78
   public function getImageFrom($skinName, $image_tag, $template) {
74 79
     return $this->getSkin($skinName)->imageFromStringTag($image_tag, $template);
75 80
   }
Please login to merge, or discard this patch.
classes/template_compile.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -468,6 +468,7 @@  discard block
 block discarded – undo
468 468
   * Compile IF tags - much of this is from Smarty with
469 469
   * some adaptions for our block level methods
470 470
   * @access private
471
+  * @param boolean $elseif
471 472
   */
472 473
   function compile_tag_if($tag_args, $elseif)
473 474
   {
@@ -625,6 +626,7 @@  discard block
 block discarded – undo
625 626
   /**
626 627
   * Compile DEFINE tags
627 628
   * @access private
629
+  * @param boolean $op
628 630
   */
629 631
   function compile_tag_define($tag_args, $op)
630 632
   {
@@ -703,6 +705,7 @@  discard block
 block discarded – undo
703 705
   * parse expression
704 706
   * This is from Smarty
705 707
   * @access private
708
+  * @param string $is_arg
706 709
   */
707 710
   function _parse_is_expr($is_arg, $tokens)
708 711
   {
@@ -799,6 +802,8 @@  discard block
 block discarded – undo
799 802
   * If $include_last_iterator is true, then [$_childN_i] will be appended to the form shown above.
800 803
   * NOTE: does not expect a trailing "." on the blockname.
801 804
   * @access private
805
+  * @param string $blockname
806
+  * @param boolean $include_last_iterator
802 807
   */
803 808
   function generate_block_data_ref($blockname, $include_last_iterator, $defop = false)
804 809
   {
@@ -862,6 +867,7 @@  discard block
 block discarded – undo
862 867
   /**
863 868
   * Minifies template w/i PHP code by removing extra spaces
864 869
   * @access private
870
+  * @return string
865 871
   */
866 872
   function minify($html)
867 873
   {
Please login to merge, or discard this patch.