diff options
author | Madhura Jayaratne <madhura.cj@gmail.com> | 2012-04-14 07:39:21 +0400 |
---|---|---|
committer | Madhura Jayaratne <madhura.cj@gmail.com> | 2012-04-14 07:39:21 +0400 |
commit | 33321518591ade27e1651bf3e912d6bdecb7f342 (patch) | |
tree | ee0a53b563ed0f641dd90faccadf2bbda26ec2e0 /prefs_manage.php | |
parent | e6626004155fbf2932c36e84bc3c251b2a76dce3 (diff) |
Fix Checkstyle Warnings - Type: CloseBracketLine (Closing parenthesis of a multi-line function call must be on a line by itself)
Diffstat (limited to 'prefs_manage.php')
-rw-r--r-- | prefs_manage.php | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/prefs_manage.php b/prefs_manage.php index e765955af6..89e468507f 100644 --- a/prefs_manage.php +++ b/prefs_manage.php @@ -31,17 +31,21 @@ if (isset($_POST['submit_export']) && filter_input(INPUT_POST, 'export_type') == } else if (isset($_POST['submit_get_json'])) { $settings = PMA_load_userprefs(); header('Content-Type: application/json'); - echo json_encode(array( - 'prefs' => json_encode($settings['config_data']), - 'mtime' => $settings['mtime'])); + echo json_encode( + array( + 'prefs' => json_encode($settings['config_data']), + 'mtime' => $settings['mtime'] + ) + ); return; } else if (isset($_POST['submit_import'])) { // load from JSON file $json = ''; if (filter_input(INPUT_POST, 'import_type') == 'text_file' - && isset($_FILES['import_file']) - && $_FILES['import_file']['error'] == UPLOAD_ERR_OK - && is_uploaded_file($_FILES['import_file']['tmp_name'])) { + && isset($_FILES['import_file']) + && $_FILES['import_file']['error'] == UPLOAD_ERR_OK + && is_uploaded_file($_FILES['import_file']['tmp_name']) + ) { // read JSON from uploaded file $open_basedir = @ini_get('open_basedir'); $file_to_unlink = ''; |