summaryrefslogtreecommitdiffstats
path: root/usr/local/www/interfaces_bridge_edit.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/interfaces_bridge_edit.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/interfaces_bridge_edit.php')
-rw-r--r--usr/local/www/interfaces_bridge_edit.php14
1 files changed, 8 insertions, 6 deletions
diff --git a/usr/local/www/interfaces_bridge_edit.php b/usr/local/www/interfaces_bridge_edit.php
index 59d9072..cef2493 100644
--- a/usr/local/www/interfaces_bridge_edit.php
+++ b/usr/local/www/interfaces_bridge_edit.php
@@ -89,7 +89,7 @@ if (isset($id) && $a_bridges[$id]) {
$pconfig['ifpriority'] = explode(",", $a_bridges[$id]['ifpriority']);
$ifpriority = array();
foreach ($pconfig['ifpriority'] as $cfg) {
- list ($key, $value) = explode(":", $cfg);
+ list ($key, $value) = explode(":", $cfg);
$embprioritycfg[$key] = $value;
foreach ($embprioritycfg as $key => $value) {
$ifpriority[$key] = $value;
@@ -101,7 +101,7 @@ if (isset($id) && $a_bridges[$id]) {
$pconfig['ifpathcost'] = explode(",", $a_bridges[$id]['ifpathcost']);
$ifpathcost = array();
foreach ($pconfig['ifpathcost'] as $cfg) {
- list ($key, $value) = explode(":", $cfg);
+ list ($key, $value) = explode(":", $cfg);
$embpathcfg[$key] = $value;
foreach ($embpathcfg as $key => $value) {
$ifpathcost[$key] = $value;
@@ -273,7 +273,7 @@ if ($_POST) {
}
}
-$pgtitle = array(gettext("Interfaces"),gettext("Bridge"),gettext("Edit"));
+$pgtitle = array(gettext("Interfaces"), gettext("Bridge"), gettext("Edit"));
$shortcut_section = "interfaces";
include("head.inc");
@@ -339,7 +339,7 @@ function show_source_port_range() {
</td>
</tr>
<tr style="display:none" id="sprtable1">
- <td valign="top" class="vncell" align="center"><?=gettext("RSTP/STP"); ?> </td>
+ <td valign="top" class="vncell" align="center"><?=gettext("RSTP/STP"); ?> </td>
<td class="vtable">
<input type="checkbox" name="enablestp" id="enablestp" <?php if ($pconfig['enablestp']) echo "checked=\"checked\"";?> />
<span class="vexpl"><strong><?=gettext("Enable spanning tree options for this bridge."); ?> </strong></span>
@@ -447,8 +447,10 @@ function show_source_port_range() {
<td valign="top" class="vncell" width="20%"><?=gettext("Priority"); ?></td>
<td class="vtable" width="80%">
<table summary="priority">
- <?php foreach ($ifacelist as $ifn => $ifdescr)
- echo "<tr><td>{$ifdescr}</td><td><input size=\"5\" name=\"{$ifn}\" type=\"text\" class=\"formfld unknown\" id=\"{$ifn}\" value=\"{$ifpriority[$ifn]}\" /></td></tr>";
+ <?php
+ foreach ($ifacelist as $ifn => $ifdescr) {
+ echo "<tr><td>{$ifdescr}</td><td><input size=\"5\" name=\"{$ifn}\" type=\"text\" class=\"formfld unknown\" id=\"{$ifn}\" value=\"{$ifpriority[$ifn]}\" /></td></tr>";
+ }
?>
<tr>
<td></td>
OpenPOWER on IntegriCloud