diff --git a/composer.json b/composer.json index 10277d800..e3917f714 100644 --- a/composer.json +++ b/composer.json @@ -33,7 +33,7 @@ "jangregor/phpstan-prophecy": "^1.0.0", "phpspec/prophecy-phpunit": "^2.0", "phpstan/extension-installer": "^1.1.0", - "phpstan/phpstan": "^1.8", + "phpstan/phpstan": "^1.10", "phpunit/phpunit": "^9.5.25", "squizlabs/php_codesniffer": "^3.7" }, diff --git a/src/account.php b/src/account.php index c8bf6df1b..f8a47907a 100755 --- a/src/account.php +++ b/src/account.php @@ -1,7 +1,7 @@ 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/config.php b/src/inc/defines/config.php index b72d25672..13d405ed3 100644 --- a/src/inc/defines/config.php +++ b/src/inc/defines/config.php @@ -178,7 +178,7 @@ public static function getConfigType($config) { return DConfigType::STRING_INPUT; case DConfig::BASE_URL: return DConfigType::STRING_INPUT; - case Dconfig::DISP_TOLERANCE: + case DConfig::DISP_TOLERANCE: return DConfigType::NUMBER_INPUT; case DConfig::BATCH_SIZE: return DConfigType::NUMBER_INPUT; diff --git a/src/inc/user-api/UserAPIPretask.class.php b/src/inc/user-api/UserAPIPretask.class.php index 3f2737ede..f815599a3 100644 --- a/src/inc/user-api/UserAPIPretask.class.php +++ b/src/inc/user-api/UserAPIPretask.class.php @@ -19,7 +19,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: @@ -34,7 +34,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: