diff --git a/browse_foreigners.php b/browse_foreigners.php
index b20007f8a4..b6f2d8b4c9 100644
--- a/browse_foreigners.php
+++ b/browse_foreigners.php
@@ -214,7 +214,6 @@ if (is_array($foreignData['disp_row'])) {
$val_ordered_current_equals_data = false;
$key_ordered_current_equals_data = false;
foreach ($keys as $key_ordered_current_row => $value) {
- //for ($i = 0; $i < $count; $i++) {
$hcount++;
if ($cfg['RepeatCells'] > 0 && $hcount > $cfg['RepeatCells']) {
diff --git a/db_datadict.php b/db_datadict.php
index 4a1d51774e..3ce6d6022d 100644
--- a/db_datadict.php
+++ b/db_datadict.php
@@ -124,9 +124,11 @@ foreach ($tables as $table) {
// and SHOW CREATE TABLE says NOT NULL
// http://bugs.mysql.com/20910.
+ $show_create_table_query = 'SHOW CREATE TABLE '
+ . PMA_CommonFunctions::getInstance()->backquote($db) . '.'
+ . PMA_CommonFunctions::getInstance()->backquote($table);
$show_create_table = PMA_DBI_fetch_value(
- 'SHOW CREATE TABLE ' . PMA_CommonFunctions::getInstance()->backquote($db) . '.' . PMA_CommonFunctions::getInstance()->backquote($table),
- 0, 1
+ $show_create_table_query, 0, 1
);
$analyzed_sql = PMA_SQP_analyze(PMA_SQP_parse($show_create_table));
}
@@ -185,7 +187,7 @@ foreach ($tables as $table) {
}
$extracted_columnspec
= PMA_CommonFunctions::getInstance()->extractColumnSpec($row['Type']);
-
+
// reformat mysql query output
// set or enum types: slashes single quotes inside options
if ('set' == $extracted_columnspec['type'] || 'enum' == $extracted_columnspec['type']) {
diff --git a/db_operations.php b/db_operations.php
index bed41307b5..cfd4d5b14a 100644
--- a/db_operations.php
+++ b/db_operations.php
@@ -33,8 +33,9 @@ $common_functions = PMA_CommonFunctions::getInstance();
/**
* Rename/move or copy database
*/
-if (strlen($db) && (! empty($_REQUEST['db_rename']) || ! empty($_REQUEST['db_copy']))) {
-
+if (strlen($db)
+ && (! empty($_REQUEST['db_rename']) || ! empty($_REQUEST['db_copy']))
+) {
if (! empty($_REQUEST['db_rename'])) {
$move = true;
} else {
@@ -70,7 +71,7 @@ if (strlen($db) && (! empty($_REQUEST['db_rename']) || ! empty($_REQUEST['db_cop
// remove all foreign key constraints, otherwise we can get errors
$export_sql_plugin = PMA_getPlugin(
"export",
- "sql",
+ "sql",
'libraries/plugins/export/',
array(
'single_table' => isset($single_table),
@@ -82,7 +83,7 @@ if (strlen($db) && (! empty($_REQUEST['db_rename']) || ! empty($_REQUEST['db_cop
$tables_full, $export_sql_plugin, $move, $db
);
- $views = PMA_getViewsAndCreateSqlViewStandIn(
+ $views = PMA_getViewsAndCreateSqlViewStandIn(
$tables_full, $export_sql_plugin, $db
);
@@ -113,7 +114,7 @@ if (strlen($db) && (! empty($_REQUEST['db_rename']) || ! empty($_REQUEST['db_cop
// Duplicate the bookmarks for this db (done once for each db)
PMA_duplicateBookmarks($_error, $db);
-
+
if (! $_error && $move) {
/**
* cleanup pmadb stuff for this db
@@ -140,7 +141,9 @@ if (strlen($db) && (! empty($_REQUEST['db_rename']) || ! empty($_REQUEST['db_cop
if (! $_error && $move) {
$db = $_REQUEST['newname'];
} elseif (! $_error) {
- if (isset($_REQUEST['switch_to_new']) && $_REQUEST['switch_to_new'] == 'true') {
+ if (isset($_REQUEST['switch_to_new'])
+ && $_REQUEST['switch_to_new'] == 'true'
+ ) {
$GLOBALS['PMA_Config']->setCookie('pma_switch_to_new', 'true');
$db = $_REQUEST['newname'];
} else {
@@ -213,7 +216,7 @@ if (!$is_information_schema) {
*/
$response->addHTML(PMA_getHtmlForDatabaseComment($db));
}
-
+
$response->addHTML('
');
ob_start();
include 'libraries/display_create_table.lib.php';
@@ -230,7 +233,8 @@ if (!$is_information_schema) {
}
// Drop link if allowed
- // Don't even try to drop information_schema. You won't be able to. Believe me. You won't.
+ // Don't even try to drop information_schema.
+ // You won't be able to. Believe me. You won't.
// Don't allow to easily drop mysql database, RFE #1327514.
if (($is_superuser || $GLOBALS['cfg']['AllowUserDropDatabase'])
&& ! $db_is_information_schema
diff --git a/db_qbe.php b/db_qbe.php
index f7628c5fc0..940758cccf 100644
--- a/db_qbe.php
+++ b/db_qbe.php
@@ -54,13 +54,15 @@ if ($cfgRelation['designerwork']) {
array('query' => 1)
)
);
- $response->addHTML(PMA_Message::notice(
- sprintf(
- __('Switch to %svisual builder%s'),
- '
',
- ' '
+ $response->addHTML(
+ PMA_Message::notice(
+ sprintf(
+ __('Switch to %svisual builder%s'),
+ '
',
+ ' '
+ )
)
- ));//->display();
+ );
}
$response->addHTML($db_qbe->getSelectionForm($cfgRelation));
?>
diff --git a/db_structure.php b/db_structure.php
index 7d71d7562d..95af33d04b 100644
--- a/db_structure.php
+++ b/db_structure.php
@@ -117,7 +117,8 @@ if (isset($_REQUEST['sort_order'])) {
$_url_params['sort_order'] = $_REQUEST['sort_order'];
}
-$response->addHTML($common_functions->getListNavigator(
+$response->addHTML(
+ $common_functions->getListNavigator(
$total_num_tables, $pos, $_url_params, 'db_structure.php',
'frame_content', $GLOBALS['cfg']['MaxTableList']
)
@@ -126,7 +127,7 @@ $response->addHTML($common_functions->getListNavigator(
// tables form
$response->addHTML(
'
'); //end of form
diff --git a/db_tracking.php b/db_tracking.php
index 24d63417f9..daeeb170b3 100644
--- a/db_tracking.php
+++ b/db_tracking.php
@@ -171,8 +171,7 @@ foreach ($table_list as $key => $value) {
}
}
}
- // If $value is a table.
- } else {
+ } else { // If $value is a table.
if (PMA_Tracker::getVersion($GLOBALS['db'], $value['Name']) == -1) {
$my_tables[] = $value['Name'];
}
diff --git a/export.php b/export.php
index abe366d99f..6aabeb2ac5 100644
--- a/export.php
+++ b/export.php
@@ -324,7 +324,8 @@ if ($asfile) {
$filename = PMA_sanitizeFilename($filename);
// Grab basic dump extension and mime type
- // Check if the user already added extension; get the substring where the extension would be if it was included
+ // Check if the user already added extension;
+ // get the substring where the extension would be if it was included
$extension_start_pos = strlen($filename) - strlen(
$export_plugin->getProperties()->getExtension()
) - 1;
@@ -359,22 +360,21 @@ if ($save_on_server) {
|| ($quick_export
&& $_REQUEST['quick_export_onserverover'] != 'saveitover'))
) {
- $message = PMA_Message::error(__(
- 'File %s already exists on server, change filename or check'
- . ' overwrite option.'
- ));
+ $message = PMA_Message::error(
+ __('File %s already exists on server, change filename or check overwrite option.')
+ );
$message->addParam($save_filename);
} else {
if (is_file($save_filename) && ! is_writable($save_filename)) {
- $message = PMA_Message::error(__(
- 'The web server does not have permission to save the file %s.'
- ));
+ $message = PMA_Message::error(
+ __('The web server does not have permission to save the file %s.')
+ );
$message->addParam($save_filename);
} else {
if (! $file_handle = @fopen($save_filename, 'w')) {
- $message = PMA_Message::error(__(
- 'The web server does not have permission to save the file %s.'
- ));
+ $message = PMA_Message::error(
+ __('The web server does not have permission to save the file %s.')
+ );
$message->addParam($save_filename);
}
}
@@ -624,7 +624,9 @@ do {
}
// now export the triggers (needs to be done after the data because
// triggers can modify already imported tables)
- if ($GLOBALS[$what . '_structure_or_data'] == 'structure' || $GLOBALS[$what . '_structure_or_data'] == 'structure_and_data') {
+ if ($GLOBALS[$what . '_structure_or_data'] == 'structure'
+ || $GLOBALS[$what . '_structure_or_data'] == 'structure_and_data'
+ ) {
if (! $export_plugin->exportStructure(
$db, $table, $crlf, $err_url,
'triggers', $export_type,
@@ -636,7 +638,9 @@ do {
}
foreach ($views as $view) {
// no data export for a view
- if ($GLOBALS[$what . '_structure_or_data'] == 'structure' || $GLOBALS[$what . '_structure_or_data'] == 'structure_and_data') {
+ if ($GLOBALS[$what . '_structure_or_data'] == 'structure'
+ || $GLOBALS[$what . '_structure_or_data'] == 'structure_and_data'
+ ) {
if (! $export_plugin->exportStructure(
$db, $view, $crlf, $err_url,
'create_view', $export_type,
@@ -665,7 +669,9 @@ do {
}
$is_view = PMA_Table::isView($db, $table);
- if ($GLOBALS[$what . '_structure_or_data'] == 'structure' || $GLOBALS[$what . '_structure_or_data'] == 'structure_and_data') {
+ if ($GLOBALS[$what . '_structure_or_data'] == 'structure'
+ || $GLOBALS[$what . '_structure_or_data'] == 'structure_and_data'
+ ) {
if (! $export_plugin->exportStructure(
$db, $table, $crlf, $err_url,
$is_view ? 'create_view' : 'create_table', $export_type,
@@ -693,9 +699,7 @@ do {
$local_query = 'SELECT * FROM ' . $common_functions->backquote($db)
. '.' . $common_functions->backquote($table) . $add_query;
}
- if (! $export_plugin->exportData($db, $table, $crlf, $err_url,
- $local_query
- )) {
+ if (! $export_plugin->exportData($db, $table, $crlf, $err_url, $local_query)) {
break;
}
}
diff --git a/import.php b/import.php
index f34fa70c53..4df85995a9 100644
--- a/import.php
+++ b/import.php
@@ -301,7 +301,7 @@ if (! empty($local_import_file) && ! empty($cfg['UploadDir'])) {
$import_file = $common_functions->userDir($cfg['UploadDir'])
. $local_import_file;
-
+
} elseif (empty($import_file) || ! is_uploaded_file($import_file)) {
$import_file = 'none';
}
@@ -530,7 +530,9 @@ if (strlen($sql_query) <= $GLOBALS['cfg']['MaxCharactersInDisplayedSQL']) {
// There was an error?
if (isset($my_die)) {
foreach ($my_die AS $key => $die) {
- $common_functions->mysqlDie($die['error'], $die['sql'], '', $err_url, $error);
+ $common_functions->mysqlDie(
+ $die['error'], $die['sql'], '', $err_url, $error
+ );
}
}
diff --git a/navigation.php b/navigation.php
index c74184c502..f0725e4919 100644
--- a/navigation.php
+++ b/navigation.php
@@ -85,8 +85,8 @@ $header->disableMenu();
$header->setBodyId('body_leftFrame');
$scripts = $header->getScripts();
$scripts->addFile('navigation.js');
-$scripts->addCode('
- // INIT PMA_setFrameSize
+$scripts->addCode(
+ '// INIT PMA_setFrameSize
var onloadCnt = 0;
var onLoadHandler = window.onload;
var resizeHandler = window.onresize;
@@ -113,8 +113,8 @@ $scripts->addCode('
) {
PMA_saveFrameSize();
}
- };
-');
+ };'
+);
require 'libraries/navigation_header.inc.php';
@@ -339,7 +339,7 @@ function PMA_displayDbList($ext_dblist, $offset, $count)
{
global $element_counter, $img_minus, $img_plus, $href_left,
$db_start, $common_url_query;
-
+
$common_functions = PMA_CommonFunctions::getInstance();
// get table list, for all databases
@@ -530,9 +530,9 @@ function PMA_displayTableList(
$tables, $visible = false,
$tab_group_full = '', $table_db = ''
) {
-
+
$common_functions = PMA_CommonFunctions::getInstance();
-
+
if (! is_array($tables) || count($tables) === 0) {
return;
}
diff --git a/pmd_pdf.php b/pmd_pdf.php
index 69260da7cd..fc9798715b 100644
--- a/pmd_pdf.php
+++ b/pmd_pdf.php
@@ -95,7 +95,7 @@ $header->disableMenu();
display();
}
?>
diff --git a/pmd_relation_upd.php b/pmd_relation_upd.php
index 3e81ee258b..9e1fd18a6a 100644
--- a/pmd_relation_upd.php
+++ b/pmd_relation_upd.php
@@ -37,9 +37,9 @@ if ($common_functions->isForeignKeySupported($type_T1)
if (isset($existrel_foreign[$F2]['constraint'])) {
$upd_query = 'ALTER TABLE ' . $common_functions->backquote($DB2)
- . '.' . $common_functions->backquote($T2) . ' DROP FOREIGN KEY '
- . $common_functions->backquote($existrel_foreign[$F2]['constraint'])
- . ';';
+ . '.' . $common_functions->backquote($T2) . ' DROP FOREIGN KEY '
+ . $common_functions->backquote($existrel_foreign[$F2]['constraint'])
+ . ';';
$upd_rs = PMA_DBI_query($upd_query);
} else {
// there can be an internal relation even if InnoDB
diff --git a/pmd_save_pos.php b/pmd_save_pos.php
index a009ef146a..92af5ee1dc 100644
--- a/pmd_save_pos.php
+++ b/pmd_save_pos.php
@@ -76,10 +76,10 @@ function PMD_err_sav()
}
if (! empty($die_save_pos)) {
- header("Content-Type: text/xml; charset=utf-8");
- header("Cache-Control: no-cache");
-?>
-
'>
-
+
'>
+
diff --git a/server_binlog.php b/server_binlog.php
index e3d25dcd07..873c3da3e7 100644
--- a/server_binlog.php
+++ b/server_binlog.php
@@ -137,7 +137,8 @@ if ($pos > 0) {
$this_url_params['pos'] = $pos - $GLOBALS['cfg']['MaxRows'];
}
- echo '
';
} else {
diff --git a/server_databases.php b/server_databases.php
index d31c07ce8a..1cfbee94d0 100644
--- a/server_databases.php
+++ b/server_databases.php
@@ -113,7 +113,13 @@ if ((isset($_REQUEST['drop_selected_dbs']) || isset($_REQUEST['query_type']))
} else {
$number_of_databases = 0;
}
- $message = PMA_Message::success(_ngettext('%1$d database has been dropped successfully.', '%1$d databases have been dropped successfully.', $number_of_databases));
+ $message = PMA_Message::success(
+ _ngettext(
+ '%1$d database has been dropped successfully.',
+ '%1$d databases have been dropped successfully.',
+ $number_of_databases
+ )
+ );
$message->addParam($number_of_databases);
}
}
@@ -207,10 +213,10 @@ if ($databases_count > 0) {
$_url_params['sort_by'] = $stat_name;
$_url_params['sort_order'] = ($sort_by == $stat_name && $sort_order == 'desc') ? 'asc' : 'desc';
echo ' '
- .'' . "\n"
- .' ' . $stat['disp_name'] . "\n"
- .($sort_by == $stat_name ? ' ' . $common_functions->getImage('s_' . $sort_order . '.png', ($sort_order == 'asc' ? __('Ascending') : __('Descending'))) . "\n" : '')
- .' ' . "\n";
+ . '
' . "\n"
+ . ' ' . $stat['disp_name'] . "\n"
+ . ($sort_by == $stat_name ? ' ' . $common_functions->getImage('s_' . $sort_order . '.png', ($sort_order == 'asc' ? __('Ascending') : __('Descending'))) . "\n" : '')
+ . ' ' . "\n";
}
}
@@ -242,7 +248,15 @@ if ($databases_count > 0) {
echo '
' . "\n";
$odd_row = ! $odd_row;
- list($column_order, $generated_html) = PMA_buildHtmlForDb($current, $is_superuser, (isset($checkall) ? $checkall : ''), $url_query, $column_order, $replication_types, $replication_info);
+ list($column_order, $generated_html) = PMA_buildHtmlForDb(
+ $current,
+ $is_superuser,
+ (isset($checkall) ? $checkall : ''),
+ $url_query,
+ $column_order,
+ $replication_types,
+ $replication_info
+ );
echo $generated_html;
@@ -294,21 +308,35 @@ if ($databases_count > 0) {
unset($column_order, $stat_name, $stat, $databases, $table_columns);
if ($is_superuser || $cfg['AllowUserDropDatabase']) {
- $common_url_query = PMA_generate_common_url(array('sort_by' => $sort_by, 'sort_order' => $sort_order, 'dbstats' => $dbstats));
- echo ' ' . "\n"
+ $common_url_query = PMA_generate_common_url(
+ array(
+ 'sort_by' => $sort_by,
+ 'sort_order' => $sort_order,
+ 'dbstats' => $dbstats
+ )
+ );
+ echo ' ' . "\n"
. ' '
. '' . __('Check All') . ' '
. '' . __('With selected:') . ' ' . "\n";
- echo $common_functions->getButtonOrImage('drop_selected_dbs', 'mult_submit' . ($cfg['AjaxEnable'] ? ' ajax' : ''), 'drop_selected_dbs', __('Drop'), 'b_deltbl.png');
+ echo $common_functions->getButtonOrImage(
+ 'drop_selected_dbs',
+ 'mult_submit' . ($cfg['AjaxEnable'] ? ' ajax' : ''),
+ 'drop_selected_dbs',
+ __('Drop'), 'b_deltbl.png'
+ );
}
if (empty($dbstats)) {
echo '' . "\n";
}
echo '';
diff --git a/server_privileges.php b/server_privileges.php
index 7fa9c48672..106685d1e3 100644
--- a/server_privileges.php
+++ b/server_privileges.php
@@ -146,9 +146,9 @@ if (isset($dbname)) {
if (! $is_superuser) {
$response->addHTML(
'' . "\n"
- . $common_functions->getIcon('b_usrlist.png')
- . __('Privileges') . "\n"
- . ' ' . "\n"
+ . $common_functions->getIcon('b_usrlist.png')
+ . __('Privileges') . "\n"
+ . '' . "\n"
);
$response->addHTML(PMA_Message::error(__('No Privileges'))->getDisplay());
exit;
diff --git a/server_variables.php b/server_variables.php
index 5617b89f25..7984009f42 100644
--- a/server_variables.php
+++ b/server_variables.php
@@ -40,7 +40,8 @@ if (isset($_REQUEST['ajax_request']) && $_REQUEST['ajax_request'] == true) {
header('Content-Type: text/html; charset=UTF-8');
$varValue = PMA_DBI_fetch_single_row(
'SHOW GLOBAL VARIABLES WHERE Variable_name="'
- . $common_functions->sqlAddSlashes($_REQUEST['varName']) . '";', 'NUM'
+ . $common_functions->sqlAddSlashes($_REQUEST['varName']) . '";',
+ 'NUM'
);
if (isset($VARIABLE_DOC_LINKS[$_REQUEST['varName']][3])
&& $VARIABLE_DOC_LINKS[$_REQUEST['varName']][3] == 'byte'
@@ -167,12 +168,16 @@ foreach ($serverVars as $name => $value) {
function formatVariable($name, $value)
{
global $VARIABLE_DOC_LINKS;
-
+
$common_functions = PMA_CommonFunctions::getInstance();
if (is_numeric($value)) {
- if (isset($VARIABLE_DOC_LINKS[$name][3]) && $VARIABLE_DOC_LINKS[$name][3]=='byte') {
- return ''.implode(' ', $common_functions->formatByteDown($value, 3, 3)).' ';
+ if (isset($VARIABLE_DOC_LINKS[$name][3])
+ && $VARIABLE_DOC_LINKS[$name][3]=='byte'
+ ) {
+ return ''
+ . implode(' ', $common_functions->formatByteDown($value, 3, 3))
+ . ' ';
} else {
return $common_functions->formatNumber($value, 0);
}
diff --git a/sql.php b/sql.php
index fedf75fff4..7abf5732c6 100644
--- a/sql.php
+++ b/sql.php
@@ -96,8 +96,8 @@ if (! empty($goto)) {
if (! isset($err_url)) {
$err_url = (! empty($back) ? $back : $goto)
- . '?' . PMA_generate_common_url($db)
- . ((strpos(' ' . $goto, 'db_') != 1 && strlen($table)) ? '&table=' . urlencode($table) : '');
+ . '?' . PMA_generate_common_url($db)
+ . ((strpos(' ' . $goto, 'db_') != 1 && strlen($table)) ? '&table=' . urlencode($table) : '');
} // end if
// Coming from a bookmark dialog
@@ -118,12 +118,16 @@ if (isset($fields['dbase'])) {
* This doesn't seem to be the right place to do this, but I can't think of any
* better place either.
*/
-if (isset($_REQUEST['get_relational_values']) && $_REQUEST['get_relational_values'] == true) {
-
+if (isset($_REQUEST['get_relational_values'])
+ && $_REQUEST['get_relational_values'] == true
+) {
$column = $_REQUEST['column'];
$foreigners = PMA_getForeigners($db, $table, $column);
- $display_field = PMA_getDisplayField($foreigners[$column]['foreign_db'], $foreigners[$column]['foreign_table']);
+ $display_field = PMA_getDisplayField(
+ $foreigners[$column]['foreign_db'],
+ $foreigners[$column]['foreign_table']
+ );
$foreignData = PMA_getForeignData($foreigners, $column, false, '', '');
@@ -138,18 +142,29 @@ if (isset($_REQUEST['get_relational_values']) && $_REQUEST['get_relational_value
$curr_value = $_REQUEST['curr_value'];
}
if ($foreignData['disp_row'] == null) {
- //Handle the case when number of values is more than $cfg['ForeignKeyMaxLimit']
+ //Handle the case when number of values
+ //is more than $cfg['ForeignKeyMaxLimit']
$_url_params = array(
'db' => $db,
'table' => $table,
'field' => $column
);
- $dropdown = '' . htmlspecialchars($_REQUEST['curr_value']) . ' ' . __('Browse foreign values') . ' ';
+ $dropdown = ''
+ . htmlspecialchars($_REQUEST['curr_value'])
+ . ' '
+ . ''
+ . __('Browse foreign values')
+ . ' ';
} else {
- $dropdown = PMA_foreignDropdown($foreignData['disp_row'], $foreignData['foreign_field'], $foreignData['foreign_display'], $curr_value, $cfg['ForeignKeyMaxLimit']);
+ $dropdown = PMA_foreignDropdown(
+ $foreignData['disp_row'],
+ $foreignData['foreign_field'],
+ $foreignData['foreign_display'],
+ $curr_value,
+ $cfg['ForeignKeyMaxLimit']
+ );
$dropdown = '' . $dropdown . ' ';
}
@@ -166,7 +181,9 @@ if (isset($_REQUEST['get_relational_values']) && $_REQUEST['get_relational_value
if (isset($_REQUEST['get_enum_values']) && $_REQUEST['get_enum_values'] == true) {
$field_info_query = PMA_DBI_get_columns_sql($db, $table, $_REQUEST['column']);
- $field_info_result = PMA_DBI_fetch_result($field_info_query, null, null, null, PMA_DBI_QUERY_STORE);
+ $field_info_result = PMA_DBI_fetch_result(
+ $field_info_query, null, null, null, PMA_DBI_QUERY_STORE
+ );
$values = $common_functions->parseEnumSetValues($field_info_result[0]['Type']);
@@ -192,7 +209,9 @@ if (isset($_REQUEST['get_enum_values']) && $_REQUEST['get_enum_values'] == true)
if (isset($_REQUEST['get_set_values']) && $_REQUEST['get_set_values'] == true) {
$field_info_query = PMA_DBI_get_columns_sql($db, $table, $_REQUEST['column']);
- $field_info_result = PMA_DBI_fetch_result($field_info_query, null, null, null, PMA_DBI_QUERY_STORE);
+ $field_info_result = PMA_DBI_fetch_result(
+ $field_info_query, null, null, null, PMA_DBI_QUERY_STORE
+ );
$selected_values = explode(',', $_REQUEST['curr_value']);
@@ -208,7 +227,8 @@ if (isset($_REQUEST['get_set_values']) && $_REQUEST['get_set_values'] == true) {
}
$select_size = (sizeof($values) > 10) ? 10 : sizeof($values);
- $select = '' . $select . ' ';
+ $select = ''
+ . $select . ' ';
$response = PMA_Response::getInstance();
$response->addJSON('select', $select);
@@ -226,9 +246,10 @@ if (isset($_REQUEST['set_col_prefs']) && $_REQUEST['set_col_prefs'] == true) {
if (isset($_REQUEST['col_order'])) {
$col_order = explode(',', $_REQUEST['col_order']);
$retval = $pmatable->setUiProp(
- PMA_Table::PROP_COLUMN_ORDER, $col_order,
+ PMA_Table::PROP_COLUMN_ORDER,
+ $col_order,
$_REQUEST['table_create_time']
- );
+ );
if (gettype($retval) != 'boolean') {
$response = PMA_Response::getInstance();
$response->isSuccess(false);
@@ -243,7 +264,7 @@ if (isset($_REQUEST['set_col_prefs']) && $_REQUEST['set_col_prefs'] == true) {
$retval = $pmatable->setUiProp(
PMA_Table::PROP_COLUMN_VISIB, $col_visib,
$_REQUEST['table_create_time']
- );
+ );
if (gettype($retval) != 'boolean') {
$response = PMA_Response::getInstance();
$response->isSuccess(false);
@@ -271,10 +292,8 @@ if (empty($sql_query) && strlen($table) && strlen($db)) {
if (! empty($book_sql_query)) {
$GLOBALS['using_bookmark_message'] = PMA_message::notice(
- __(
- 'Using bookmark "%s" as default browse query.'
- )
- );
+ __('Using bookmark "%s" as default browse query.')
+ );
$GLOBALS['using_bookmark_message']->addParam($table);
$GLOBALS['using_bookmark_message']->addMessage(
$common_functions->showDocu('faq6_22')
@@ -340,11 +359,9 @@ if (isset($find_real_end) && $find_real_end) {
*/
if (isset($store_bkm)) {
PMA_Bookmark_save(
- $fields, (isset($bkm_all_users)
- && $bkm_all_users == 'true'
- ? true
- : false)
- );
+ $fields,
+ (isset($bkm_all_users) && $bkm_all_users == 'true' ? true : false)
+ );
// go back to sql.php to redisplay query; do not use & in this case:
PMA_sendHeaderLocation(
$cfg['PmaAbsoluteUri'] . $goto . '&label=' . $fields['label']
@@ -414,9 +431,9 @@ if (! $cfg['Confirm']
if ($do_confirm) {
$stripped_sql_query = $sql_query;
if ($is_drop_database) {
- echo '' . __(
- 'You are about to DESTROY a complete database!'
- ) . ' ';
+ echo ''
+ . __('You are about to DESTROY a complete database!')
+ . ' ';
}
echo '