summaryrefslogtreecommitdiffstats
path: root/usr/local/www/diag_logs_filter_summary.php
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@inf.org>2015-06-15 14:19:11 +0545
committerPhil Davis <phil.davis@inf.org>2015-06-15 14:19:11 +0545
commit6c07db487164262f9191ad02805523bd153e0ba6 (patch)
tree0c266356179ac730233a16c0e3767a0c22514c4d /usr/local/www/diag_logs_filter_summary.php
parent67d9685607eef7c679fda929ad4855be1b2f9dec (diff)
downloadpfsense-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/diag_logs_filter_summary.php')
-rw-r--r--usr/local/www/diag_logs_filter_summary.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr/local/www/diag_logs_filter_summary.php b/usr/local/www/diag_logs_filter_summary.php
index fe10383..331df0d 100644
--- a/usr/local/www/diag_logs_filter_summary.php
+++ b/usr/local/www/diag_logs_filter_summary.php
@@ -54,7 +54,7 @@ $fields = array(
$summary = array();
foreach (array_keys($fields) as $f) {
- $summary[$f] = array();
+ $summary[$f] = array();
}
$totals = array();
@@ -74,7 +74,7 @@ function stat_block($summary, $stat, $num) {
$k = array_keys($summary[$stat]);
$total = 0;
$numentries = 0;
- for ($i=0; $i < $num; $i++) {
+ for ($i = 0; $i < $num; $i++) {
if ($k[$i]) {
$total += $summary[$stat][$k[$i]];
$numentries++;
@@ -106,7 +106,7 @@ function pie_block($summary, $stat, $num) {
$numentries = 0;
print "\n<script type=\"text/javascript\">\n";
print "//<![CDATA[\n";
- for ($i=0; $i < $num; $i++) {
+ for ($i = 0; $i < $num; $i++) {
if ($k[$i]) {
$total += $summary[$stat][$k[$i]];
$numentries++;
@@ -123,7 +123,7 @@ function pie_block($summary, $stat, $num) {
print "Event.observe(window, 'load', function() {\n";
print " new Proto.Chart($('piechart{$stat}'),\n";
print " [\n";
- for ($i=0; $i < $num; $i++) {
+ for ($i = 0; $i < $num; $i++) {
if ($k[$i]) {
print " { data: d{$stat}{$i}, label: \"{$k[$i]}\"}";
if (!(($i == ($numentries - 1)) && ($leftover <= 0))) {
OpenPOWER on IntegriCloud