mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
PHPStan: Fix level 0 errors
This commit is contained in:
@@ -27,8 +27,8 @@ if (isset($_GET["firebird"])) {
|
||||
$this->_link = ibase_connect($server, $username, $password);
|
||||
if ($this->_link) {
|
||||
$url_parts = explode(':', $server);
|
||||
$this->service_link = ibase_service_attach($url_parts[0], $username, $password);
|
||||
$this->server_info = ibase_server_info($this->service_link, IBASE_SVC_SERVER_VERSION);
|
||||
$service_link = ibase_service_attach($url_parts[0], $username, $password);
|
||||
$this->server_info = ibase_server_info($service_link, IBASE_SVC_SERVER_VERSION);
|
||||
} else {
|
||||
$this->errno = ibase_errcode();
|
||||
$this->error = ibase_errmsg();
|
||||
|
@@ -110,7 +110,7 @@ if (isset($_GET["imap"])) {
|
||||
}
|
||||
|
||||
function expunge() {
|
||||
return imap_expunge();
|
||||
return imap_expunge($this->imap);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -272,7 +272,7 @@ if (isset($_GET["imap"])) {
|
||||
}
|
||||
|
||||
function truncate_tables($tables) {
|
||||
return connection()->expunge($name);
|
||||
return connection()->expunge();
|
||||
}
|
||||
|
||||
function connect($credentials) {
|
||||
|
@@ -19,7 +19,7 @@ if (isset($_GET["mongo"])) {
|
||||
}
|
||||
|
||||
function executeCommand($command) {
|
||||
return $this->executeDbCommand($this->_db_name);
|
||||
return $this->executeDbCommand($this->_db_name, $command);
|
||||
}
|
||||
|
||||
function executeDbCommand($db, $command) {
|
||||
|
Reference in New Issue
Block a user