From 68d799ac2004b5590794a2c5dd4adecaecc43ddb Mon Sep 17 00:00:00 2001 From: Spun Nakandala Date: Wed, 17 Apr 2013 00:06:29 +0530 Subject: [PATCH 1/2] Corrected according to the pear coding standards --- tbl_addfield.php | 42 +++++++++++++++++++++++++++--------------- 1 file changed, 27 insertions(+), 15 deletions(-) diff --git a/tbl_addfield.php b/tbl_addfield.php index 5cc6a30d01..83afb79e37 100644 --- a/tbl_addfield.php +++ b/tbl_addfield.php @@ -1,6 +1,7 @@ addParam($table); if ($GLOBALS['is_ajax_request'] == true) { @@ -208,7 +219,8 @@ if (isset($_REQUEST['do_save_data'])) { } // An error happened while inserting/updating a table definition. // to prevent total loss of that data, we embed the form once again. - // The variable $regenerate will be used to restore data in libraries/tbl_columns_definition_form.inc.php + // The variable $regenerate will be used to restore data in libraries/ + // tbl_columns_definition_form.inc.php $num_fields = $_REQUEST['orig_num_fields']; if (isset($_REQUEST['orig_after_field'])) { $_REQUEST['after_field'] = $_REQUEST['orig_after_field']; From c84869f85e3248c1233b3551c57d97609911ed0a Mon Sep 17 00:00:00 2001 From: Spun Nakandala Date: Wed, 17 Apr 2013 00:13:06 +0530 Subject: [PATCH 2/2] tbl_create.php refactored according to pear coding standards --- tbl_create.php | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/tbl_create.php b/tbl_create.php index 490a49c13a..df878e2aa0 100644 --- a/tbl_create.php +++ b/tbl_create.php @@ -1,6 +1,8 @@ 0) ? 1 : 0 ); if (isset($tbl_stats['Data_free']) && $tbl_stats['Data_free'] > 0) { - list($formatted_overhead, $overhead_unit) = PMA_Util::formatByteDown( - $tbl_stats['Data_free'], - 3, - ($tbl_stats['Data_free'] > 0) ? 1 : 0 - ); + list($formatted_overhead, $overhead_unit) + = PMA_Util::formatByteDown( + $tbl_stats['Data_free'], + 3, + ($tbl_stats['Data_free'] > 0) ? 1 : 0 + ); $overhead_size += $tbl_stats['Data_free']; } @@ -368,7 +371,8 @@ if (isset($_REQUEST['do_save_data'])) { . '' . "\n"; $new_table_string .= '' - . '' + . '' . $tbl_stats['Collation'] .'' . '' . "\n";