mirror of
https://github.com/vrana/adminer.git
synced 2026-07-06 20:09:26 +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) {
|
||||
//
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user