Passed
Pull Request — development (#395)
by Thomas
08:57
created
htdocs/src/Oc/SmartyPlugins/prefilter.t.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -91,10 +91,10 @@  discard block
 block discarded – undo
91 91
  *
92 92
  */
93 93
 /**
94
- * @param $block
95
- * @param $message
94
+ * @param string $block
95
+ * @param string $message
96 96
  * @param $smarty
97
- * @param $line
97
+ * @param integer $line
98 98
  *
99 99
  * @return string
100 100
  */
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
 
269 269
 /**
270 270
  * @param $haystack
271
- * @param $needles
271
+ * @param string[] $needles
272 272
  *
273 273
  * @return bool|int
274 274
  */
Please login to merge, or discard this patch.
htdocs/lib/clicompatbase.inc.php 1 patch
Doc Comments   +31 added lines patch added patch discarded remove patch
@@ -64,6 +64,12 @@  discard block
 block discarded – undo
64 64
 // prepare EMail-From
65 65
 $emailheaders = 'From: "' . $emailaddr . '" <' . $emailaddr . '>';
66 66
 
67
+/**
68
+ * @param string $module
69
+ * @param integer $eventid
70
+ * @param integer $objectid2
71
+ * @param string $logtext
72
+ */
67 73
 function logentry($module, $eventid, $userid, $objectid1, $objectid2, $logtext, $details)
68 74
 {
69 75
     sql(
@@ -104,6 +110,9 @@  discard block
 block discarded – undo
104 110
     sql_error();
105 111
 }
106 112
 
113
+/**
114
+ * @param string $sql
115
+ */
107 116
 function sqlValue($sql, $default)
108 117
 {
109 118
     $rs = sql($sql);
@@ -132,11 +141,21 @@  discard block
 block discarded – undo
132 141
     }
133 142
 }
134 143
 
144
+/**
145
+ * @param string $name
146
+ * @param string $default
147
+ *
148
+ * @return string
149
+ */
135 150
 function getSysConfig($name, $default)
136 151
 {
137 152
     return sqlValue('SELECT `value` FROM `sysconfig` WHERE `name`=\'' . sql_escape($name) . '\'', $default);
138 153
 }
139 154
 
155
+/**
156
+ * @param string $name
157
+ * @param string $value
158
+ */
140 159
 function setSysConfig($name, $value)
141 160
 {
142 161
     if (sqlValue('SELECT COUNT(*) FROM sysconfig WHERE name=\'' . sql_escape($name) . '\'', 0) == 1) {
@@ -448,6 +467,9 @@  discard block
 block discarded – undo
448 467
     die('sql_error');
449 468
 }
450 469
 
470
+/**
471
+ * @param string $warnmessage
472
+ */
451 473
 function sql_warn($warnmessage)
452 474
 {
453 475
     global $sql_errormail;
@@ -470,6 +492,9 @@  discard block
 block discarded – undo
470 492
 /*
471 493
     Ersatz für die in Mysql eingebauten Funktionen
472 494
 */
495
+/**
496
+ * @param resource $rs
497
+ */
473 498
 function sql_fetch_array($rs)
474 499
 {
475 500
     return mysql_fetch_array($rs);
@@ -485,6 +510,9 @@  discard block
 block discarded – undo
485 510
     return mysql_fetch_row($rs);
486 511
 }
487 512
 
513
+/**
514
+ * @param resource $rs
515
+ */
488 516
 function sql_fetch_column($rs)
489 517
 {
490 518
     $col = [];
@@ -694,6 +722,9 @@  discard block
 block discarded – undo
694 722
     ];
695 723
 }
696 724
 
725
+/**
726
+ * @param string $filename
727
+ */
697 728
 function fetch_email_template($filename, $language, $domain)
698 729
 {
699 730
     global $opt, $rootpath;
Please login to merge, or discard this patch.
htdocs/lib2/db.inc.php 1 patch
Doc Comments   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
 }
347 347
 
348 348
 /**
349
- * @param $sql
349
+ * @param string $sql
350 350
  *
351 351
  * @return resource
352 352
  */
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
 }
365 365
 
366 366
 /**
367
- * @param $sql
367
+ * @param string $sql
368 368
  *
369 369
  * @return resource
370 370
  */
@@ -382,7 +382,7 @@  discard block
 block discarded – undo
382 382
 }
383 383
 
384 384
 /**
385
- * @param $sql
385
+ * @param string $sql
386 386
  *
387 387
  * @return resource
388 388
  */
@@ -400,8 +400,8 @@  discard block
 block discarded – undo
