Completed
Pull Request — master (#3205)
by Daniel
05:53
created
alerts.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -522,7 +522,7 @@
 block discarded – undo
522 522
  * "Safely" run eval
523 523
  * @param string $code Code to run
524 524
  * @param array  $obj  Object with variables
525
- * @return string|mixed
525
+ * @return string
526 526
  */
527 527
 function RunJail($code, $obj) {
528 528
     $ret = '';
Please login to merge, or discard this patch.
html/includes/authentication/ldap.inc.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -202,6 +202,9 @@
 block discarded – undo
202 202
 }
203 203
 
204 204
 
205
+/**
206
+ * @return string
207
+ */
205 208
 function get_membername($username) {
206 209
     global $config, $ds;
207 210
     if ($config['auth_ldap_groupmembertype'] == 'fulldn') {
Please login to merge, or discard this patch.
html/includes/collectd/functions.php 1 patch
Doc Comments   +6 added lines, -1 removed lines patch added patch discarded remove patch
@@ -277,7 +277,7 @@  discard block
 block discarded – undo
277 277
  * @pinst Plugin instance
278 278
  * @type Type name
279 279
  * @tinst Type instance
280
- * @return Identifier that collectd's FLUSH command understands
280
+ * @return string that collectd's FLUSH command understands
281 281
  */
282 282
 function collectd_identifier($host, $plugin, $pinst, $type, $tinst) {
283 283
     global $config;
@@ -477,6 +477,7 @@  discard block
 block discarded – undo
477 477
 /**
478 478
  * Helper function to strip quotes from RRD output
479 479
  * @str RRD-Info generated string
480
+ * @param string $str
480 481
  * @return String with one surrounding pair of quotes stripped
481 482
  */
482 483
 function rrd_strip_quotes($str) {
@@ -493,6 +494,7 @@  discard block
 block discarded – undo
493 494
 /**
494 495
  * Determine useful information about RRD file
495 496
  * @file Name of RRD file to analyse
497
+ * @param string $file
496 498
  * @return Array describing the RRD file
497 499
  */
498 500
 function rrd_info($file) {
@@ -557,6 +559,9 @@  discard block
 block discarded – undo
557 559
 }//end rrd_info()
558 560
 
559 561
 
562
+/**
563
+ * @param integer $code
564
+ */
560 565
 function rrd_get_color($code, $line=true) {
561 566
     global $config;
562 567
     $name = ($line ? 'f_' : 'h_').$code;
Please login to merge, or discard this patch.
html/includes/functions.inc.php 1 patch
Doc Comments   +15 added lines patch added patch discarded remove patch
@@ -276,6 +276,10 @@  discard block
 block discarded – undo
276 276
 }//end generate_device_link()
277 277
 
278 278
 
279
+/**
280
+ * @param string $url
281
+ * @param string|null $class
282
+ */
279 283
 function overlib_link($url, $text, $contents, $class) {
280 284
     global $config;
281 285
 
@@ -505,6 +509,14 @@  discard block
 block discarded – undo
505 509
 }//end generate_graph_js_state()
506 510
 
507 511
 
512
+/**
513
+ * @param integer $width
514
+ * @param integer $height
515
+ * @param string $left_colour
516
+ * @param string $right_text
517
+ * @param string $right_colour
518
+ * @param string $right_background
519
+ */
508 520
 function print_percentage_bar($width, $height, $percent, $left_text, $left_colour, $left_background, $right_text, $right_colour, $right_background) {
509 521
     if ($percent > '100') {
510 522
         $size_percent = '100';
@@ -1022,6 +1034,9 @@  discard block
 block discarded – undo
1022 1034
 }//end get_client_ip()
1023 1035
 
1024 1036
 
1037
+/**
1038
+ * @param string $string
1039
+ */
1025 1040
 function shorten_interface_type($string) {
1026 1041
     return str_ireplace(
1027 1042
         array(
Please login to merge, or discard this patch.
html/includes/graphs/device/collectd.inc.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -22,6 +22,10 @@  discard block
 block discarded – undo
22 22
 require 'includes/collectd/definitions.php';
23 23
 
24 24
 
25
+/**
26
+ * @param integer $fontsize
27
+ * @param integer $width
28
+ */
25 29
 function makeTextBlock($text, $fontfile, $fontsize, $width) {
26 30
     // TODO: handle explicit line-break!
27 31
     $words       = explode(' ', $text);
@@ -50,6 +54,8 @@  discard block
 block discarded – undo
50 54
  * @code_msg Short text description of HTTP error code
51 55
  * @title Title for fake RRD graph
52 56
  * @msg Complete error message to display in place of graph content
57
+ * @param integer $code
58
+ * @param string $code_msg
53 59
  */
54 60
 function error($code, $code_msg, $title, $msg) {
55 61
     global $config;
Please login to merge, or discard this patch.
html/includes/PasswordHash.php 1 patch
Doc Comments   +19 added lines patch added patch discarded remove patch
@@ -30,6 +30,10 @@  discard block
 block discarded – undo
30 30
 	var $portable_hashes;
31 31
 	var $random_state;
32 32
 
33
+	/**
34
+	 * @param integer $iteration_count_log2
35
+	 * @param boolean $portable_hashes
36
+	 */
33 37
 	function PasswordHash($iteration_count_log2, $portable_hashes)
34 38
 	{
35 39
 		$this->itoa64 = './0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';
@@ -45,6 +49,9 @@  discard block
 block discarded – undo
45 49
 			$this->random_state .= getmypid();
46 50
 	}
47 51
 
52
+	/**
53
+	 * @param integer $count
54
+	 */
48 55
 	function get_random_bytes($count)
49 56
 	{
50 57
 		$output = openssl_random_pseudo_bytes($count,$strong);
@@ -73,6 +80,9 @@  discard block
 block discarded – undo
73 80
 		return $output;
74 81
 	}
75 82
 
83
+	/**
84
+	 * @param integer $count
85
+	 */
76 86
 	function encode64($input, $count)
77 87
 	{
78 88
 		$output = '';
@@ -96,6 +106,9 @@  discard block
 block discarded – undo
96 106
 		return $output;
97 107
 	}
98 108
 
109
+	/**
110
+	 * @param string $input
111
+	 */
99 112
 	function gensalt_private($input)
100 113
 	{
101 114
 		$output = '$P$';
@@ -151,6 +164,9 @@  discard block
 block discarded – undo
151 164
 		return $output;
152 165
 	}
153 166
 
167
+	/**
168
+	 * @param string $input
169
+	 */
154 170
 	function gensalt_extended($input)
155 171
 	{
156 172
 		$count_log2 = min($this->iteration_count_log2 + 8, 24);
@@ -169,6 +185,9 @@  discard block
 block discarded – undo
169 185
 		return $output;
170 186
 	}
171 187
 
188
+	/**
189
+	 * @param string $input
190
+	 */
172 191
 	function gensalt_blowfish($input)
173 192
 	{
174 193
 		# This one needs to use a different order of characters and a
Please login to merge, or discard this patch.
includes/billing.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -63,6 +63,9 @@
 block discarded – undo
63 63
 }//end getDates()
64 64
 
65 65
 
66
+/**
67
+ * @param string $inout
68
+ */
66 69
 function getValue($host, $port, $id, $inout) {
67 70
     global $config;
68 71
 
Please login to merge, or discard this patch.
includes/object-cache.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
     /**
124 124
      * Reset Data-Object
125 125
      * @param string $obj Name of Data-Object
126
-     * @return mixed
126
+     * @return boolean
127 127
      */
128 128
     public function offsetUnset($obj) {
129 129
         unset($this->data[$obj]['value']);
Please login to merge, or discard this patch.
includes/rrdtool.inc.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 /**
15 15
  * Opens up a pipe to RRDTool using handles provided
16 16
  *
17
- * @return boolean
17
+ * @return boolean|null
18 18
  * @global config
19 19
  * @global debug
20 20
  * @param  &rrd_process
@@ -70,6 +70,7 @@  discard block
 block discarded – undo
70 70
  * @return integer
71 71
  * @param  resource rrd_process
72 72
  * @param  array rrd_pipes
73
+ * @param resource $rrd_process
73 74
  */
74 75
 
75 76
 
@@ -97,6 +98,7 @@  discard block
 block discarded – undo
97 98
  * @return integer
98 99
  * @param  string graph_file
99 100
  * @param  string options
101
+ * @param string $options
100 102
  */
101 103
 
102 104
 
@@ -157,6 +159,7 @@  discard block
 block discarded – undo
157 159
  * @param  string command
158 160
  * @param  string filename
159 161
  * @param  string options
162
+ * @param string $command
160 163
  * @global config
161 164
  * @global debug
162 165
  * @global rrd_pipes
@@ -202,6 +205,8 @@  discard block
 block discarded – undo
202 205
  *
203 206
  * @param string filename
204 207
  * @param string options
208
+ * @param string $filename
209
+ * @param string $options
205 210
  */
206 211
 
207 212
 
@@ -223,6 +228,7 @@  discard block
 block discarded – undo
223 228
  *
224 229
  * @param string filename
225 230
  * @param array options
231
+ * @param string $filename
226 232
  */
227 233
 
228 234
 
Please login to merge, or discard this patch.