From 86e6050b38caf8857da6868bb2b5fdb6eac093b5 Mon Sep 17 00:00:00 2001 From: s3inlc Date: Wed, 1 Jul 2026 12:06:53 +0200 Subject: [PATCH] fixed phpstan issues found earlier in #966 --- src/inc/Util.php | 2 +- src/inc/defines/DConfig.php | 2 +- src/inc/user_api/UserAPIPretask.php | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/inc/Util.php b/src/inc/Util.php index 96ff8f3c5..2591b074b 100755 --- a/src/inc/Util.php +++ b/src/inc/Util.php @@ -1374,7 +1374,7 @@ public static function sendMail($address, $subject, $text, $plaintext) { $boundary = uniqid('np'); $headers = "MIME-Version: 1.0\r\n"; - $headers .= "From: " . SConfig::getInstance()->getVal(Dconfig::EMAIL_SENDER_NAME) . " <" . SConfig::getInstance()->getVal(DConfig::EMAIL_SENDER) . ">\r\n"; + $headers .= "From: " . SConfig::getInstance()->getVal(DConfig::EMAIL_SENDER_NAME) . " <" . SConfig::getInstance()->getVal(DConfig::EMAIL_SENDER) . ">\r\n"; $headers .= "Content-Type: multipart/alternative;boundary=" . $boundary . "\r\n"; $plainMessage = "\r\n\r\n--" . $boundary . "\r\n"; diff --git a/src/inc/defines/DConfig.php b/src/inc/defines/DConfig.php index 62a04599f..8dac65937 100644 --- a/src/inc/defines/DConfig.php +++ b/src/inc/defines/DConfig.php @@ -138,7 +138,7 @@ public static function getConfigType($config) { DConfig::NUMBER_LOGENTRIES => DConfigType::NUMBER_INPUT, DConfig::TIME_FORMAT => DConfigType::STRING_INPUT, DConfig::BASE_URL => DConfigType::STRING_INPUT, - Dconfig::DISP_TOLERANCE => DConfigType::NUMBER_INPUT, + DConfig::DISP_TOLERANCE => DConfigType::NUMBER_INPUT, DConfig::BATCH_SIZE => DConfigType::NUMBER_INPUT, DConfig::BASE_HOST => DConfigType::STRING_INPUT, DConfig::DONATE_OFF => DConfigType::TICKBOX, diff --git a/src/inc/user_api/UserAPIPretask.php b/src/inc/user_api/UserAPIPretask.php index b8230d5ca..4528fb43d 100644 --- a/src/inc/user_api/UserAPIPretask.php +++ b/src/inc/user_api/UserAPIPretask.php @@ -31,7 +31,7 @@ public function execute($QUERY = array()) { case USectionPretask::SET_PRETASK_MAX_AGENTS: $this->setPretaskMaxAgents($QUERY); break; - case USectionpretask::SET_PRETASK_NAME: + case USectionPretask::SET_PRETASK_NAME: $this->setPretaskName($QUERY); break; case USectionPretask::SET_PRETASK_COLOR: @@ -46,7 +46,7 @@ public function execute($QUERY = array()) { case USectionPretask::SET_PRETASK_SMALL: $this->setPretaskSmall($QUERY); break; - case USectionpretask::DELETE_PRETASK: + case USectionPretask::DELETE_PRETASK: $this->deletePretask($QUERY); break; default: @@ -265,4 +265,4 @@ private function listPreTasks($QUERY) { $response[UResponseTask::PRETASKS] = $taskList; $this->sendResponse($response); } -} \ No newline at end of file +}