Completed
Pull Request — master (#7134)
by Neil
06:16
created
scripts/pre-commit.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -184,7 +184,6 @@  discard block
 block discarded – undo
184 184
  *  Check if the given options array contains any of the $opts specified
185 185
  *
186 186
  * @param array $options the array from getopt()
187
- * @param string $opts,... options to check for
188 187
  * @return bool If one of the specified options is set
189 188
  */
190 189
 function check_opt($options)
@@ -200,7 +199,7 @@  discard block
 block discarded – undo
200 199
  * Build a list of exclude arguments from an array
201 200
  *
202 201
  * @param string $exclude_string such as "--exclude"
203
- * @param array $excludes array of directories to exclude
202
+ * @param string[] $excludes array of directories to exclude
204 203
  * @return string resulting string
205 204
  */
206 205
 function build_excludes($exclude_string, $excludes)
Please login to merge, or discard this patch.
tests/mocks/mock.snmp.inc.php 1 patch
Doc Comments   +7 added lines patch added patch discarded remove patch
@@ -200,6 +200,10 @@  discard block
 block discarded – undo
200 200
 
201 201
 // Mocked functions
202 202
 
203
+/**
204
+ * @param string $options
205
+ * @param string $mib
206
+ */
203 207
 function snmp_get($device, $oid, $options = null, $mib = null, $mibdir = null)
204 208
 {
205 209
     $community = $device['community'];
@@ -222,6 +226,9 @@  discard block
 block discarded – undo
222 226
     }
223 227
 }
224 228
 
229
+/**
230
+ * @param string $options
231
+ */
225 232
 function snmp_walk($device, $oid, $options = null, $mib = null, $mibdir = null)
226 233
 {
227 234
     $community = $device['community'];
Please login to merge, or discard this patch.
includes/device-groups.inc.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
  * @param $pattern
31 31
  * @param $name
32 32
  * @param $desc
33
- * @return int|string
33
+ * @return integer|null
34 34
  */
35 35
 function AddDeviceGroup($name, $desc, $pattern)
36 36
 {
Please login to merge, or discard this patch.
html/includes/authentication/ad-authorization.inc.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -358,6 +358,9 @@  discard block
 block discarded – undo
358 358
     return 'S-'.$revLevel.'-'.$authIdent.'-'.implode('-', $subAuths);
359 359
 }
360 360
 
361
+/**
362
+ * @param string $attr
363
+ */
361 364
 function auth_ldap_session_cache_get($attr)
362 365
 {
363 366
     global $config;
@@ -388,6 +391,9 @@  discard block
 block discarded – undo
388 391
 }
389 392
 
390 393
 
394
+/**
395
+ * @param string $attr
396
+ */
391 397
 function auth_ldap_session_cache_set($attr, $value)
392 398
 {
393 399
     $_SESSION['auth_ldap'][$attr]['value'] = $value;
Please login to merge, or discard this patch.
html/includes/authentication/ldap-authorization.inc.php 1 patch
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -272,6 +272,9 @@  discard block
 block discarded – undo
272 272
 }
273 273
 
274 274
 
275
+/**
276
+ * @return string
277
+ */
275 278
 function get_membername($username)
276 279
 {
277 280
     global $config, $ldap_connection;
@@ -290,6 +293,9 @@  discard block
 block discarded – undo
290 293
 }
291 294
 
292 295
 
296
+/**
297
+ * @param string $attr
298
+ */
293 299
 function auth_ldap_session_cache_get($attr)
294 300
 {
295 301
     global $config;
@@ -320,6 +326,9 @@  discard block
 block discarded – undo
320 326
 }
321 327
 
322 328
 
329
+/**
330
+ * @param string $attr
331
+ */
323 332
 function auth_ldap_session_cache_set($attr, $value)
324 333
 {
325 334
     $_SESSION['auth_ldap'][$attr]['value'] = $value;
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
@@ -206,6 +206,9 @@
 block discarded – undo
206 206
 }
207 207
 
208 208
 
209
+/**
210
+ * @return string
211
+ */
209 212
 function get_membername($username)
210 213
 {
211 214
     global $config, $ldap_connection;
Please login to merge, or discard this patch.
html/includes/collectd/functions.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -446,6 +446,9 @@
 block discarded – undo
446 446
 }//end _rrd_info()
447 447
 
448 448
 
449
+/**
450
+ * @param integer $code
451
+ */
449 452
 function rrd_get_color($code, $line = true)
450 453
 {
451 454
     global $config;
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
 {
27 31
     // TODO: handle explicit line-break!
@@ -49,6 +53,8 @@  discard block
 block discarded – undo
49 53
  * @code_msg Short text description of HTTP error code
50 54
  * @title Title for fake RRD graph
51 55
  * @msg Complete error message to display in place of graph content
56
+ * @param integer $code
57
+ * @param string $code_msg
52 58
  */
53 59
 function error($code, $code_msg, $title, $msg)
54 60
 {
Please login to merge, or discard this patch.
includes/billing.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -73,6 +73,9 @@
 block discarded – undo
73 73
     return($cur_used/$since*$total);
74 74
 }
75 75
 
76
+/**
77
+ * @param string $inout
78
+ */
76 79
 function getValue($host, $port, $id, $inout)
77 80
 {
78 81
     global $config;
Please login to merge, or discard this patch.