From 6335b10574c1ea2ac6ffb9d687b2d576e7d7271a Mon Sep 17 00:00:00 2001
From: Madhura Jayaratne
Date: Wed, 8 Jan 2014 14:35:15 +0530
Subject: [PATCH] Fix coding style
Signed-off-by: Madhura Jayaratne
---
db_structure.php | 2 +-
db_tracking.php | 2 +-
gis_data_editor.php | 2 +-
import.php | 2 +-
index.php | 4 +-
libraries/DatabaseInterface.class.php | 4 +-
libraries/DisplayResults.class.php | 26 +++++-----
libraries/Footer.class.php | 2 +-
libraries/StorageEngine.class.php | 2 +-
libraries/Table.class.php | 2 +-
libraries/TableSearch.class.php | 8 +--
libraries/Tracker.class.php | 2 +-
libraries/Util.class.php | 34 ++++++------
libraries/create_addfield.lib.php | 2 +-
libraries/error_report.lib.php | 32 ++++++------
libraries/import.lib.php | 4 +-
libraries/sql.lib.php | 4 +-
libraries/sql_query_form.lib.php | 52 +++++++++----------
libraries/sqlparser.lib.php | 2 +-
libraries/structure.lib.php | 40 +++++++-------
libraries/tbl_columns_definition_form.lib.php | 4 +-
libraries/tbl_printview.lib.php | 8 +--
22 files changed, 120 insertions(+), 120 deletions(-)
diff --git a/db_structure.php b/db_structure.php
index eba2b5e1e7..e848ad641e 100644
--- a/db_structure.php
+++ b/db_structure.php
@@ -28,7 +28,7 @@ if ((!empty($_POST['submit_mult']) && isset($_POST['selected_tbl']))
|| isset($_POST['mult_btn'])
) {
$action = 'db_structure.php';
- $err_url = 'db_structure.php?'. PMA_URL_getCommon($db);
+ $err_url = 'db_structure.php?' . PMA_URL_getCommon($db);
// see bug #2794840; in this case, code path is:
// db_structure.php -> libraries/mult_submits.inc.php -> sql.php
diff --git a/db_tracking.php b/db_tracking.php
index 2615315594..98512651f7 100644
--- a/db_tracking.php
+++ b/db_tracking.php
@@ -218,7 +218,7 @@ if (isset($my_tables)) {
foreach ($my_tables as $key => $tablename) {
if (PMA_Tracker::getVersion($GLOBALS['db'], $tablename) == -1) {
$my_link = '';
+ . '&table=' . htmlspecialchars($tablename) . '">';
$my_link .= PMA_Util::getIcon('eye.png', __('Track table'));
$my_link .= '';
?>
diff --git a/gis_data_editor.php b/gis_data_editor.php
index 844a8a064c..17d0eac747 100644
--- a/gis_data_editor.php
+++ b/gis_data_editor.php
@@ -240,7 +240,7 @@ for ($a = 0; $a < $geom_count; $a++) {
echo '';
echo '';
+ . ' value="' . escape($gis_data[$a][$type][$i]['y']) . '" />';
}
echo ' 0 || count($cfg['Servers']) > 1
echo ' ' . "\n";
@@ -5487,7 +5487,7 @@ class PMA_DisplayResults
$size = strlen($content);
$display_size = PMA_Util::formatByteDown($size, 3, 1);
- $result .= ' - '. $display_size[0] . ' ' . $display_size[1];
+ $result .= ' - ' . $display_size[0] . ' ' . $display_size[1];
} else {
@@ -5743,7 +5743,7 @@ class PMA_DisplayResults
);
$result .= '';
+ . PMA_URL_getCommon($_url_params_for_show_data_row) . '" />';
}
diff --git a/libraries/Footer.class.php b/libraries/Footer.class.php
index e22b365ad8..06e394dd27 100644
--- a/libraries/Footer.class.php
+++ b/libraries/Footer.class.php
@@ -73,7 +73,7 @@ class PMA_Footer
$message .= sprintf(
__('Currently running Git revision %1$s from the %2$s branch.'),
''
- . $revision .'',
+ . $revision . '',
''
. $branch . ''
);
diff --git a/libraries/StorageEngine.class.php b/libraries/StorageEngine.class.php
index 54f8e446b7..934fbe5259 100644
--- a/libraries/StorageEngine.class.php
+++ b/libraries/StorageEngine.class.php
@@ -148,7 +148,7 @@ class PMA_StorageEngine
continue;
}
- $output .= '
' . "\n"
- .'' . "\n"
+ . '
' . "\n"
. $formatted_sql . "\n"
. '
' . "\n";
} // end if
@@ -1739,17 +1739,17 @@ class PMA_Util
}
//Set the id for the tab, if set in the params
- $id_string = ( empty($tab['id']) ? '' : ' id="'.$tab['id'].'" ' );
+ $id_string = ( empty($tab['id']) ? '' : ' id="' . $tab['id'] . '" ' );
$out = '';
if (! empty($tab['link'])) {
$out .= ''
+ . $id_string
+ . ' href="' . $tab['link'] . '" ' . $tab['attr'] . '>'
. $tab['text'] . '';
} else {
$out .= '' . $tab['text'] . '';
+ . $id_string . '>' . $tab['text'] . '';
}
$out .= '';
@@ -1776,7 +1776,7 @@ class PMA_Util
$tab_navigation = '' . "\n";
+ . ''
+ . '' . "\n";
return $tab_navigation;
}
@@ -2275,8 +2275,8 @@ class PMA_Util
if ($GLOBALS['cfg']['ActionLinksMode'] == 'text') {
return ' ' . "\n";
+ . ' value="' . htmlspecialchars($value) . '"'
+ . ' title="' . htmlspecialchars($text) . '" />' . "\n";
}
/* Opera has trouble with */
@@ -2286,16 +2286,16 @@ class PMA_Util
. '" class="' . $button_class
. '" value="' . htmlspecialchars($value)
. '" title="' . htmlspecialchars($text)
- . '" src="' . $GLOBALS['pmaThemeImage']. $image . '" />'
+ . '" src="' . $GLOBALS['pmaThemeImage'] . $image . '" />'
. ($GLOBALS['cfg']['ActionLinksMode'] == 'both'
? ' ' . htmlspecialchars($text)
: '') . "\n";
} else {
return '' . "\n";
+ . '' . "\n";
}
} // end function
@@ -2498,8 +2498,8 @@ class PMA_Util
. '';
}
- $list_navigator_html .= '