Completed
Pull Request — development (#405)
by Mirko
14:04 queued 06:05
created
htdocs/lib2/logic/sitemapxml.class.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -46,6 +46,11 @@  discard block
 block discarded – undo
46 46
     /* sChaneFreq = {always, hourly, daily, weekly, monthly, yearly, never}
47 47
      * nPriority  = {0.0 to 1.0}
48 48
      */
49
+
50
+    /**
51
+     * @param string $sFile
52
+     * @param integer $dLastMod
53
+     */
49 54
     public function write($sFile, $dLastMod, $sChangeFreq = false, $nPriority = 0.5)
50 55
     {
51 56
         if ($sChangeFreq == false) {
@@ -62,6 +67,9 @@  discard block
 block discarded – undo
62 67
         $this->writeInternal($sXML);
63 68
     }
64 69
 
70
+    /**
71
+     * @param string $str
72
+     */
65 73
     public function writeInternal($str)
66 74
     {
67 75
         global $opt;
Please login to merge, or discard this patch.
htdocs/util/notification/run_notify.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -197,6 +197,9 @@
 block discarded – undo
197 197
     return 0;
198 198
 }
199 199
 
200
+/**
201
+ * @param string $domain
202
+ */
200 203
 function is_existent_maildomain($domain)
201 204
 {
202 205
     $smtp_serverlist = [];
Please login to merge, or discard this patch.
htdocs/lib2/search/search.txt.inc.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -203,6 +203,9 @@
 block discarded – undo
203 203
     return $str;
204 204
 }
205 205
 
206
+/**
207
+ * @param string $str
208
+ */
206 209
 function lf2crlf($str)
207 210
 {
208 211
     return str_replace("\r\r\n", "\r\n", str_replace("\n", "\r\n", $str));
Please login to merge, or discard this patch.
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/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.
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.