Passed
Pull Request — development (#390)
by Mirko
09:05
created
htdocs/src/Oc/Libse/ChildWp/ControllerChildWp.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -35,6 +35,9 @@  discard block
 block discarded – undo
35 35
         $this->init(0, 0);
36 36
     }
37 37
 
38
+    /**
39
+     * @param boolean $request
40
+     */
38 41
     private function initRequest($request)
39 42
     {
40 43
         if ($request) {
@@ -44,6 +47,9 @@  discard block
 block discarded – undo
44 47
         return new RequestHttp();
45 48
     }
46 49
 
50
+    /**
51
+     * @param boolean $translator
52
+     */
47 53
     private function initTranslator($translator)
48 54
     {
49 55
         if ($translator) {
Please login to merge, or discard this patch.
local/devel/find_bad_encodings.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -39,6 +39,9 @@
 block discarded – undo
39 39
 }
40 40
 
41 41
 
42
+/**
43
+ * @param string $path
44
+ */
42 45
 function testforbom($path)
43 46
 {
44 47
     $filestart = file_get_contents($path, false, null, 0, 2);
Please login to merge, or discard this patch.
htdocs/lib2/db.inc.php 1 patch
Doc Comments   +58 added lines, -1 removed lines patch added patch discarded remove patch
@@ -336,6 +336,9 @@  discard block
 block discarded – undo
336 336
     return $result;
337 337
 }
338 338
 
339
+/**
340
+ * @param string $sql
341
+ */
339 342
 function sqlf($sql)
340 343
 {
341 344
     global $db;
@@ -349,6 +352,9 @@  discard block
 block discarded – undo
349 352
     return $result;
350 353
 }
351 354
 
355
+/**
356
+ * @param string $sql
357
+ */
352 358
 function sqlf_slave($sql)
353 359
 {
354 360
     global $db;
@@ -362,6 +368,9 @@  discard block
 block discarded – undo
362 368
     return $result;
363 369
 }
364 370
 
371
+/**
372
+ * @param string $sql
373
+ */
365 374
 function sqll($sql)
366 375
 {
367 376
     global $db;
@@ -375,6 +384,10 @@  discard block
 block discarded – undo
375 384
     return $result;
376 385
 }
377 386
 
387
+/**
388
+ * @param string $sql
389
+ * @param integer $default
390
+ */
378 391
 function sqlf_value($sql, $default)
379 392
 {
380 393
     global $db;
@@ -388,6 +401,10 @@  discard block
 block discarded – undo
388 401
     return $result;
389 402
 }
390 403
 
404
+/**
405
+ * @param string $sql
406
+ * @param integer $default
407
+ */
391 408
 function sqll_value($sql, $default)
392 409
 {
393 410
     global $db;
@@ -463,6 +480,9 @@  discard block
 block discarded – undo
463 480
     return sql_value_internal(true, $sql, $default, $args);
464 481
 }
465 482
 
483
+/**
484
+ * @param boolean $bQuerySlave
485
+ */
466 486
 function sql_value_internal($bQuerySlave, $sql, $default)
467 487
 {
468 488
     $args = func_get_args();
@@ -563,7 +583,7 @@  discard block
 block discarded – undo
563 583
 }
564 584
 
565 585
 /**
566
- * @param $rs
586
+ * @param resource $rs
567 587
  *
568 588
  * @return array
569 589
  */
@@ -616,11 +636,17 @@  discard block
 block discarded – undo
616 636
     return mysql_insert_id($db['dblink_slave']);
617 637
 }
618 638
 
639
+/**
640
+ * @param resource $rs
641
+ */
619 642
 function sql_num_rows($rs)
620 643
 {
621 644
     return mysql_num_rows($rs);
622 645
 }
623 646
 
647
+/**
648
+ * @param string $table
649
+ */
624 650
 function sql_temp_table($table)
625 651
 {
626 652
     global $db, $opt;
@@ -650,6 +676,9 @@  discard block
 block discarded – undo
650 676
     $db['temptables'][$table] = $table;
651 677
 }
652 678
 
679
+/**
680
+ * @param string $table
681
+ */
653 682
 function sql_temp_table_slave($table)
654 683
 {
655 684
     global $db, $opt;
@@ -670,6 +699,9 @@  discard block
 block discarded – undo
670 699
     $db['temptables_slave'][$table] = $table;
671 700
 }
672 701
 
702
+/**
703
+ * @param string $table
704
+ */
673 705
 function sql_drop_temp_table($table)
674 706
 {
675 707
     global $db, $opt;
@@ -706,6 +738,9 @@  discard block
 block discarded – undo
706 738
     $db['temptables'][$newname] = $newname;
707 739
 }
708 740
 
741
+/**
742
+ * @param string $table
743
+ */
709 744
 function sql_drop_temp_table_slave($table)
710 745
 {
711 746
     global $db, $opt;
@@ -1070,6 +1105,9 @@  discard block
 block discarded – undo
1070 1105
     }
1071 1106
 }
