From 5d3376e62010105fa1534619cd58b1574719acf9 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Tue, 11 Mar 2025 12:21:07 +0100 Subject: [PATCH] Check more style --- adminer/drivers/pgsql.inc.php | 1 - editor/example.php | 1 - phpcs.xml | 30 ++++++++++++++++++++++++++++++ plugins/pretty-json-column.php | 4 +--- 4 files changed, 31 insertions(+), 5 deletions(-) diff --git a/adminer/drivers/pgsql.inc.php b/adminer/drivers/pgsql.inc.php index 7b4061bc..e1187937 100644 --- a/adminer/drivers/pgsql.inc.php +++ b/adminer/drivers/pgsql.inc.php @@ -661,7 +661,6 @@ ORDER BY conkey, conname") as $row function truncate_tables($tables) { return queries("TRUNCATE " . implode(", ", array_map('Adminer\table', $tables))); - return true; } function drop_views($views) { diff --git a/editor/example.php b/editor/example.php index 37dfd450..987ac2e0 100644 --- a/editor/example.php +++ b/editor/example.php @@ -1,6 +1,5 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/plugins/pretty-json-column.php b/plugins/pretty-json-column.php index f814276f..cf99bff8 100644 --- a/plugins/pretty-json-column.php +++ b/plugins/pretty-json-column.php @@ -21,9 +21,7 @@ class AdminerPrettyJsonColumn { $json = $this->testJson($value); if ($json !== $value) { $jsonText = json_encode($json, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES); - return <<$jsonText -HTML; + return "" . h($jsonText) . ""; } return ''; }