400 400
 }
401 401
 
402 402
 /**
403
- * @param $sql
404
- * @param $default
403
+ * @param string $sql
404
+ * @param integer $default
405 405
  *
406 406
  * @return mixed
407 407
  */
@@ -419,8 +419,8 @@  discard block
 block discarded – undo
419 419
 }
420 420
 
421 421
 /**
422
- * @param $sql
423
- * @param $default
422
+ * @param string $sql
423
+ * @param integer $default
424 424
  *
425 425
  * @return mixed
426 426
  */
@@ -440,7 +440,7 @@  discard block
 block discarded – undo
440 440
 /**
441 441
  * @param $value
442 442
  *
443
- * @return mixed|string
443
+ * @return string
444 444
  */
445 445
 function sql_escape($value)
446 446
 {
@@ -465,7 +465,7 @@  discard block
 block discarded – undo
465 465
 /**
466 466
  * @param $value
467 467
  *
468
- * @return mixed|string
468
+ * @return string
469 469
  */
470 470
 function sql_escape_backtick($value)
471 471
 {
@@ -522,7 +522,7 @@  discard block
 block discarded – undo
522 522
 }
523 523
 
524 524
 /**
525
- * @param $bQuerySlave
525
+ * @param boolean $bQuerySlave
526 526
  * @param $sql
527 527
  * @param $default
528 528
  *
@@ -571,7 +571,7 @@  discard block
 block discarded – undo
571 571
     (includes database charset conversion)
572 572
 */
573 573
 /**
574
- * @param $rs
574
+ * @param resource $rs
575 575
  *
576 576
  * @return array
577 577
  */
@@ -611,7 +611,7 @@  discard block
 block discarded – undo
611 611
 }
612 612
 
613 613
 /**
614
- * @param $rs
614
+ * @param resource $rs
615 615
  *
616 616
  * @return array
617 617
  */
@@ -648,7 +648,7 @@  discard block
 block discarded – undo
648 648
 }
649 649
 
650 650
 /**
651
- * @param $rs
651
+ * @param resource $rs
652 652
  *
653 653
  * @return array
654 654
  */
@@ -719,7 +719,7 @@  discard block
 block discarded – undo
719 719
 }
720 720
 
721 721
 /**
722
- * @param $rs
722
+ * @param resource $rs
723 723
  *
724 724
  * @return int
725 725
  */
@@ -729,7 +729,7 @@  discard block
 block discarded – undo
729 729
 }
730 730
 
731 731
 /**
732
- * @param $table
732
+ * @param string $table
733 733
  */
734 734
 function sql_temp_table($table)
735 735
 {
@@ -761,7 +761,7 @@  discard block
 block discarded – undo
761 761
 }
762 762
 
763 763
 /**
764
- * @param $table
764
+ * @param string $table
765 765
  */
766 766
 function sql_temp_table_slave($table)
767 767
 {
@@ -784,7 +784,7 @@  discard block
 block discarded – undo
784 784
 }
785 785
 
786 786
 /**
787
- * @param $table
787
+ * @param string $table
788 788
  */
789 789
 function sql_drop_temp_table($table)
790 790
 {
@@ -827,7 +827,7 @@  discard block
 block discarded – undo
827 827
 }
828 828
 
829 829
 /**
830
- * @param $table
830
+ * @param string $table
831 831
  */
832 832
 function sql_drop_temp_table_slave($table)
833 833
 {
@@ -1227,7 +1227,7 @@  discard block
 block discarded – undo
1227 1227
 }
1228 1228
 
1229 1229
 /**
1230
- * @param $warnmessage
1230
+ * @param string $warnmessage
1231 1231
  */
1232 1232
 function sql_warn($warnmessage)
1233 1233
 {
@@ -1258,7 +1258,7 @@  discard block
 block discarded – undo
1258 1258
 
1259 1259
 /**
1260 1260
  * @param $f
1261
- * @param $rs
1261
+ * @param resource $rs
1262 1262
  * @param $table
1263 1263
  * @param bool $truncate
1264 1264
  */
@@ -1293,7 +1293,7 @@  discard block
 block discarded – undo
1293 1293
 }
1294 1294
 
1295 1295
 /**
1296
- * @param $f
1296
+ * @param resource $f
1297 1297
  * @param $table
1298 1298
  */
1299 1299
 function sql_export_table($f, $table)
@@ -1318,8 +1318,8 @@  discard block
 block discarded – undo
1318 1318
 }
1319 1319
 
