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:
@@ -110,7 +110,6 @@ if (isset($_GET["mongo"])) {
|
||||
'charsetnr' => $this->_charset[$name],
|
||||
);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@@ -240,7 +240,6 @@ if (isset($_GET["mssql"])) {
|
||||
return "relational-databases/system-$link" . preg_replace('~_~', '-', strtolower($name)) . "-transact-sql";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@@ -355,7 +355,6 @@ if (!defined("DRIVER")) {
|
||||
}
|
||||
return $c_style;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@@ -171,7 +171,6 @@ if (isset($_GET["oracle"])) {
|
||||
function hasCStyleEscapes() {
|
||||
return true;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@@ -258,7 +258,6 @@ if (isset($_GET["pgsql"])) {
|
||||
}
|
||||
return $c_style;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@@ -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
|
||||
return array_combine($matches[2], $matches[2]);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@@ -1106,5 +1106,4 @@ bodyLoad('<?php echo (is_object($connection) ? preg_replace('~^(\d\.?\d).*~s', '
|
||||
}
|
||||
echo "</ul>\n";
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -216,5 +216,4 @@ WHERE c.CONSTRAINT_SCHEMA = " . q($_GET["ns"] != "" ? $_GET["ns"] : DB) . "
|
||||
AND t.TABLE_NAME = " . q($table) . "
|
||||
AND CHECK_CLAUSE NOT LIKE '% IS NOT NULL'"); // ignore default IS NOT NULL checks in PostrgreSQL
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -19,5 +19,4 @@ class TmpFile {
|
||||
fpassthru($this->handler);
|
||||
fclose($this->handler);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -43,7 +43,6 @@ function adminer_object() {
|
||||
}
|
||||
return "";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
return new AdminerCds;
|
||||
|
@@ -662,5 +662,4 @@ qsl('div').onclick = whisperClick;", "")
|
||||
return $return;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -17,7 +17,6 @@
|
||||
<exclude name="PSR12.Operators.OperatorSpacing.NoSpaceAfter"/>
|
||||
<exclude name="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
|
||||
<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.VarUsed"/>
|
||||
<exclude name="PSR2.Classes.PropertyDeclaration.ScopeMissing"/>
|
||||
|
@@ -25,5 +25,4 @@ class AdminerDatabaseHide {
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -39,5 +39,4 @@ class AdminerDesigns {
|
||||
echo '<input type="hidden" name="token" value="' . Adminer\get_token() . '">';
|
||||
echo "</form>\n";
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -52,7 +52,6 @@ if (isset($_GET["simpledb"])) {
|
||||
function quote($string) {
|
||||
return "'" . str_replace("'", "''", $string) . "'";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class Result {
|
||||
@@ -113,7 +112,6 @@ if (isset($_GET["simpledb"])) {
|
||||
$keys = array_keys($this->_rows[0]);
|
||||
return (object) array('name' => $keys[$this->_offset++]);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -243,7 +241,6 @@ if (isset($_GET["simpledb"])) {
|
||||
$this->_conn->timeout = $timeout;
|
||||
return $query;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
@@ -37,5 +37,4 @@ class AdminerDumpBz2 {
|
||||
ob_start(array($this, '_bz2'), 1e6);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -12,5 +12,4 @@ class AdminerDumpDate {
|
||||
$connection = Adminer\connection();
|
||||
return Adminer\friendly_url(($identifier != "" ? $identifier : (SERVER != "" ? SERVER : "localhost")) . "-" . $connection->result("SELECT NOW()"));
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -58,5 +58,4 @@ class AdminerDumpJson {
|
||||
return "json";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -52,5 +52,4 @@ class AdminerDumpXml {
|
||||
return "xml";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -41,5 +41,4 @@ class AdminerDumpZip {
|
||||
ob_start(array($this, '_zip'));
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -53,5 +53,4 @@ class AdminerEditCalendar {
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -39,5 +39,4 @@ class AdminerEditForeign {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -13,5 +13,4 @@ class AdminerEditTextarea {
|
||||
return "<textarea cols='30' rows='1' style='height: 1.2em;'$attrs>" . Adminer\h($value) . '</textarea>';
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -56,5 +56,4 @@ class AdminerEmailTable {
|
||||
$_POST["email_message"] = $row[1];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -36,5 +36,4 @@ class AdminerEnumOption {
|
||||
return "<select$attrs>" . Adminer\optionlist($options, (string) $selected, 1) . "</select>"; // 1 - use keys
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -46,5 +46,4 @@ class AdminerEnumTypes {
|
||||
return "<select$attrs>" . Adminer\optionlist($options, (string) $selected, 1) . "</select>";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -49,5 +49,4 @@ class AdminerFileUpload {
|
||||
$link = "$this->displayPath$_GET[select]/$regs[1]-$val";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -54,5 +54,4 @@ class AdminerForeignSystem {
|
||||
return $return[$table];
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -24,5 +24,4 @@ class AdminerFrames {
|
||||
header_remove("X-Frame-Options");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -38,5 +38,4 @@ class AdminerLoginIp {
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -27,5 +27,4 @@ class AdminerLoginPasswordLess {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -38,5 +38,4 @@ class AdminerLoginServers {
|
||||
return $heading . "<select name='auth[server]'>" . Adminer\optionlist(array_keys($this->servers), SERVER) . "</select>\n";
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -23,5 +23,4 @@ class AdminerLoginSsl {
|
||||
function connectSsl() {
|
||||
return $this->ssl;
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -30,5 +30,4 @@ class AdminerLoginTable {
|
||||
$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)));
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -39,5 +39,4 @@ class AdminerMasterSlave {
|
||||
$_SESSION["master"] = $result->fetch_assoc();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -420,5 +420,4 @@ class AdminerPlugin extends Adminer\Adminer {
|
||||
$args = func_get_args();
|
||||
return $this->_applyPlugin(__FUNCTION__, $args);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -47,5 +47,4 @@ class AdminerSlugify {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -37,5 +37,4 @@ class AdminerSqlLog {
|
||||
flock($fp, LOCK_UN);
|
||||
fclose($fp);
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -70,5 +70,4 @@ qs('#form').onsubmit = function () {
|
||||
");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -51,5 +51,4 @@ class AdminerTranslation {
|
||||
$val = $this->_translate($val);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -11,5 +11,4 @@ class AdminerVersionNoverify {
|
||||
function head() {
|
||||
echo Adminer\script("verifyVersion = function () {};");
|
||||
}
|
||||
|
||||
}
|
||||
|
@@ -59,5 +59,4 @@ jQuery('#fields-" . Adminer\js_escape($field["field"]) . "').wymeditor({ updateS
|
||||
");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user