diff --git a/src/CoreBundle/Entity/User.php b/src/CoreBundle/Entity/User.php index 2d9a8d3bac..c673340621 100644 --- a/src/CoreBundle/Entity/User.php +++ b/src/CoreBundle/Entity/User.php @@ -931,16 +931,17 @@ class User implements UserInterface, EquatableInterface, ResourceInterface, Reso }*/ /** - * Get a bool on whether the user is active or not. Active can be "-1" which means pre-deleted, and is returned as false (not active) + * Get a bool on whether the user is active or not. Active can be "-1" which means pre-deleted, and is returned as false (not active). + * * @return bool True if active = 1, false in any other case (0 = inactive, -1 = predeleted) */ public function getIsActive(): bool { - if ($this->active == 1) { + if (1 == $this->active) { return true; - } else { - return false; } + + return false; } public function isEnabled(): bool diff --git a/src/CoreBundle/ServiceHelper/CidReqHelper.php b/src/CoreBundle/ServiceHelper/CidReqHelper.php index 4218fd8c79..713fcb461b 100644 --- a/src/CoreBundle/ServiceHelper/CidReqHelper.php +++ b/src/CoreBundle/ServiceHelper/CidReqHelper.php @@ -20,8 +20,7 @@ class CidReqHelper { public function __construct( private readonly RequestStack $requestStack, - ) { - } + ) {} private function getRequest(): ?Request {