1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-06 22:56:46 +02:00

Code style: Remove newline before }

This commit is contained in:
Jakub Vrana
2025-03-05 14:37:25 +01:00
parent f820fa1c26
commit af68e30742
42 changed files with 0 additions and 44 deletions

View File

@@ -110,7 +110,6 @@ if (isset($_GET["mongo"])) {
'charsetnr' => $this->_charset[$name], 'charsetnr' => $this->_charset[$name],
); );
} }
} }

View File

@@ -240,7 +240,6 @@ if (isset($_GET["mssql"])) {
return "relational-databases/system-$link" . preg_replace('~_~', '-', strtolower($name)) . "-transact-sql"; return "relational-databases/system-$link" . preg_replace('~_~', '-', strtolower($name)) . "-transact-sql";
} }
} }
} }

View File

@@ -355,7 +355,6 @@ if (!defined("DRIVER")) {
} }
return $c_style; return $c_style;
} }
} }

View File

@@ -171,7 +171,6 @@ if (isset($_GET["oracle"])) {
function hasCStyleEscapes() { function hasCStyleEscapes() {
return true; return true;
} }
} }

View File

@@ -258,7 +258,6 @@ if (isset($_GET["pgsql"])) {
} }
return $c_style; return $c_style;
} }
} }

View File

@@ -149,7 +149,6 @@ if (isset($_GET["sqlite"])) {
preg_match_all('~ CHECK *(\( *(((?>[^()]*[^() ])|(?1))*) *\))~', $this->_conn->result("SELECT sql FROM sqlite_master WHERE type = 'table' AND name = " . q($table)), $matches); //! could be inside a comment preg_match_all('~ CHECK *(\( *(((?>[^()]*[^() ])|(?1))*) *\))~', $this->_conn->result("SELECT sql FROM sqlite_master WHERE type = 'table' AND name = " . q($table)), $matches); //! could be inside a comment
return array_combine($matches[2], $matches[2]); return array_combine($matches[2], $matches[2]);
} }
} }

View File

@@ -1106,5 +1106,4 @@ bodyLoad('<?php echo (is_object($connection) ? preg_replace('~^(\d\.?\d).*~s', '
} }
echo "</ul>\n"; echo "</ul>\n";
} }
} }

View File

@@ -216,5 +216,4 @@ WHERE c.CONSTRAINT_SCHEMA = " . q($_GET["ns"] != "" ? $_GET["ns"] : DB) . "
AND t.TABLE_NAME = " . q($table) . " AND t.TABLE_NAME = " . q($table) . "
AND CHECK_CLAUSE NOT LIKE '% IS NOT NULL'"); // ignore default IS NOT NULL checks in PostrgreSQL AND CHECK_CLAUSE NOT LIKE '% IS NOT NULL'"); // ignore default IS NOT NULL checks in PostrgreSQL
} }
} }

View File

@@ -19,5 +19,4 @@ class TmpFile {
fpassthru($this->handler); fpassthru($this->handler);
fclose($this->handler); fclose($this->handler);
} }
} }

View File

@@ -43,7 +43,6 @@ function adminer_object() {
} }
return ""; return "";
} }
} }
return new AdminerCds; return new AdminerCds;

View File

@@ -662,5 +662,4 @@ qsl('div').onclick = whisperClick;", "")
return $return; return $return;
} }
} }
} }

View File

