Completed
Push — master ( 8a614c...bea93b )
by Paul
21:19 queued 14:52
created
includes/common.php 1 patch
Doc Comments   +23 added lines patch added patch discarded remove patch
@@ -16,6 +16,10 @@  discard block
 block discarded – undo
16 16
  * the source code distribution for details.
17 17
  */
18 18
 
19
+/**
20
+ * @param double $number
21
+ * @param string $sf
22
+ */
19 23
 function format_number_short($number, $sf) {
20 24
     // This formats a number so that we only send back three digits plus an optional decimal point.
21 25
     // Example: 723.42 -> 723    72.34 -> 72.3    2.23 -> 2.23
@@ -32,6 +36,9 @@  discard block
 block discarded – undo
32 36
     return $number;
33 37
 }
34 38
 
39
+/**
40
+ * @param string $command
41
+ */
35 42
 function external_exec($command) {
36 43
     d_echo($command."\n");
37 44
     $output = shell_exec($command);
@@ -396,6 +403,9 @@  discard block
 block discarded – undo
396 403
     return $os;
397 404
 }
398 405
 
406
+/**
407
+ * @return string
408
+ */
399 409
 function safename($name) {
400 410
     return preg_replace('/[^a-zA-Z0-9,._\-]/', '_', $name);
401 411
 }
@@ -450,6 +460,9 @@  discard block
 block discarded – undo
450 460
     }
451 461
 }
452 462
 
463
+/**
464
+ * @param string $attrib
465
+ */
453 466
 function is_dev_attrib_enabled($device, $attrib, $default = true) {
454 467
     $val = get_dev_attrib($device, $attrib);
455 468
     if ($val != NULL) {
@@ -767,6 +780,9 @@  discard block
 block discarded – undo
767 780
 } // count_mib_health
768 781
 
769 782
 
783
+/**
784
+ * @param string $oid
785
+ */
770 786
 function get_mibval($device, $oid)
771 787
 {
772 788
     $sql = 'SELECT * FROM `device_oids` WHERE `device_id` = ? AND `oid` = ?';
@@ -904,6 +920,10 @@  discard block
 block discarded – undo
904 920
 /*
905 921
  * @return true if the requested module type & name is globally enabled
906 922
  */
923
+/**
924
+ * @param string $type
925
+ * @param string $module
926
+ */
907 927
 function is_module_enabled($type, $module)
908 928
 {
909 929
     global $config;
@@ -919,6 +939,9 @@  discard block
 block discarded – undo
919 939
 /*
920 940
  * @return true if every string in $arr begins with $str
921 941
  */
942
+/**
943
+ * @param string $str
944
+ */
922 945
 function begins_with($str, $arr)
923 946
 {
924 947
     foreach ($arr as $s) {
Please login to merge, or discard this patch.