summaryrefslogtreecommitdiffstats
path: root/etc/inc/pfsense-utils.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2013-05-10 10:33:23 -0300
committerRenato Botelho <garga@FreeBSD.org>2013-05-15 11:53:06 -0400
commitc96e71d17e16f4461e142aaee801972a1098e3d0 (patch)
tree903b77cf4afe24d4f94f0124eb5554d328a53b26 /etc/inc/pfsense-utils.inc
parent046b8ba6cad85c2649b449254636cc9b9f56b30d (diff)
downloadpfsense-c96e71d17e16f4461e142aaee801972a1098e3d0.zip
pfsense-c96e71d17e16f4461e142aaee801972a1098e3d0.tar.gz
Fix indent and whitespace
Diffstat (limited to 'etc/inc/pfsense-utils.inc')
-rw-r--r--etc/inc/pfsense-utils.inc24
1 files changed, 12 insertions, 12 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc
index ac7fcda..c1419eb 100644
--- a/etc/inc/pfsense-utils.inc
+++ b/etc/inc/pfsense-utils.inc
@@ -44,7 +44,7 @@
* NAME
* have_natpfruleint_access
* INPUTS
- * none
+ * none
* RESULT
* returns true if user has access to edit a specific firewall nat port forward interface
******/
@@ -59,7 +59,7 @@ function have_natpfruleint_access($if) {
* NAME
* have_ruleint_access
* INPUTS
- * none
+ * none
* RESULT
* returns true if user has access to edit a specific firewall interface
******/
@@ -74,7 +74,7 @@ function have_ruleint_access($if) {
* NAME
* does_url_exist
* INPUTS
- * none
+ * none
* RESULT
* returns true if a url is available
******/
@@ -92,7 +92,7 @@ function does_url_exist($url) {
* NAME
* is_private_ip
* INPUTS
- * none
+ * none
* RESULT
* returns true if an ip address is in a private range
******/
@@ -115,7 +115,7 @@ function is_private_ip($iptocheck) {
* NAME
* get_tmp_file
* INPUTS
- * none
+ * none
* RESULT
* returns a temporary filename
******/
@@ -1592,7 +1592,7 @@ function load_thermal_hardware() {
* NAME
* isvm
* INPUTS
- * none
+ * none
* RESULT
* returns true if machine is running under a virtual environment
******/
@@ -1953,10 +1953,10 @@ function version_get_string_value($a) {
function version_compare_string($a, $b) {
// Only compare string parts if both versions give a specific release
// (If either version lacks a string part, assume intended to match all release levels)
- if (isset($a) && isset($b))
- return version_compare_numeric(version_get_string_value($a), version_get_string_value($b));
- else
- return 0;
+ if (isset($a) && isset($b))
+ return version_compare_numeric(version_get_string_value($a), version_get_string_value($b));
+ else
+ return 0;
}
function version_compare_numeric($a, $b) {
$a_arr = explode('.', rtrim($a, '.0'));
@@ -2337,8 +2337,8 @@ function get_country_name($country_code) {
if($country_code == "ALL") {
$country_list = array();
foreach($country_names['ISO_3166-1_List_en']['ISO_3166-1_Entry'] as $country) {
- $country_list[] = array( "code" => $country['ISO_3166-1_Alpha-2_Code_element'],
- "name" => ucwords(strtolower($country['ISO_3166-1_Country_name'])) );
+ $country_list[] = array("code" => $country['ISO_3166-1_Alpha-2_Code_element'],
+ "name" => ucwords(strtolower($country['ISO_3166-1_Country_name'])) );
}
return $country_list;
}
OpenPOWER on IntegriCloud