Completed
Pull Request — master (#6255)
by Tony
04:21
created
html/includes/authentication/active_directory.inc.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -411,6 +411,9 @@
 block discarded – undo
411 411
     return str_replace('~C0mmA~', ',', $matches[0][0]);
412 412
 }
413 413
 
414
+/**
415
+ * @param string $sid
416
+ */
414 417
 function get_userid_from_sid($sid)
415 418
 {
416 419
     return preg_replace('/.*-(\d+)$/', '$1', $sid);
Please login to merge, or discard this patch.
includes/common.php 1 patch
Doc Comments   +24 added lines, -5 removed lines patch added patch discarded remove patch
@@ -51,6 +51,9 @@  discard block
 block discarded – undo
51 51
     return isset($map[$priority]) ? $map[$priority] : 0;
52 52
 }
53 53
 
54
+/**
55
+ * @param string $command
56
+ */
54 57
 function external_exec($command)
55 58
 {
56 59
     global $debug,$vdebug;
@@ -102,6 +105,9 @@  discard block
 block discarded – undo
102 105
     }
103 106
 }
104 107
 
108
+/**
109
+ * @param string $text
110
+ */
105 111
 function print_error($text)
106 112
 {
107 113
     if (isCli()) {
@@ -467,7 +473,7 @@  discard block
 block discarded – undo
467 473
 
468 474
 /**
469 475
  * Function format the rrdtool description text correctly.
470
- * @param $descr
476
+ * @param string $descr
471 477
  * @return mixed
472 478
  */
473 479
 function safedescr($descr)
@@ -850,6 +856,9 @@  discard block
 block discarded – undo
850 856
 } // count_mib_health
851 857
 
852 858
 
859
+/**
860
+ * @param string $oid
861
+ */
853 862
 function get_mibval($device, $oid)
854 863
 {
855 864
     $sql = 'SELECT * FROM `device_oids` WHERE `device_id` = ? AND `oid` = ?';
@@ -987,6 +996,10 @@  discard block
 block discarded – undo
987 996
 /*
988 997
  * @return true if the requested module type & name is globally enabled
989 998
  */
999
+/**
1000
+ * @param string $type
1001
+ * @param string $module
1002
+ */
990 1003
 function is_module_enabled($type, $module)
991 1004
 {
992 1005
     global $config;
@@ -1001,6 +1014,9 @@  discard block
 block discarded – undo
1001 1014
 /*
1002 1015
  * @return true if every string in $arr begins with $str
1003 1016
  */
1017
+/**
1018
+ * @param string $str
1019
+ */
1004 1020
 function begins_with($str, $arr)
1005 1021
 {
1006 1022
     foreach ($arr as $s) {
@@ -1464,6 +1480,9 @@  discard block
 block discarded – undo
1464 1480
     return $user_filter;
1465 1481
 }
1466 1482
 
1483
+/**
1484
+ * @return string
1485
+ */
1467 1486
 function get_auth_ad_group_filter($groupname)
1468 1487
 {
1469 1488
     global $config;
@@ -1589,7 +1608,7 @@  discard block
 block discarded – undo
1589 1608
 /**
1590 1609
  * @param $scale
1591 1610
  * @param $value
1592
- * @return float
1611
+ * @return string
1593 1612
  */
1594 1613
 function fahrenheit_to_celsius($scale, $value)
1595 1614
 {
@@ -1604,7 +1623,7 @@  discard block
 block discarded – undo
1604 1623
 }
1605 1624
 /**
1606 1625
  * @param $value
1607
- * @param null $default
1626
+ * @param integer|null $default
1608 1627
  * @param int $min
1609 1628
  * @return null
1610 1629
  */
@@ -1651,8 +1670,8 @@  discard block
 block discarded – undo
1651 1670
 }
1652 1671
 
1653 1672
 /**
1654
- * @param $string
1655
- * @param string $ver
1673
+ * @param string $string
1674
+ * @param string string
1656 1675
  * @return bool
1657 1676
  */
1658 1677
 function is_ip($string, $ver = 'ipv4ipv6')
Please login to merge, or discard this patch.