Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpmyadmin/phpmyadmin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMadhura Jayaratne <madhura.cj@gmail.com>2012-08-30 21:06:49 +0400
committerMadhura Jayaratne <madhura.cj@gmail.com>2012-08-30 21:06:49 +0400
commit1ebe5f44992c4af78672e30682ab11a1eb83cb25 (patch)
tree9a5b4ce57f68f270223576fdd1a702d499691179 /tbl_printview.php
parent97da49085bb24d1fe4d1bde11f2200ad018894f7 (diff)
Fix coding style
Diffstat (limited to 'tbl_printview.php')
-rw-r--r--tbl_printview.php47
1 files changed, 25 insertions, 22 deletions
diff --git a/tbl_printview.php b/tbl_printview.php
index 5a1a31febf..b032e0381a 100644
--- a/tbl_printview.php
+++ b/tbl_printview.php
@@ -243,7 +243,8 @@ foreach ($the_tables as $key => $table) {
if ($cfg['ShowStats']) {
$nonisam = false;
if (isset($showtable['Type'])
- && !preg_match('@ISAM|HEAP@i', $showtable['Type'])) {
+ && ! preg_match('@ISAM|HEAP@i', $showtable['Type'])
+ ) {
$nonisam = true;
}
if ($nonisam == false) {
@@ -251,35 +252,37 @@ foreach ($the_tables as $key => $table) {
$mergetable = PMA_Table::isMerge($db, $table);
- list($data_size, $data_unit)
- = $common_functions->formatByteDown($showtable['Data_length']);
+ list($data_size, $data_unit) = $common_functions->formatByteDown(
+ $showtable['Data_length']
+ );
if ($mergetable == false) {
- list($index_size, $index_unit)
- = $common_functions->formatByteDown($showtable['Index_length']);
+ list($index_size, $index_unit) = $common_functions->formatByteDown(
+ $showtable['Index_length']
+ );
}
if (isset($showtable['Data_free']) && $showtable['Data_free'] > 0) {
- list($free_size, $free_unit)
- = $common_functions->formatByteDown($showtable['Data_free']);
- list($effect_size, $effect_unit)
- = $common_functions->formatByteDown(
- $showtable['Data_length']
- + $showtable['Index_length']
- - $showtable['Data_free']);
+ list($free_size, $free_unit) = $common_functions->formatByteDown(
+ $showtable['Data_free']
+ );
+ list($effect_size, $effect_unit) = $common_functions->formatByteDown(
+ $showtable['Data_length'] + $showtable['Index_length'] - $showtable['Data_free']
+ );
} else {
unset($free_size);
unset($free_unit);
- list($effect_size, $effect_unit)
- = $common_functions->formatByteDown($showtable['Data_length']
- + $showtable['Index_length']);
+ list($effect_size, $effect_unit) = $common_functions->formatByteDown(
+ $showtable['Data_length'] + $showtable['Index_length']
+ );
}
- list($tot_size, $tot_unit)
- = $common_functions->formatByteDown($showtable['Data_length']
- + $showtable['Index_length']);
+ list($tot_size, $tot_unit) = $common_functions->formatByteDown(
+ $showtable['Data_length'] + $showtable['Index_length']
+ );
if ($num_rows > 0) {
- list($avg_size, $avg_unit)
- = $common_functions->formatByteDown(($showtable['Data_length']
- + $showtable['Index_length'])
- / $showtable['Rows'], 6, 1);
+ list($avg_size, $avg_unit) = $common_functions->formatByteDown(
+ ($showtable['Data_length'] + $showtable['Index_length']) / $showtable['Rows'],
+ 6,
+ 1
+ );
}
// Displays them