');
-foreach($config['discovery_modules'] as $module => $module_status)
+foreach ($config['discovery_modules'] as $module => $module_status)
{
if (!is_integer($i/2)) { $bg_colour = $list_colour_a; } else { $bg_colour = $list_colour_b; }
echo('
'.$module.'
');
diff --git a/html/pages/device/overview/mempools.inc.php b/html/pages/device/overview/mempools.inc.php
index 2e9bec10b..aaa8f274d 100644
--- a/html/pages/device/overview/mempools.inc.php
+++ b/html/pages/device/overview/mempools.inc.php
@@ -13,7 +13,7 @@ if (count($mempools))
echo("
");
$mempool_rows = '0';
- foreach($mempools as $mempool)
+ foreach ($mempools as $mempool)
{
if (is_integer($mempool_rows/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
$percent= round($mempool['mempool_perc'],0);
diff --git a/html/pages/device/overview/processors.inc.php b/html/pages/device/overview/processors.inc.php
index 3953904fb..8645f69c9 100644
--- a/html/pages/device/overview/processors.inc.php
+++ b/html/pages/device/overview/processors.inc.php
@@ -13,7 +13,7 @@ if (count($processors))
echo(" Processors");
echo("
");
- foreach($processors as $proc)
+ foreach ($processors as $proc)
{
if (is_integer($processor_rows/2)) { $row_colour = $list_colour_a; } else { $row_colour = $list_colour_b; }
## REPLACE THIS SHITTY CODE. IT IS ALSO ELSEWHERE.
diff --git a/html/pages/device/port/realtime.inc.php b/html/pages/device/port/realtime.inc.php
index cde53e704..87fd8a851 100644
--- a/html/pages/device/port/realtime.inc.php
+++ b/html/pages/device/port/realtime.inc.php
@@ -14,7 +14,7 @@ print_optionbar_start();
echo("Polling Interval: ");
-foreach(array(0.25, 1, 2, 5, 15, 60) as $interval)
+foreach (array(0.25, 1, 2, 5, 15, 60) as $interval)
{
echo($thinger);
if ($vars['interval'] == $interval) { echo(""); }
diff --git a/html/pages/device/ports.inc.php b/html/pages/device/ports.inc.php
index b8fb777ec..c961379d9 100644
--- a/html/pages/device/ports.inc.php
+++ b/html/pages/device/ports.inc.php
@@ -100,7 +100,7 @@ if ($vars['view'] == 'minigraphs')
$ports = dbFetchRows("SELECT * FROM `ports` WHERE `device_id` = ? AND `deleted` = '0' ORDER BY `ifIndex` ASC", array($device['device_id']));
### As we've dragged the whole database, lets pre-populate our caches :)
### FIXME - we should probably split the fetching of link/stack/etc into functions and cache them here too to cut down on single row queries.
- foreach($ports as $port)
+ foreach ($ports as $port)
{
$port_cache[$port['interface_id']] = $port;
$port_index_cache[$port['device_id']][$port['ifIndex']] = $port;
diff --git a/html/pages/device/ports/neighbours.inc.php b/html/pages/device/ports/neighbours.inc.php
index 8c1ea6feb..ac666ff10 100644
--- a/html/pages/device/ports/neighbours.inc.php
+++ b/html/pages/device/ports/neighbours.inc.php
@@ -10,7 +10,7 @@ echo('
Local Port
Protocol
');
-foreach(dbFetchRows("SELECT * FROM links AS L, ports AS I WHERE I.device_id = ? AND I.interface_id = L.local_interface_id", array($device['device_id'])) as $neighbour)
+foreach (dbFetchRows("SELECT * FROM links AS L, ports AS I WHERE I.device_id = ? AND I.interface_id = L.local_interface_id", array($device['device_id'])) as $neighbour)
{
if ($bg_colour == $list_colour_b) { $bg_colour = $list_colour_a; } else { $bg_colour = $list_colour_b; }
diff --git a/html/pages/devices.inc.php b/html/pages/devices.inc.php
index 6f805ccc4..c252bc0b5 100644
--- a/html/pages/devices.inc.php
+++ b/html/pages/devices.inc.php
@@ -34,7 +34,7 @@ if($vars['searchbar'] != "hide")
All Versions
All Featuresets
All Device Types