]> git.joonet.de Git - adminer.git/commitdiff
Fix style
authorJakub Vrana <jakub@vrana.cz>
Fri, 21 Feb 2025 09:57:11 +0000 (10:57 +0100)
committerJakub Vrana <jakub@vrana.cz>
Fri, 21 Feb 2025 09:57:11 +0000 (10:57 +0100)
plugins/drivers/elastic.php
plugins/drivers/elastic5.php

index 68a376021b86df2d4de34fb410a770020ba4198a..f6d7892f63ab3cd7901c83fe21d8225cbf24dd99 100644 (file)
@@ -537,7 +537,7 @@ if (isset($_GET["elastic"])) {
                        $properties = array('properties' => $properties);
                }
 
-               return connection()->query("_mapping/{$name}", $properties, 'PUT');
+               return connection()->query("_mapping/$name", $properties, 'PUT');
        }
 
        /** Drop types
index a577e078500dce668d5ec18f9a23cfe5dcb66e02..8030437cd509707d31b0f8a53aa99d3072e71d89 100644 (file)
@@ -241,7 +241,7 @@ if (isset($_GET["elastic5"])) {
                        $this->_conn->affected_rows = 0;
 
                        foreach ($ids as $id) {
-                               $query = "{$type}/{$id}";
+                               $query = "$type/$id";
                                $response = $this->_conn->query($query, null, 'DELETE');
                                if ((isset($response['found']) && $response['found']) || (isset($response['result']) && $response['result'] == 'deleted')) {
                                        $this->_conn->affected_rows++;
@@ -497,7 +497,7 @@ if (isset($_GET["elastic5"])) {
                if (!empty($properties)) {
                        $properties = array('properties' => $properties);
                }
-               return connection()->query("_mapping/{$name}", $properties, 'PUT');
+               return connection()->query("_mapping/$name", $properties, 'PUT');
        }
 
        /** Drop types