Completed
Pull Request — master (#4584)
by Neil
05:43
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/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.
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/snmp.inc.php 1 patch
Doc Comments   +19 added lines patch added patch discarded remove patch
@@ -26,6 +26,9 @@  discard block
 block discarded – undo
26 26
 }//end string_to_oid()
27 27
 
28 28
 
29
+/**
30
+ * @param string $setting
31
+ */
29 32
 function prep_snmp_setting($device, $setting) {
30 33
     global $config;
31 34
 
@@ -46,6 +49,9 @@  discard block
 block discarded – undo
46 49
 }//end mibdir()
47 50
 
48 51
 
52
+/**
53
+ * @param string $oids
54
+ */
49 55
 function snmp_get_multi($device, $oids, $options='-OQUs', $mib=null, $mibdir=null) {
50 56
     global $debug,$config,$runtime_stats,$mibs_loaded;
51 57
 
@@ -98,6 +104,9 @@  discard block
 block discarded – undo
98 104
 }//end snmp_get_multi()
99 105
 
100 106
 
107
+/**
108
+ * @param string $options
109
+ */
101 110
 function snmp_get($device, $oid, $options=null, $mib=null, $mibdir=null) {
102 111
     global $debug,$config,$runtime_stats,$mibs_loaded;
103 112
 
@@ -152,6 +161,9 @@  discard block
 block discarded – undo
152 161
 }//end snmp_get()
153 162
 
154 163
 
164
+/**
165
+ * @param string $options
166
+ */
155 167
 function snmp_walk($device, $oid, $options=null, $mib=null, $mibdir=null) {
156 168
     global $debug,$config,$runtime_stats;
157 169
 
@@ -973,6 +985,10 @@  discard block
 block discarded – undo
973 985
  * Load the given MIB into the database.
974 986
  * @return count of objects loaded
975 987
  */
988
+/**
989
+ * @param string $mib
990
+ * @param string $module
991
+ */
976 992
 function snmp_mib_load($mib, $module, $included_by, $mibdir = null)
977 993
 {
978 994
     $mibs = array();
@@ -1265,6 +1281,9 @@  discard block
 block discarded – undo
1265 1281
  * Validate MIBs and store the device->mib mapping in the database.
1266 1282
  * See includes/discovery/os/ruckuswireless.inc.php for an example of usage.
1267 1283
  */
1284
+/**
1285
+ * @param string $included_by
1286
+ */
1268 1287
 function register_mibs($device, $mibs, $included_by)
1269 1288
 {
1270 1289
     if (!is_mib_poller_enabled($device)) {
Please login to merge, or discard this patch.
includes/influxdb.inc.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -41,6 +41,9 @@
 block discarded – undo
41 41
 
42 42
 }// end influxdb_connect
43 43
 
44
+/**
45
+ * @param string $measurement
46
+ */
44 47
 function influx_update($device,$measurement,$tags=array(),$fields) {
45 48
     global $influxdb,$config,$console_color;
46 49
     $tmp_fields = array();
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
@@ -253,6 +253,9 @@  discard block
 block discarded – undo
253 253
 }
254 254
 
255 255
 
256
+/**
257
+ * @return string
258
+ */
256 259
 function get_membername ($username) {
257 260
     global $config, $ds;
258 261
     if ($config['auth_ldap_groupmembertype'] == 'fulldn') {
@@ -272,6 +275,9 @@  discard block
 block discarded – undo
272 275
 }
273 276
 
274 277
 
278
+/**
279
+ * @param string $attr
280
+ */
275 281
 function auth_ldap_session_cache_get ($attr) {
276 282
     global $config;
277 283
 
@@ -297,6 +303,9 @@  discard block
 block discarded – undo
297 303
 }
298 304
 
299 305
 
306
+/**
307
+ * @param string $attr
308
+ */
300 309
 function auth_ldap_session_cache_set ($attr, $value) {
301 310
     $_SESSION['auth_ldap'][$attr]['value'] = $value;
302 311
     $_SESSION['auth_ldap'][$attr]['last_updated'] = time ();
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
@@ -327,6 +327,9 @@  discard block
 block discarded – undo
327 327
     return 'S-'.$revLevel.'-'.$authIdent.'-'.implode('-', $subAuths);
328 328
 }
329 329
 
330
+/**
331
+ * @param string $attr
332
+ */
330 333
 function auth_ldap_session_cache_get ($attr) {
331 334
     global $config;
332 335
 
@@ -352,6 +355,9 @@  discard block
 block discarded – undo
352 355
 }
353 356
 
354 357
 
358
+/**
359
+ * @param string $attr
360
+ */
355 361
 function auth_ldap_session_cache_set ($attr, $value) {
356 362
     $_SESSION['auth_ldap'][$attr]['value'] = $value;
357 363
     $_SESSION['auth_ldap'][$attr]['last_updated'] = time ();
Please login to merge, or discard this patch.