Test Failed
Push — master ( ce0b35...038e9c )
by Michael
12:03
created
htdocs/kernel/notification.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -412,8 +412,8 @@  discard block
 block discarded – undo
412 412
     // Also, should we have get by module, get by category, etc...??
413 413
     /**
414 414
      * @param $module_id
415
-     * @param $category
416
-     * @param $item_id
415
+     * @param string $category
416
+     * @param integer $item_id
417 417
      * @param $event
418 418
      * @param $user_id
419 419
      *
@@ -476,7 +476,7 @@  discard block
 block discarded – undo
476 476
      * @param int    $user_id   ID of the user (default to current user)
477 477
      *                          *
478 478
      *
479
-     * @return bool
479
+     * @return false|null
480 480
      */
481 481
     public function subscribe($category, $item_id, $events, $mode = null, $module_id = null, $user_id = null)
482 482
     {
@@ -632,7 +632,7 @@  discard block
 block discarded – undo
632 632
      * @param  array $user_list
633 633
      * @param  int   $module_id
634 634
      * @param  int   $omit_user_id
635
-     * @return mixed
635
+     * @return false|null
636 636
      */
637 637
     public function triggerEvent($category, $item_id, $event, $extra_tags = array(), $user_list = array(), $module_id = null, $omit_user_id = null)
638 638
     {
Please login to merge, or discard this patch.
htdocs/modules/system/class/maintenance.php 1 patch
Doc Comments   +12 added lines, -6 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
      *
143 143
      * @param array tables 'list of tables'
144 144
      * @param array maintenance 'optimize, check, repair, analyze'
145
-     * @return array
145
+     * @return string
146 146
      */
147 147
     public function CheckRepairAnalyzeOptimizeQueries($tables, $maintenance)
148 148
     {
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
      *
215 215
      * @param array tables 'list of tables'
216 216
      * @param int   drop
217
-     * @return array 'ret[0] = dump, ret[1] = display result
217
+     * @return string[] 'ret[0] = dump, ret[1] = display result
218 218
      */
219 219
     public function dump_tables($tables, $drop)
220 220
     {
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
      *
244 244
      * @param array modules 'list of modules'
245 245
      * @param int   drop
246
-     * @return array 'ret[0] = dump, ret[1] = display result
246
+     * @return string[] 'ret[0] = dump, ret[1] = display result
247 247
      */
248 248
     public function dump_modules($modules, $drop)
249 249
     {
@@ -285,7 +285,10 @@  discard block
 block discarded – undo
285 285
      * @param string table
286 286
      * @param int    drop
287 287
      * @param string class
288
-     * @return array 'ret[0] = dump, ret[1] = display result
288
+     * @param string[] $ret
289
+     * @param string $table
290
+     * @param string $class
291
+     * @return string[] 'ret[0] = dump, ret[1] = display result
289 292
      */
290 293
     public function dump_table_structure($ret, $table, $drop, $class)
291 294
     {
@@ -314,7 +317,9 @@  discard block
 block discarded – undo
314 317
      *
315 318
      * @param array
316 319
      * @param string table
317
-     * @return array 'ret[0] = dump, ret[1] = display result
320
+     * @param string[] $ret
321
+     * @param string $table
322
+     * @return string[] 'ret[0] = dump, ret[1] = display result
318 323
      */
319 324
     public function dump_table_datas($ret, $table)
320 325
     {
@@ -379,7 +384,8 @@  discard block
 block discarded – undo
379 384
      * Dump Write
380 385
      *
381 386
      * @param array
382
-     * @return array 'ret[0] = dump, ret[1] = display result
387
+     * @param string[] $ret
388
+     * @return string[] 'ret[0] = dump, ret[1] = display result
383 389
      */
384 390
     public function dump_write($ret)
385 391
     {
Please login to merge, or discard this patch.
htdocs/xoops_lib/modules/protector/class/protector.php 1 patch
Doc Comments   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
 
115 115
     /**
116 116
      * @param $val
117
-     * @param $key
117
+     * @param string $key
118 118
      */
119 119
     protected function _initial_recursive($val, $key)
120 120
     {
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
      * @param bool   $unique_check
255 255
      * @param int    $level
256 256
      *
257
-     * @return bool
257
+     * @return boolean|null
258 258
      */
259 259
     public function output_log($type = 'UNKNOWN', $uid = 0, $unique_check = false, $level = 1)
260 260
     {
@@ -304,7 +304,7 @@  discard block
 block discarded – undo
304 304
     }
305 305
 
306 306
     /**
307
-     * @param $expire
307
+     * @param integer $expire
308 308
      *
309 309
      * @return bool
310 310
      */
@@ -326,7 +326,7 @@  discard block
 block discarded – undo
326 326
     }
327 327
 
328 328
     /**
329
-     * @return mixed
329
+     * @return integer
330 330
      */
331 331
     public function get_bwlimit()
332 332
     {
@@ -1094,7 +1094,7 @@  discard block
 block discarded – undo
1094 1094
      * @param int  $uid
1095 1095
      * @param bool $can_ban
1096 1096
      *
1097
-     * @return bool
1097
+     * @return boolean|null
1098 1098
      */
1099 1099
     public function check_dos_attack($uid = 0, $can_ban = false)
1100 1100
     {
@@ -1334,7 +1334,7 @@  discard block
 block discarded – undo
1334 1334
     }
1335 1335
 
1336 1336
     /**
1337
-     * @param $points4deny
1337
+     * @param integer $points4deny
1338 1338
      * @param $uid
1339 1339
      */
1340 1340
     public function spam_check($points4deny, $uid)
@@ -1445,10 +1445,10 @@  discard block
 block discarded – undo
1445 1445
     }
1446 1446
 
1447 1447
     /**
1448
-     * @param        $type
1448
+     * @param        string $type
1449 1449
      * @param string $dying_message
1450 1450
      *
1451
-     * @return int|mixed
1451
+     * @return null|integer
1452 1452
      */
1453 1453
     public function call_filter($type, $dying_message = '')
1454 1454
     {
Please login to merge, or discard this patch.
modules/protector/filters_disabled/postcommon_post_stopforumspam.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     protected $minimumConfidence = 65.0; // set at your desired threshold
24 24
 
25 25
     /**
26
-     * @return bool
26
+     * @return boolean|null
27 27
      */
28 28
     public function execute()
29 29
     {
Please login to merge, or discard this patch.
htdocs/modules/system/class/fineuploadhandler.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -62,6 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
     /**
64 64
      * Get the original filename
65
+     * @return string
65 66
      */
66 67
     public function getName()
67 68
     {
@@ -269,6 +270,9 @@  discard block
 block discarded – undo
269 270
         }
270 271
     }
271 272
 
273
+    /**
274
+     * @param string $mimeType
275
+     */
272 276
     protected function storeUploadedFile($target, $mimeType, $uuid)
273 277
     {
274 278
         if (!is_dir(dirname($target))) {
Please login to merge, or discard this patch.
modules/protector/filters_disabled/postcommon_register_stopforumspam.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     protected $minimumConfidence = 65.0; // set at your desired threshold
24 24
 
25 25
     /**
26
-     * @return bool
26
+     * @return boolean|null
27 27
      */
28 28
     public function execute()
29 29
     {
Please login to merge, or discard this patch.