From c2fefd6227be4e6c246fa4dfbf63fd4edfd29549 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Fri, 24 Mar 2023 19:47:49 +0200 Subject: [PATCH] cs --- .../Espo/Core/Authentication/Logins/Espo.php | 28 ++++++++----------- 1 file changed, 11 insertions(+), 17 deletions(-) diff --git a/application/Espo/Core/Authentication/Logins/Espo.php b/application/Espo/Core/Authentication/Logins/Espo.php index d430c30868..308b8c94ae 100644 --- a/application/Espo/Core/Authentication/Logins/Espo.php +++ b/application/Espo/Core/Authentication/Logins/Espo.php @@ -29,15 +29,13 @@ namespace Espo\Core\Authentication\Logins; -use Espo\Core\{ - Api\Request, - Utils\PasswordHash, - Authentication\Login, - Authentication\Login\Data, - Authentication\Result, - Authentication\Helper\UserFinder, - Authentication\Result\FailReason, -}; +use Espo\Core\Api\Request; +use Espo\Core\Authentication\Helper\UserFinder; +use Espo\Core\Authentication\Login; +use Espo\Core\Authentication\Login\Data; +use Espo\Core\Authentication\Result; +use Espo\Core\Authentication\Result\FailReason; +use Espo\Core\Utils\PasswordHash; use RuntimeException; @@ -45,14 +43,10 @@ class Espo implements Login { public const NAME = 'Espo'; - private UserFinder $userFinder; - private PasswordHash $passwordHash; - - public function __construct(UserFinder $userFinder, PasswordHash $passwordHash) - { - $this->userFinder = $userFinder; - $this->passwordHash = $passwordHash; - } + public function __construct( + private UserFinder $userFinder, + private PasswordHash $passwordHash + ) {} public function login(Data $data, Request $request): Result {