1320 1320
 /**
1321
- * @param $filename
1322
- * @param $tables
1321
+ * @param string $filename
1322
+ * @param string[] $tables
1323 1323
  */
1324 1324
 function sql_export_tables_to_file($filename, $tables)
1325 1325
 {
@@ -1353,7 +1353,7 @@  discard block
 block discarded – undo
1353 1353
 }
1354 1354
 
1355 1355
 /**
1356
- * @param $f
1356
+ * @param resource $f
1357 1357
  * @param $table
1358 1358
  */
1359 1359
 function sql_export_structure($f, $table)
@@ -1372,7 +1372,7 @@  discard block
 block discarded – undo
1372 1372
 }
1373 1373
 
1374 1374
 /**
1375
- * @param $filename
1375
+ * @param string $filename
1376 1376
  * @param $table
1377 1377
  */
1378 1378
 function sql_export_structure_to_file($filename, $table)
@@ -1472,7 +1472,7 @@  discard block
 block discarded – undo
1472 1472
 
1473 1473
 // test if a function or procedure exists
1474 1474
 /**
1475
- * @param $type
1475
+ * @param string $type
1476 1476
  * @param $name
1477 1477
  *
1478 1478
  * @return bool
Please login to merge, or discard this patch.
htdocs/lib2/menu.class.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
     }
281 281
 
282 282
     /**
283
-     * @param $menuid
283
+     * @param integer|null $menuid
284 284
      * @param $ids
285 285
      * @param $items
286 286
      */
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
     }
303 303
 
304 304
     /**
305
-     * @return array
305
+     * @return integer[]
306 306
      */
307 307
     public function GetSelectedMenuIds()
308 308
     {
Please login to merge, or discard this patch.
htdocs/lib2/pager.class.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      * Use {page} in link_url als placeholder for the selected page number
25 25
      * and/or {offset} for the 0-based data offset of the selected page.
26 26
      *
27
-     * @param $link_url
27
+     * @param string $link_url
28 28
      * @param int $min_pages_shown
29 29
      * @param int $max_pages_shown
30 30
      */
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
 
43 43
 
44 44
     /**
45
-     * @param $current_page
46
-     * @param $total_pages
45
+     * @param double $current_page
46
+     * @param double $total_pages
47 47
      * @param bool $page_size
48 48
      */
49 49
     public function make_from_pagenr($current_page, $total_pages, $page_size = false)
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 
117 117
     /**
118 118
      * @param $page
119
-     * @param $page_size
119
+     * @param boolean $page_size
120 120
      *
121 121
      * @return string
122 122
      */
Please login to merge, or discard this patch.
htdocs/lib2/rowEditor.class.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -490,7 +490,7 @@
 block discarded – undo
490 490
     }
491 491
 
492 492
     /**
493
-     * @return bool
493
+     * @return boolean|null
494 494
      */
495 495
     public function getAnyChanged()
496 496
     {
Please login to merge, or discard this patch.
htdocs/lib2/translate_filescan.class.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,8 +86,8 @@  discard block
 block discarded – undo
86 86
     }
87 87
 
88 88
     /**
89
-     * @param $sCode
90
-     * @param $nStartSearch
89
+     * @param string $sCode
90
+     * @param integer $nStartSearch
91 91
      *
92 92
      * @return bool|int
93 93
      */
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
     // TODO: performance ... scan once at __construct and store line positions
134 134
     /**
135
-     * @param $nPos
135
+     * @param integer $nPos
136 136
      *
137 137
      * @return int
138 138
      */
Please login to merge, or discard this patch.
htdocs/lib2/translationHandler.class.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -236,8 +236,8 @@  discard block
 block discarded – undo
236 236
      * import variables for substition from config2/nodetext/
237 237
      *
238 238
      * @param $variables
239
-     * @param $file
240
-     * @param $language
239
+     * @param string $file
240
+     * @param string $language
241 241
      *
242 242
      * @return bool
243 243
      */
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
 
270 270
     /**
271 271
      * @param $variables
272
-     * @param $lang
272
+     * @param string $lang
273 273
      * @param $str
274 274
      *
275 275
      * @return string
Please login to merge, or discard this patch.
htdocs/src/Oc/Session/SessionDataCookie.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     }
64 64
 
65 65
     /**
66
-     * @param $name
66
+     * @param string $name
67 67
      * @param null $default
68 68
      *
69 69
      * @return mixed|null
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     }
75 75
 
76 76
     /**
77
-     * @param $name
77
+     * @param string $name
78 78
      *
79 79
      * @return bool
80 80
      */
Please login to merge, or discard this patch.