]> git.joonet.de Git - adminer.git/commitdiff
Fix whitespace
authorJakub Vrana <jakub@vrana.cz>
Mon, 8 Feb 2021 14:50:02 +0000 (15:50 +0100)
committerJakub Vrana <jakub@vrana.cz>
Mon, 8 Feb 2021 14:50:02 +0000 (15:50 +0100)
adminer/drivers/mssql.inc.php
adminer/drivers/pgsql.inc.php
adminer/include/pdo.inc.php
adminer/lang/de.inc.php
plugins/tinymce.php

index f5836c4bb8679744bd842191305ddeeb2e1ebaa8..b574079d2b7d642f8bf212fae23dbfd05c5384ce 100644 (file)
@@ -495,8 +495,8 @@ WHERE OBJECT_NAME(i.object_id) = " . q($table)
                }
                foreach ($comments as $key => $val) {
                        $comment = substr($val, 9); // 9 - strlen(" COMMENT ")
-                       queries("EXEC sp_dropextendedproperty @name = N'MS_Description', @level0type = N'Schema', @level0name = " . q(get_schema()) . ", @level1type = N'Table',  @level1name = " . q($name) . ", @level2type = N'Column', @level2name = " . q($key));
-                       queries("EXEC sp_addextendedproperty @name = N'MS_Description', @value = " . $comment . ", @level0type = N'Schema', @level0name = " . q(get_schema()) . ", @level1type = N'Table',  @level1name = " . q($name) . ", @level2type = N'Column', @level2name = " . q($key));
+                       queries("EXEC sp_dropextendedproperty @name = N'MS_Description', @level0type = N'Schema', @level0name = " . q(get_schema()) . ", @level1type = N'Table', @level1name = " . q($name) . ", @level2type = N'Column', @level2name = " . q($key));
+                       queries("EXEC sp_addextendedproperty @name = N'MS_Description', @value = " . $comment . ", @level0type = N'Schema', @level0name = " . q(get_schema()) . ", @level1type = N'Table', @level1name = " . q($name) . ", @level2type = N'Column', @level2name = " . q($key));
                }
                return true;
        }
index 2114395f9a1496005037908ec02cb6dc7c522ef7..4895df0cbeaad05edf33349186a9c1eee641c479 100644 (file)
@@ -396,7 +396,7 @@ ORDER BY a.attnum"
                $return = array();
                $table_oid = $connection2->result("SELECT oid FROM pg_class WHERE relnamespace = (SELECT oid FROM pg_namespace WHERE nspname = current_schema()) AND relname = " . q($table));
                $columns = get_key_vals("SELECT attnum, attname FROM pg_attribute WHERE attrelid = $table_oid AND attnum > 0", $connection2);
-               foreach (get_rows("SELECT relname, indisunique::int, indisprimary::int, indkey, indoption , (indpred IS NOT NULL)::int as indispartial FROM pg_index i, pg_class ci WHERE i.indrelid = $table_oid AND ci.oid = i.indexrelid", $connection2) as $row) {
+               foreach (get_rows("SELECT relname, indisunique::int, indisprimary::int, indkey, indoption, (indpred IS NOT NULL)::int as indispartial FROM pg_index i, pg_class ci WHERE i.indrelid = $table_oid AND ci.oid = i.indexrelid", $connection2) as $row) {
                        $relname = $row["relname"];
                        $return[$relname]["type"] = ($row["indispartial"] ? "INDEX" : ($row["indisprimary"] ? "PRIMARY" : ($row["indisunique"] ? "UNIQUE" : "INDEX")));
                        $return[$relname]["columns"] = array();
index f7b11c6783984dad6ecbc4416e663a917236adbb..ed7ac49726d77461932b3fec3d504704d450148a 100644 (file)
@@ -18,7 +18,7 @@ if (extension_loaded('pdo')) {
                        } catch (Exception $ex) {
                                auth_error(h($ex->getMessage()));
                        }
-                       $this->pdo->setAttribute(3, 1); //  3 - PDO::ATTR_ERRMODE, 1 - PDO::ERRMODE_WARNING
+                       $this->pdo->setAttribute(3, 1); // 3 - PDO::ATTR_ERRMODE, 1 - PDO::ERRMODE_WARNING
                        $this->pdo->setAttribute(13, array('Min_PDOStatement')); // 13 - PDO::ATTR_STATEMENT_CLASS
                        $this->server_info = @$this->pdo->getAttribute(4); // 4 - PDO::ATTR_SERVER_VERSION
                }
index 71c1bc225b9d69e931a2f5932645030865c5c37d..bd78a0fcbdbf70d6f233eb0a2fbd7eef34fb247e 100644 (file)
@@ -280,7 +280,7 @@ $translations = array(
        'If you did not send this request from Adminer then close this page.' => 'Wenn Sie diese Anfrage nicht von Adminer gesendet haben, schließen Sie diese Seite.',
        'You can upload a big SQL file via FTP and import it from server.' => 'Sie können eine große SQL-Datei per FTP hochladen und dann vom Server importieren.',
        'You are offline.' => 'Sie sind offline.',
-       'You have no privileges to update this table.' => 'Sie haben keine Rechte, um diese Tabelle zu aktualisieren.' ,
+       'You have no privileges to update this table.' => 'Sie haben keine Rechte, um diese Tabelle zu aktualisieren.',
        'Saving' => 'Speichere',
        'yes' => 'ja',
        'no' => 'nein',
index 44ee37f5ed2b785a4b848b5dc8dd8313c43acb7b..a6cad00653a8ded1b41814fd7df9a5cb2cc6eb6e 100644 (file)
@@ -40,8 +40,8 @@ tinyMCE.init({
 
        function selectVal(&$val, $link, $field, $original) {
                if (preg_match("~_html~", $field["field"]) && $val != '') {
-                   $ellipsis = "<i>…</i>";
-                   $length = strlen($ellipsis);
+                       $ellipsis = "<i>…</i>";
+                       $length = strlen($ellipsis);
                        $shortened = (substr($val, -$length) == $ellipsis);
                        if ($shortened) {
                                $val = substr($val, 0, -$length);