From df501e42b9398fc74b0d7d7c29180ba5d276d6c8 Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Wed, 24 Mar 2021 15:31:43 +0200 Subject: [PATCH] cs fix --- application/Espo/Core/ApplicationUser.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/application/Espo/Core/ApplicationUser.php b/application/Espo/Core/ApplicationUser.php index 791bcc8114..fbca11aa28 100644 --- a/application/Espo/Core/ApplicationUser.php +++ b/application/Espo/Core/ApplicationUser.php @@ -46,8 +46,9 @@ use Espo\Core\{ */ class ApplicationUser { - protected $container; - protected $entityManagerProxy; + private $container; + + private $entityManagerProxy; public function __construct(Container $container, EntityManagerProxy $entityManagerProxy) { @@ -58,7 +59,7 @@ class ApplicationUser /** * Setup the system user as a current user. The system user is used when no user is logged in. */ - public function setupSystemUser() + public function setupSystemUser() : void { $user = $this->entityManagerProxy->getEntity('User', 'system'); @@ -75,7 +76,7 @@ class ApplicationUser /** * Set a current user. */ - public function setUser(User $user) + public function setUser(User $user) : void { $this->container->set('user', $user); }