mirror of
https://github.com/vrana/adminer.git
synced 2025-08-08 15:47:00 +02:00
PHPStan: Fix level 1 errors
This commit is contained in:
@@ -207,9 +207,7 @@ if (isset($_GET["elastic"])) {
|
||||
if (empty($search)) {
|
||||
return false;
|
||||
}
|
||||
if ($select == array("*")) {
|
||||
$tableFields = array_keys(fields($table));
|
||||
}
|
||||
$tableFields = ($select == array("*") ? array_keys(fields($table)) : array());
|
||||
|
||||
$return = array();
|
||||
foreach ($search["hits"]["hits"] as $hit) {
|
||||
@@ -332,7 +330,7 @@ if (isset($_GET["elastic"])) {
|
||||
return $credentials[1];
|
||||
}
|
||||
|
||||
function get_databases() {
|
||||
function get_databases($flush) {
|
||||
return array("elastic");
|
||||
}
|
||||
|
||||
@@ -445,7 +443,7 @@ if (isset($_GET["elastic"])) {
|
||||
return h(connection()->error);
|
||||
}
|
||||
|
||||
function information_schema() {
|
||||
function information_schema($db) {
|
||||
//
|
||||
}
|
||||
|
||||
|
@@ -478,7 +478,7 @@ if (isset($_GET["mongo"])) {
|
||||
function db_collation($db, $collations) {
|
||||
}
|
||||
|
||||
function information_schema() {
|
||||
function information_schema($db) {
|
||||
}
|
||||
|
||||
function is_view($table_status) {
|
||||
|
@@ -274,7 +274,7 @@ if (isset($_GET["simpledb"])) {
|
||||
return $credentials[1];
|
||||
}
|
||||
|
||||
function get_databases() {
|
||||
function get_databases($flush) {
|
||||
return array("domain");
|
||||
}
|
||||
|
||||
@@ -329,7 +329,7 @@ if (isset($_GET["simpledb"])) {
|
||||
return h($connection->error);
|
||||
}
|
||||
|
||||
function information_schema() {
|
||||
function information_schema($db) {
|
||||
}
|
||||
|
||||
function indexes($table, $connection2 = null) {
|
||||
|
Reference in New Issue
Block a user