@@ -17,7 +17,6 @@
<exclude name="PSR12.Operators.OperatorSpacing.NoSpaceAfter"/> <exclude name="PSR12.Operators.OperatorSpacing.NoSpaceAfter"/>
<exclude name="PSR1.Classes.ClassDeclaration.MultipleClasses"/> <exclude name="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
<exclude name="PSR2.Classes.ClassDeclaration.OpenBraceNewLine"/><!-- Replaced by: Generic.Classes.OpeningBraceSameLine --> <exclude name="PSR2.Classes.ClassDeclaration.OpenBraceNewLine"/><!-- Replaced by: Generic.Classes.OpeningBraceSameLine -->
<exclude name="PSR2.Classes.ClassDeclaration.CloseBraceAfterBody"/>
<exclude name="PSR2.Classes.PropertyDeclaration.Multiple"/> <exclude name="PSR2.Classes.PropertyDeclaration.Multiple"/>
<exclude name="PSR2.Classes.PropertyDeclaration.VarUsed"/> <exclude name="PSR2.Classes.PropertyDeclaration.VarUsed"/>
<exclude name="PSR2.Classes.PropertyDeclaration.ScopeMissing"/> <exclude name="PSR2.Classes.PropertyDeclaration.ScopeMissing"/>

View File

@@ -25,5 +25,4 @@ class AdminerDatabaseHide {
} }
return $return; return $return;
} }
} }

View File

@@ -39,5 +39,4 @@ class AdminerDesigns {
echo '<input type="hidden" name="token" value="' . Adminer\get_token() . '">'; echo '<input type="hidden" name="token" value="' . Adminer\get_token() . '">';
echo "</form>\n"; echo "</form>\n";
} }
} }

View File

@@ -52,7 +52,6 @@ if (isset($_GET["simpledb"])) {
function quote($string) { function quote($string) {
return "'" . str_replace("'", "''", $string) . "'"; return "'" . str_replace("'", "''", $string) . "'";
} }
} }
class Result { class Result {
@@ -113,7 +112,6 @@ if (isset($_GET["simpledb"])) {
$keys = array_keys($this->_rows[0]); $keys = array_keys($this->_rows[0]);
return (object) array('name' => $keys[$this->_offset++]); return (object) array('name' => $keys[$this->_offset++]);
} }
} }
} }
@@ -243,7 +241,6 @@ if (isset($_GET["simpledb"])) {
$this->_conn->timeout = $timeout; $this->_conn->timeout = $timeout;
return $query; return $query;
} }
} }

View File

@@ -37,5 +37,4 @@ class AdminerDumpBz2 {
ob_start(array($this, '_bz2'), 1e6); ob_start(array($this, '_bz2'), 1e6);
} }
} }
} }

View File

@@ -12,5 +12,4 @@ class AdminerDumpDate {
$connection = Adminer\connection(); $connection = Adminer\connection();
return Adminer\friendly_url(($identifier != "" ? $identifier : (SERVER != "" ? SERVER : "localhost")) . "-" . $connection->result("SELECT NOW()")); return Adminer\friendly_url(($identifier != "" ? $identifier : (SERVER != "" ? SERVER : "localhost")) . "-" . $connection->result("SELECT NOW()"));
} }
} }

View File

@@ -58,5 +58,4 @@ class AdminerDumpJson {
return "json"; return "json";
} }
} }
} }

View File

@@ -52,5 +52,4 @@ class AdminerDumpXml {
return "xml"; return "xml";
} }
} }
} }

View File

@@ -41,5 +41,4 @@ class AdminerDumpZip {
ob_start(array($this, '_zip')); ob_start(array($this, '_zip'));
} }
} }
} }

View File

@@ -53,5 +53,4 @@ class AdminerEditCalendar {
); );
} }
} }
} }

View File

@@ -39,5 +39,4 @@ class AdminerEditForeign {
} }
} }
} }
} }

View File

@@ -13,5 +13,4 @@ class AdminerEditTextarea {
return "<textarea cols='30' rows='1' style='height: 1.2em;'$attrs>" . Adminer\h($value) . '</textarea>'; return "<textarea cols='30' rows='1' style='height: 1.2em;'$attrs>" . Adminer\h($value) . '</textarea>';
} }
} }
} }

View File

@@ -56,5 +56,4 @@ class AdminerEmailTable {
$_POST["email_message"] = $row[1]; $_POST["email_message"] = $row[1];
} }
} }
} }

View File