1072 1107
 
1108
+/**
1109
+ * @param string $warnmessage
1110
+ */
1073 1111
 function sql_warn($warnmessage)
1074 1112
 {
1075 1113
     global $opt;
@@ -1097,6 +1135,9 @@  discard block
 block discarded – undo
1097 1135
     }
1098 1136
 }
1099 1137
 
1138
+/**
1139
+ * @param resource $rs
1140
+ */
1100 1141
 function sql_export_recordset($f, $rs, $table, $truncate = true)
1101 1142
 {
1102 1143
     fwrite($f, "SET NAMES 'utf8';\n");
@@ -1127,6 +1168,9 @@  discard block
 block discarded – undo
1127 1168
     }
1128 1169
 }
1129 1170
 
1171
+/**
1172
+ * @param resource $f
1173
+ */
1130 1174
 function sql_export_table($f, $table)
1131 1175
 {
1132 1176
     $primary = [];
@@ -1148,6 +1192,10 @@  discard block
 block discarded – undo
1148 1192
     sql_free_result($rs);
1149 1193
 }
1150 1194
 
1195
+/**
1196
+ * @param string $filename
1197
+ * @param string[] $tables
1198
+ */
1151 1199
 function sql_export_tables_to_file($filename, $tables)
1152 1200
 {
1153 1201
     $f = fopen($filename, 'w');
@@ -1175,6 +1223,9 @@  discard block
 block discarded – undo
1175 1223
     fclose($f);
1176 1224
 }
1177 1225
 
1226
+/**
1227
+ * @param resource $f
1228
+ */
1178 1229
 function sql_export_structure($f, $table)
1179 1230
 {
1180 1231
     $rs = sql("SHOW CREATE TABLE `&1`", $table);
@@ -1190,6 +1241,9 @@  discard block
 block discarded – undo
1190 1241
     fwrite($f, $sTableSql . " ;\n");
1191 1242
 }
1192 1243
 
1244
+/**
1245
+ * @param string $filename
1246
+ */
1193 1247
 function sql_export_structure_to_file($filename, $table)
1194 1248
 {
1195 1249
     $f = fopen($filename, 'w');
@@ -1263,6 +1317,9 @@  discard block
 block discarded – undo
1263 1317
 }
1264 1318
 
1265 1319
 // test if a function or procedure exists
1320
+/**
1321
+ * @param string $type
1322
+ */
1266 1323
 function sql_fp_exists($type, $name)
1267 1324
 {
1268 1325
     global $opt;
Please login to merge, or discard this patch.
htdocs/lib/clicompatbase.inc.php 1 patch
Doc Comments   +28 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;
@@ -485,6 +507,9 @@  discard block
 block discarded – undo
485 507
     return mysql_fetch_row($rs);
486 508
 }
487 509
 
510
+/**
511
+ * @param resource $rs
512
+ */
488 513
 function sql_fetch_column($rs)
489 514
 {
490 515
     $col = [];
@@ -694,6 +719,9 @@  discard block
 block discarded – undo
694 719
     ];
695 720
 }
696 721
 
722
+/**
723
+ * @param string $filename
724
+ */
697 725
 function fetch_email_template($filename, $language, $domain)
698 726
 {
699 727
     global $opt, $rootpath;
Please login to merge, or discard this patch.
htdocs/lib/sqldebugger.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
 }
149 149
 
150 150
 /**
151
- * @param $sql
151
+ * @param string $sql
152 152
  * @param $bSlave
153 153
  *
154 154
  * @return resource
Please login to merge, or discard this patch.
htdocs/lib2/imagebmp.inc.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -491,7 +491,7 @@  discard block
 block discarded – undo
491 491
 }
492 492
 
493 493
 /**
494
- * @param $byte
494
+ * @param integer $byte
495 495
  * @param $start
496 496
  * @param $len
497 497
  *
@@ -508,8 +508,8 @@  discard block
 block discarded – undo
508 508
 
509 509
 $CurrentBit = 0;
510 510
 /**
511
- * @param $f
512
- * @param $count
511
+ * @param resource $f
512
+ * @param integer $count
513 513
  *
514 514
  * @return number
515 515
  */
@@ -564,7 +564,7 @@  discard block
 block discarded – undo
564 564
 }
565 565
 
566 566
 /**
567
- * @param $n
567
+ * @param integer $n
568 568
  *
569 569
  * @return string
570 570
  */
@@ -585,7 +585,7 @@  discard block
 block discarded – undo
585 585
 
586 586
 /**
587 587
  * @param $d
588
- * @param $n
588
+ * @param integer $n
589 589
  *
590 590
  * @return string
591 591
  */
Please login to merge, or discard this patch.
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.