diff --git a/server_status.php b/server_status.php
index 3a891ba58c..24dcb9b08e 100644
--- a/server_status.php
+++ b/server_status.php
@@ -61,7 +61,8 @@ if (isset($_REQUEST['ajax_request']) && $_REQUEST['ajax_request'] == true) {
$queries = PMA_DBI_fetch_result(
"SHOW GLOBAL STATUS
WHERE (Variable_name LIKE 'Com_%' OR Variable_name = 'Questions')
- AND Value > 0", 0, 1);
+ AND Value > 0", 0, 1
+ );
}
cleanDeprecated($queries);
// admin commands are not queries
@@ -83,7 +84,8 @@ if (isset($_REQUEST['ajax_request']) && $_REQUEST['ajax_request'] == true) {
$traffic = PMA_DBI_fetch_result(
"SHOW GLOBAL STATUS
WHERE Variable_name = 'Bytes_received'
- OR Variable_name = 'Bytes_sent'", 0, 1);
+ OR Variable_name = 'Bytes_sent'", 0, 1
+ );
$ret = array(
'x' => microtime(true) * 1000,
@@ -943,12 +945,12 @@ function printQueryStatistics()
echo '
';
echo 'ø ' . __('per minute') . ': ';
- echo PMA_formatNumber( $total_queries * 60 / $server_status['Uptime'], 0);
+ echo PMA_formatNumber($total_queries * 60 / $server_status['Uptime'], 0);
echo '
';
if ($total_queries / $server_status['Uptime'] >= 1) {
echo 'ø ' . __('per second') . ': ';
- echo PMA_formatNumber( $total_queries / $server_status['Uptime'], 0);
+ echo PMA_formatNumber($total_queries / $server_status['Uptime'], 0);
}
?>
@@ -1038,22 +1040,25 @@ function printServerTraffic()
* starttime calculation
*/
$start_time = PMA_DBI_fetch_value(
- 'SELECT UNIX_TIMESTAMP() - ' . $server_status['Uptime']);
+ 'SELECT UNIX_TIMESTAMP() - ' . $server_status['Uptime']
+ );
?>
diff --git a/tbl_operations.php b/tbl_operations.php
index a09528b4e1..da2291e75c 100644
--- a/tbl_operations.php
+++ b/tbl_operations.php
@@ -380,8 +380,10 @@ if (strstr($show_comment, '; InnoDB free') === false) {
|
-
+ |
|
'CHECK TABLE ' . PMA_backquote($GLOBALS['table']),
'table_maintenance' => 'Go',
- ));
+ )
+ );
?>
@@ -611,8 +615,10 @@ if ($is_myisam_or_aria || $is_innodb || $is_berkeleydb) {
'ALTER TABLE ' . PMA_backquote($GLOBALS['table']) . ' ENGINE = InnoDB'));
+ $this_url_params = array_merge(
+ $url_params,
+ array('sql_query' => 'ALTER TABLE ' . PMA_backquote($GLOBALS['table']) . ' ENGINE = InnoDB')
+ );
?>
@@ -621,11 +627,13 @@ if ($is_myisam_or_aria || $is_innodb || $is_berkeleydb) {
'ANALYZE TABLE ' . PMA_backquote($GLOBALS['table']),
'table_maintenance' => 'Go',
- ));
+ )
+ );
?>
@@ -634,11 +642,13 @@ if ($is_myisam_or_aria || $is_innodb || $is_berkeleydb) {
'REPAIR TABLE ' . PMA_backquote($GLOBALS['table']),
'table_maintenance' => 'Go',
- ));
+ )
+ );
?>
@@ -647,11 +657,13 @@ if ($is_myisam_or_aria || $is_innodb || $is_berkeleydb) {
'OPTIMIZE TABLE ' . PMA_backquote($GLOBALS['table']),
'table_maintenance' => 'Go',
- ));
+ )
+ );
?>
@@ -660,13 +672,17 @@ if ($is_myisam_or_aria || $is_innodb || $is_berkeleydb) {
'FLUSH TABLE ' . PMA_backquote($GLOBALS['table']),
- 'message_to_show' => sprintf(__('Table %s has been flushed'),
- htmlspecialchars($GLOBALS['table'])),
+ 'message_to_show' => sprintf(
+ __('Table %s has been flushed'),
+ htmlspecialchars($GLOBALS['table'])
+ ),
'reload' => 1,
- ));
+ )
+);
?>
@@ -684,13 +700,15 @@ $this_url_params = array_merge($url_params,
$this_sql_query,
'goto' => 'tbl_structure.php',
'reload' => '1',
'message_to_show' => sprintf(__('Table %s has been emptied'), htmlspecialchars($table)),
- ));
+ )
+ );
?>
>
@@ -700,7 +718,8 @@ if (! $tbl_is_view && ! (isset($db_is_information_schema) && $db_is_information_
}
if (! (isset($db_is_information_schema) && $db_is_information_schema)) {
$this_sql_query = 'DROP TABLE ' . PMA_backquote($GLOBALS['table']);
- $this_url_params = array_merge($url_params,
+ $this_url_params = array_merge(
+ $url_params,
array(
'sql_query' => $this_sql_query,
'goto' => 'db_operations.php',
@@ -710,7 +729,8 @@ if (! (isset($db_is_information_schema) && $db_is_information_schema)) {
// table name is needed to avoid running
// PMA_relationsCleanupDatabase() on the whole db later
'table' => $GLOBALS['table'],
- ));
+ )
+ );
?>
>
@@ -756,10 +776,12 @@ if (! (isset($db_is_information_schema) && $db_is_information_schema)) {
echo PMA_showMySQLDocu('partitioning_maintenance', 'partitioning_maintenance');
// I'm not sure of the best way to display that; this link does
// not depend on the Go button
- $this_url_params = array_merge($url_params,
+ $this_url_params = array_merge(
+ $url_params,
array(
'sql_query' => 'ALTER TABLE ' . PMA_backquote($GLOBALS['table']) . ' REMOVE PARTITIONING'
- ));
+ )
+ );
?>
@@ -810,8 +832,10 @@ if ($cfgRelation['relwork'] && ! $is_innodb) {
. ' IS NULL AND '
. PMA_backquote($GLOBALS['table']) . '.' . PMA_backquote($master)
. ' IS NOT NULL';
- $this_url_params = array_merge($url_params,
- array('sql_query' => $join_query));
+ $this_url_params = array_merge(
+ $url_params,
+ array('sql_query' => $join_query)
+ );
echo ' '
. '