@@ -36,5 +36,4 @@ class AdminerEnumOption {
return "<select$attrs>" . Adminer\optionlist($options, (string) $selected, 1) . "</select>"; // 1 - use keys return "<select$attrs>" . Adminer\optionlist($options, (string) $selected, 1) . "</select>"; // 1 - use keys
} }
} }
} }

View File

@@ -46,5 +46,4 @@ class AdminerEnumTypes {
return "<select$attrs>" . Adminer\optionlist($options, (string) $selected, 1) . "</select>"; return "<select$attrs>" . Adminer\optionlist($options, (string) $selected, 1) . "</select>";
} }
} }
} }

View File

@@ -49,5 +49,4 @@ class AdminerFileUpload {
$link = "$this->displayPath$_GET[select]/$regs[1]-$val"; $link = "$this->displayPath$_GET[select]/$regs[1]-$val";
} }
} }
} }

View File

@@ -54,5 +54,4 @@ class AdminerForeignSystem {
return $return[$table]; return $return[$table];
} }
} }
} }

View File

@@ -24,5 +24,4 @@ class AdminerFrames {
header_remove("X-Frame-Options"); header_remove("X-Frame-Options");
} }
} }
} }

View File

@@ -38,5 +38,4 @@ class AdminerLoginIp {
} }
return false; return false;
} }
} }

View File

@@ -27,5 +27,4 @@ class AdminerLoginPasswordLess {
return true; return true;
} }
} }
} }

View File

@@ -38,5 +38,4 @@ class AdminerLoginServers {
return $heading . "<select name='auth[server]'>" . Adminer\optionlist(array_keys($this->servers), SERVER) . "</select>\n"; return $heading . "<select name='auth[server]'>" . Adminer\optionlist(array_keys($this->servers), SERVER) . "</select>\n";
} }
} }
} }

View File

@@ -23,5 +23,4 @@ class AdminerLoginSsl {
function connectSsl() { function connectSsl() {
return $this->ssl; return $this->ssl;
} }
} }

View File

@@ -30,5 +30,4 @@ class AdminerLoginTable {
$connection = Adminer\connection(); $connection = Adminer\connection();
return (bool) $connection->result("SELECT COUNT(*) FROM " . idf_escape($this->database) . ".login WHERE login = " . Adminer\q($login) . " AND password_sha1 = " . Adminer\q(sha1($password))); return (bool) $connection->result("SELECT COUNT(*) FROM " . idf_escape($this->database) . ".login WHERE login = " . Adminer\q($login) . " AND password_sha1 = " . Adminer\q(sha1($password)));
} }
} }

View File

@@ -39,5 +39,4 @@ class AdminerMasterSlave {
$_SESSION["master"] = $result->fetch_assoc(); $_SESSION["master"] = $result->fetch_assoc();
} }
} }
} }

View File

@@ -420,5 +420,4 @@ class AdminerPlugin extends Adminer\Adminer {
$args = func_get_args(); $args = func_get_args();
return $this->_applyPlugin(__FUNCTION__, $args); return $this->_applyPlugin(__FUNCTION__, $args);
} }
} }

View File

@@ -47,5 +47,4 @@ class AdminerSlugify {
} }
} }
} }
} }

View File

@@ -37,5 +37,4 @@ class AdminerSqlLog {
flock($fp, LOCK_UN); flock($fp, LOCK_UN);
fclose($fp); fclose($fp);
} }
} }

View File

@@ -70,5 +70,4 @@ qs('#form').onsubmit = function () {
"); ");
} }
} }
} }

View File

@@ -51,5 +51,4 @@ class AdminerTranslation {
$val = $this->_translate($val); $val = $this->_translate($val);
} }
} }
} }

View File

@@ -11,5 +11,4 @@ class AdminerVersionNoverify {
function head() { function head() {
echo Adminer\script("verifyVersion = function () {};"); echo Adminer\script("verifyVersion = function () {};");
} }
} }

View File

@@ -59,5 +59,4 @@ jQuery('#fields-" . Adminer\js_escape($field["field"]) . "').wymeditor({ updateS
"); ");
} }
} }
} }