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 .= "