diff options
author | Phil Davis <phil.davis@inf.org> | 2015-06-15 14:19:11 +0545 |
---|---|---|
committer | Phil Davis <phil.davis@inf.org> | 2015-06-15 14:19:11 +0545 |
commit | 6c07db487164262f9191ad02805523bd153e0ba6 (patch) | |
tree | 0c266356179ac730233a16c0e3767a0c22514c4d /usr/local/www/status_graph.php | |
parent | 67d9685607eef7c679fda929ad4855be1b2f9dec (diff) | |
download | pfsense-6c07db487164262f9191ad02805523bd153e0ba6.zip pfsense-6c07db487164262f9191ad02805523bd153e0ba6.tar.gz |
Code spacing
and other random stuff I noticed.
I think this finishes messing with code style. The codebase should match
the developer style guide closely enough that 99.9% of changes will not
feel the need to also massage the formatting.
Diffstat (limited to 'usr/local/www/status_graph.php')
-rw-r--r-- | usr/local/www/status_graph.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/status_graph.php b/usr/local/www/status_graph.php index 28d13c1..2e78faf 100644 --- a/usr/local/www/status_graph.php +++ b/usr/local/www/status_graph.php @@ -78,7 +78,7 @@ foreach (array('server', 'client') as $mode) { if ($_GET['if']) { $curif = $_GET['if']; $found = false; - foreach($ifdescrs as $descr => $ifdescr) { + foreach ($ifdescrs as $descr => $ifdescr) { if ($descr == $curif) { $found = true; break; @@ -113,7 +113,7 @@ if ($_GET['hostipformat']) { $curhostipformat = ""; } -$pgtitle = array(gettext("Status"),gettext("Traffic Graph")); +$pgtitle = array(gettext("Status"), gettext("Traffic Graph")); include("head.inc"); @@ -158,7 +158,7 @@ function updateBandwidthHosts(data) { var hosts_split = data.split("|"); d = document; //parse top ten bandwidth abuser hosts - for (var y=0; y<10; y++) { + for (var y = 0; y < 10; y++) { if ((y < hosts_split.length) && (hosts_split[y] != "") && (hosts_split[y] != "no info")) { hostinfo = hosts_split[y].split(";"); @@ -250,7 +250,7 @@ if (isset($config['ipsec']['enable']) || isset($config['ipsec']['client']['enabl <div id="col2" style="float: right; width: 48%; padding: 5px; position: relative;"> <table width="100%" border="0" cellspacing="0" cellpadding="0" summary="status"> <tr> - <td class="listtopic" valign="top"><?=(($curhostipformat=="") ? gettext("Host IP") : gettext("Host Name or IP")); ?></td> + <td class="listtopic" valign="top"><?=(($curhostipformat == "") ? gettext("Host IP") : gettext("Host Name or IP")); ?></td> <td class="listtopic" valign="top"><?=gettext("Bandwidth In"); ?></td> <td class="listtopic" valign="top"><?=gettext("Bandwidth Out"); ?></td> </tr> |