phpstan level 1 errors reduction

This commit is contained in:
marko
2025-11-20 20:02:26 +01:00
parent f28fa7b51b
commit 275b6481cc
40 changed files with 223 additions and 152 deletions

View File

@@ -1,21 +1,19 @@
<?php
setlocale(LC_ALL, "de_DE@euro", "de_DE", "de", "ge");
set_include_path(get_include_path() . PATH_SEPARATOR . "./lib/");
require_once "config/participo.php";
require_once "local/cwsvJudo.php";
/** @var array $CONFIG basic configurations (defined via bootstraping) */
/** @var array $SECRETS passwords and other stuff worth of protection (defined via bootstraping) */
require_once "bootstrap.php";
require_once "participoLib/participo.php";
dbConnector::setOptions([
"dbCharset" => $cwsvJudoConfig["dbCharset"] ?? "UTF-8",
"outCharset" => $cwsvJudoConfig["outCharset"] ?? "UTF-8",
"dbCharset" => $CONFIG["cwsvJudo"]["db"]["dbCharset"] ?? "UTF-8",
"outCharset" => $CONFIG["cwsvJudo"]["db"]["outCharset"] ?? "UTF-8",
]);
$db = dbConnector::connect(
$cwsvJudoConfig["db"]["host"],
$cwsvJudoConfig["db"]["name"],
$cwsvJudoConfig["db"]["user"],
$cwsvJudoConfig["db"]["password"],
$CONFIG["cwsvJudo"]["db"]["host"],
$CONFIG["cwsvJudo"]["db"]["name"],
$CONFIG["cwsvJudo"]["db"]["user"],
$SECRETS["cwsvJudo"]["db"][$CONFIG["db"]["user"]],
);
$wkSqlQuery = "SELECT * FROM `wettkampfkalender` WHERE `Datum` >= CURDATE();";
@@ -25,4 +23,3 @@ header("Access-Control-Allow-Headers: *");
header("Access-Control-Allow-Origin: *");
echo json_encode($wkSqlResponse);
?>