Skip to content

Commit

Permalink
minor cleanup; be consistent in lowercasing PHP keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
xzilla committed Mar 2, 2014
1 parent 53323b5 commit 94d7deb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion classes/Gui.php
Expand Up @@ -30,7 +30,7 @@ function printCombo(&$arrOptions, $szName, $bBlankEntry = true, $szDefault = '',
if ($bBlankEntry)
$htmlOut .= "<option value=\"\"></option>\n";

foreach ($arrOptions AS $curKey => $curVal) {
foreach ($arrOptions as $curKey => $curVal) {
$curVal = htmlspecialchars($curVal);
$curKey = htmlspecialchars($curKey);
if ($curVal == $szDefault) {
Expand Down
2 changes: 1 addition & 1 deletion classes/database/Postgres.php
Expand Up @@ -2408,7 +2408,7 @@ function getTableAutovacuum($table='') {
'relname' => $_autovacs->fields['relname']
);

foreach (explode(',', $_autovacs->fields['reloptions']) AS $var) {
foreach (explode(',', $_autovacs->fields['reloptions']) as $var) {
list($o, $v) = explode('=', $var);
$_[$o] = $v;
}
Expand Down
12 changes: 6 additions & 6 deletions views.php
Expand Up @@ -323,7 +323,7 @@ function doSetParamsCreate($msg = '') {
echo "</table>\n";
echo "<p><input type=\"hidden\" name=\"action\" value=\"save_create_wiz\" />\n";

foreach ($arrSelTables AS $curTable) {
foreach ($arrSelTables as $curTable) {
echo "<input type=\"hidden\" name=\"formTables[]\" value=\"" . htmlspecialchars(serialize($curTable) ) . "\" />\n";
}

Expand Down Expand Up @@ -445,7 +445,7 @@ function doSaveCreateWiz() {
if (! empty($_POST['dblFldMeth']) )
$tmpHsh = array();

foreach ($_POST['formFields'] AS $curField) {
foreach ($_POST['formFields'] as $curField) {
$arrTmp = unserialize($curField);
$data->fieldArrayClean($arrTmp);
if (! empty($_POST['dblFldMeth']) ) { // doublon control
Expand All @@ -470,7 +470,7 @@ function doSaveCreateWiz() {
if (is_array($_POST['formLink']) ) {
// Filter out invalid/blank entries for our links
$arrLinks = array();
foreach ($_POST['formLink'] AS $curLink) {
foreach ($_POST['formLink'] as $curLink) {
if (strlen($curLink['leftlink']) && strlen($curLink['rightlink']) && strlen($curLink['operator'])) {
$arrLinks[] = $curLink;
}
Expand All @@ -484,7 +484,7 @@ function doSaveCreateWiz() {
if ($count > 0) {
$j = 0;
while ($j < $count) {
foreach ($arrLinks AS $curLink) {
foreach ($arrLinks as $curLink) {

$arrLeftLink = unserialize($curLink['leftlink']);
$arrRightLink = unserialize($curLink['rightlink']);
Expand Down Expand Up @@ -516,7 +516,7 @@ function doSaveCreateWiz() {
//if linkfields has no length then either _POST['formLink'] was not set, or there were no join conditions
//just select from all seleted tables - a cartesian join do a
if (!strlen($linkFields) ) {
foreach ($_POST['formTables'] AS $curTable) {
foreach ($_POST['formTables'] as $curTable) {
$arrTmp = unserialize($curTable);
$data->fieldArrayClean($arrTmp);
$linkFields .= strlen($linkFields) ? ", \"{$arrTmp['schemaname']}\".\"{$arrTmp['tablename']}\"" : "\"{$arrTmp['schemaname']}\".\"{$arrTmp['tablename']}\"";
Expand All @@ -525,7 +525,7 @@ function doSaveCreateWiz() {

$addConditions = '';
if (is_array($_POST['formCondition']) ) {
foreach ($_POST['formCondition'] AS $curCondition) {
foreach ($_POST['formCondition'] as $curCondition) {
if (strlen($curCondition['field']) && strlen($curCondition['txt']) ) {
$arrTmp = unserialize($curCondition['field']);
$data->fieldArrayClean($arrTmp);
Expand Down

0 comments on commit 94d7deb

Please sign in to comment.