phpstan level 1 errors reduction
This commit is contained in:
@@ -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);
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user