diff --git a/src/etc/inc/gwlb.inc b/src/etc/inc/gwlb.inc
index 55aa37b6f..57c339406 100644
--- a/src/etc/inc/gwlb.inc
+++ b/src/etc/inc/gwlb.inc
@@ -749,7 +749,7 @@ function return_gateway_groups_array()
} elseif (!empty($gateway['interface'])) {
$gatewayip = get_interface_gateway($gateway['friendlyiface']);
} else {
- $gatewayip = "";
+ $gatewayip = '';
}
if (!empty($gateway['interface'])) {
diff --git a/src/etc/inc/interfaces.lib.inc b/src/etc/inc/interfaces.lib.inc
index 5297910a9..774a0a9ec 100644
--- a/src/etc/inc/interfaces.lib.inc
+++ b/src/etc/inc/interfaces.lib.inc
@@ -182,12 +182,12 @@ function legacy_interface_stats($ifs = null)
return $stats;
}
- $current_interface = "";
+ $current_interface = '';
foreach ($out as $line) {
if (strpos($line, 'Interface') === 0) {
$current_interface = explode('(', explode(' ', $line)[1])[0];
$stats[$current_interface] = array();
- } elseif ($current_interface != "") {
+ } elseif ($current_interface != '') {
$stat = explode(':', $line);
$stats[$current_interface][trim($stat[0])] = trim($stat[1]);
}
@@ -459,7 +459,7 @@ function legacy_serial_devices()
}
$serialports = array();
foreach (glob("/dev/cua?[0-9]{,.[0-9]}", GLOB_BRACE) as $device) {
- $serialports[$device] = array('descr' => "");
+ $serialports[$device] = array('descr' => '');
$tty = explode('.', explode('cua', $device)[1])[0];
foreach ($modems as $modem) {
if (isset($modem['ttyname']) && $modem['ttyname'] == $tty) {
diff --git a/src/etc/inc/notices.inc b/src/etc/inc/notices.inc
index 94a135470..5992cebd2 100644
--- a/src/etc/inc/notices.inc
+++ b/src/etc/inc/notices.inc
@@ -39,7 +39,7 @@ require_once("notices.smtp.inc");
* RESULT
* Files a notice and kicks off the various alerts, smtp, system log, etc.
******/
-function file_notice($id, $notice, $category = "General", $url = "", $priority = 1) {
+function file_notice($id, $notice, $category = 'General', $url = '', $priority = 1) {
/*
* $category - Category that this notice should be displayed under. This can be arbitrary,
* but a page must be set to receive this messages for it to be displayed.
@@ -164,12 +164,13 @@ function print_notices($notices, $category = "all")
}
$categories = array_unique($categories);
sort($categories);
+ $toreturn = '';
foreach($categories as $category) {
$toreturn .= "
- {$category}
";
foreach($notices as $notice) {
if(strtolower($notice['category']) == strtolower($category)) {
- if($notice['id'] != "") {
- if($notice['url'] != "") {
+ if($notice['id'] != '') {
+ if($notice['url'] != '') {
$toreturn .= "- {$notice['id']} - {$notice['notice']}
";
} else {
$toreturn .= "- {$notice['id']} - {$notice['notice']}
";
diff --git a/src/etc/inc/plugins.inc.d/unbound.inc b/src/etc/inc/plugins.inc.d/unbound.inc
index adce4adaa..a6207dbfc 100644
--- a/src/etc/inc/plugins.inc.d/unbound.inc
+++ b/src/etc/inc/plugins.inc.d/unbound.inc
@@ -487,7 +487,7 @@ function unbound_add_domain_overrides($pvt = false)
$result[$domain_key][] = $domain['ip'];
}
- $domain_entries = "";
+ $domain_entries = '';
foreach ($result as $domain => $ips) {
if ($pvt == true) {
$domain_entries .= "private-domain: \"$domain\"\n";
@@ -607,7 +607,7 @@ function unbound_add_host_entries()
$added_item = array();
foreach ($config['unbound']['hosts'] as $host) {
- if ($host['host'] != "") {
+ if ($host['host'] != '') {
$host['host'] = $host['host'].".";
}
diff --git a/src/etc/inc/util.inc b/src/etc/inc/util.inc
index 268f95919..db5092cbb 100644
--- a/src/etc/inc/util.inc
+++ b/src/etc/inc/util.inc
@@ -178,7 +178,7 @@ function is_numericint($arg)
function gen_subnet($ipaddr, $bits)
{
if (!is_ipaddr($ipaddr) || !is_numeric($bits)) {
- return "";
+ return '';
}
return long2ip(ip2long($ipaddr) & gen_subnet_mask_long($bits));
}
@@ -199,7 +199,7 @@ function gen_subnetv6($ipaddr, $bits)
/* return the highest (broadcast) address in the subnet given a host address and a subnet bit count */
function gen_subnet_max($ipaddr, $bits) {
if (!is_ipaddr($ipaddr) || !is_numeric($bits)) {
- return "";
+ return '';
}
return long2ip32(ip2long($ipaddr) | ~gen_subnet_mask_long($bits));
@@ -477,7 +477,7 @@ function is_linklocal($ipaddr)
function get_ll_scope($addr)
{
if (!is_linklocal($addr) || !strstr($addr, "%")) {
- return "";
+ return '';
}
list ($ll, $scope) = explode("%", $addr);
return $scope;
@@ -1110,11 +1110,11 @@ function get_sysctl($names)
function get_single_sysctl($name)
{
if (empty($name)) {
- return "";
+ return '';
}
$value = get_sysctl($name);
if (empty($value) || !isset($value[$name])) {
- return "";
+ return '';
}
return $value[$name];
}
diff --git a/src/www/fbegin.inc b/src/www/fbegin.inc
index 82bc929b6..70af58a6f 100644
--- a/src/www/fbegin.inc
+++ b/src/www/fbegin.inc
@@ -98,13 +98,13 @@ if($need_alert_display == true) {
foreach($menuSystem as $topMenuItem): ?>
Children) >= 1): ?>
-
-