From 657c3dfdc3fda96ea0789e20704065e2d8b9fd95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Wed, 7 Aug 2013 16:20:15 +0200 Subject: [PATCH] Various coding style fixes --- libraries/server_privileges.lib.php | 38 ++++++++++++++++++++--------- 1 file changed, 27 insertions(+), 11 deletions(-) diff --git a/libraries/server_privileges.lib.php b/libraries/server_privileges.lib.php index 2da7e71510..37a578bcd6 100644 --- a/libraries/server_privileges.lib.php +++ b/libraries/server_privileges.lib.php @@ -1729,7 +1729,9 @@ function PMA_getHtmlForSpecificDbPrivileges() . '' . '' . "\n"; - if ($GLOBALS['is_ajax_request'] == true && empty($_REQUEST['ajax_page_request'])) { + if ($GLOBALS['is_ajax_request'] == true + && empty($_REQUEST['ajax_page_request']) + ) { $message = PMA_Message::success(__('User has been added.')); $response = PMA_Response::getInstance(); $response->addJSON('message', $message); @@ -1839,7 +1841,8 @@ function PMA_getHtmlTableBodyForSpecificDbPrivs($found, $row, $odd_row, . '' . "\n"; $html_output .= PMA_getUserEditLink( $current_user, $current_host, - ! (isset($current['Db']) || $current['Db'] == '*') ? '' : $current['Db'] + (isset($current['Db']) && $current['Db'] != '*') + ? $current['Db'] : '' ); $html_output .= '' . "\n" . ' ' . "\n"; @@ -2159,7 +2162,8 @@ function PMA_getLinkToDbAndTable($url_dbname, $dbname, $tablename) * So this function returns user rights as an array * * @param array $tables tables - * @param string $user_host_condition a where clause that containd user's host condition + * @param string $user_host_condition a where clause that containd user's host + * condition * @param string $dbname database name * * @return array $db_rights database rights @@ -2432,7 +2436,8 @@ function PMA_getHtmlForDisplaySelectDbInEditPrivs($found_rows) // already escaped in $found_rows, // contrary to the output of SHOW DATABASES if (empty($found_rows) || ! in_array($current_db, $found_rows)) { - $html_output .= '' . "\n"; } } @@ -2716,20 +2721,29 @@ function PMA_getFieldsetForAddDeleteUser() . '' . "\n"; $html_output .= '' . "\n" - . '(' . __('Revoke all active privileges from the users and delete them afterwards.') . ')' + . '(' + . __('Revoke all active privileges from the users and delete them afterwards.') + . ')' . '
' . "\n"; $html_output .= '' . "\n"; $html_output .= '' . "\n" . '' . "\n"; - $html_output .= '