Passed
Pull Request — development (#385)
by Thomas
07:52
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   +9 added lines patch added patch discarded remove patch
@@ -329,6 +329,9 @@  discard block
 block discarded – undo
329 329
     exit;
330 330
 }
331 331
 
332
+/**
333
+ * @param string $sql
334
+ */
332 335
 function sqldbg_strip_temptable($sql)
333 336
 {
334 337
     $start = mb_strpos(mb_strtoupper($sql), 'SELECT ');
@@ -340,6 +343,9 @@  discard block
 block discarded – undo
340 343
     return mb_substr($sql, $start);
341 344
 }
342 345
 
346
+/**
347
+ * @param string $sql
348
+ */
343 349
 function sqldbg_strip_from($sql)
344 350
 {
345 351
     $start = mb_strpos(mb_strtoupper($sql), 'FROM ');
@@ -351,6 +357,9 @@  discard block
 block discarded – undo
351 357
     return 'SELECT * ' . mb_substr($sql, $start);
352 358
 }
353 359
 
360
+/**
361
+ * @param string $sql
362
+ */
354 363
 function sqldbg_insert_nocache($sql)
355 364
 {
356 365
     if (mb_strtoupper(mb_substr($sql, 0, 7)) == 'SELECT ') {
Please login to merge, or discard this patch.
htdocs/lib2/imagebmp.inc.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -468,6 +468,7 @@  discard block
 block discarded – undo
468 468
 
469 469
 /**
470 470
  * @param integer $byte
471
+ * @param integer $len
471 472
  */
472 473
 function RetBits($byte,$start,$len)
473 474
 {
@@ -525,6 +526,9 @@  discard block
 block discarded – undo
525 526
         }
526 527
 
527 528
 
529
+/**
530
+ * @param integer $d
531
+ */
528 532
 function decbin8($d)
529 533
 {
530 534
 return decbinx($d,8);
Please login to merge, or discard this patch.
htdocs/lib2/search/ftsearch.inc.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -485,6 +485,9 @@
 block discarded – undo
485 485
     sql_free_result($rs);
486 486
 }
487 487
 
488
+/**
489
+ * @param integer $object_type
490
+ */
488 491
 function ftsearch_delete_entries($object_type, $object_id, $cache_id)
489 492
 {
490 493
     sql("DELETE FROM `search_index` WHERE `object_type`='&1' AND `cache_id`='&2'", $object_type, $cache_id);
Please login to merge, or discard this patch.
htdocs/src/Oc/SmartyPlugins/prefilter.t.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -282,6 +282,9 @@
 block discarded – undo
282 282
     return $start;
283 283
 }
284 284
 
285
+/**
286
+ * @param integer $line
287
+ */
285 288
 function smarty_prefilter_t_gettext($message, $attrs, &$smarty, $line)
286 289
 {
287 290
     global $opt, $translate;
Please login to merge, or discard this patch.