1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-15 19:13:59 +02:00

Code style: Indent long statements

This commit is contained in:
Jakub Vrana
2025-03-05 14:59:13 +01:00
parent 293e031498
commit ed5de27dd3
15 changed files with 139 additions and 108 deletions

View File

@@ -88,8 +88,8 @@ if ($_POST && !$error) {
}
if (preg_match('~^(.+)\s*(\(.*\))?$~U', $object, $match) && (
!grant("REVOKE", $revoke, $match[2], " ON $match[1] FROM $new_user") //! SQL injection
|| !grant("GRANT", $grant, $match[2], " ON $match[1] TO $new_user")
)) {
|| !grant("GRANT", $grant, $match[2], " ON $match[1] TO $new_user"))
) {
$error = true;
break;
}
@@ -152,14 +152,16 @@ foreach ($grants as $object => $grant) {
}
echo "</thead>\n";
foreach (array(
"" => "",
"Server Admin" => lang('Server'),
"Databases" => lang('Database'),
"Tables" => lang('Table'),
"Columns" => lang('Column'),
"Procedures" => lang('Routine'),
) as $context => $desc) {
foreach (
array(
"" => "",
"Server Admin" => lang('Server'),
"Databases" => lang('Database'),
"Tables" => lang('Table'),
"Columns" => lang('Column'),
"Procedures" => lang('Routine'),
) as $context => $desc
) {
foreach ((array) $privileges[$context] as $privilege => $comment) {
echo "<tr><td" . ($desc ? ">$desc<td" : " colspan='2'") . ' lang="en" title="' . h($comment) . '">' . h($privilege);
$i = 0;