Completed
Pull Request — master (#4283)
by Tony
05:46
created
includes/common.php 1 patch
Doc Comments   +20 added lines patch added patch discarded remove patch
@@ -33,6 +33,10 @@  discard block
 block discarded – undo
33 33
     return '<img src="images/16/' . $map[$priority] .'.png" title="' . $priority . '">';
34 34
 }
35 35
 
36
+/**
37
+ * @param double $number
38
+ * @param string $sf
39
+ */
36 40
 function format_number_short($number, $sf)
37 41
 {
38 42
     // This formats a number so that we only send back three digits plus an optional decimal point.
@@ -49,6 +53,9 @@  discard block
 block discarded – undo
49 53
     return $number;
50 54
 }
51 55
 
56
+/**
57
+ * @param string $command
58
+ */
52 59
 function external_exec($command)
53 60
 {
54 61
     global $debug,$vdebug;
@@ -98,6 +105,9 @@  discard block
 block discarded – undo
98 105
     }
99 106
 }
100 107
 
108
+/**
109
+ * @param string $text
110
+ */
101 111
 function print_error($text)
102 112
 {
103 113
     if (isCli()) {
@@ -856,6 +866,9 @@  discard block
 block discarded – undo
856 866
 } // count_mib_health
857 867
 
858 868
 
869
+/**
870
+ * @param string $oid
871
+ */
859 872
 function get_mibval($device, $oid)
860 873
 {
861 874
     $sql = 'SELECT * FROM `device_oids` WHERE `device_id` = ? AND `oid` = ?';
@@ -993,6 +1006,10 @@  discard block
 block discarded – undo
993 1006
 /*
994 1007
  * @return true if the requested module type & name is globally enabled
995 1008
  */
1009
+/**
1010
+ * @param string $type
1011
+ * @param string $module
1012
+ */
996 1013
 function is_module_enabled($type, $module)
997 1014
 {
998 1015
     global $config;
@@ -1007,6 +1024,9 @@  discard block
 block discarded – undo
1007 1024
 /*
1008 1025
  * @return true if every string in $arr begins with $str
1009 1026
  */
1027
+/**
1028
+ * @param string $str
1029
+ */
1010 1030
 function begins_with($str, $arr)
1011 1031
 {
1012 1032
     foreach ($arr as $s) {
Please login to merge, or discard this patch.