Minor: Format code

pull/5217/head
Angel Fernando Quiroz Campos 2 years ago
parent 415749b1c2
commit e2d1d8d2f7
  1. 9
      src/CoreBundle/Entity/User.php
  2. 3
      src/CoreBundle/ServiceHelper/CidReqHelper.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

@ -20,8 +20,7 @@ class CidReqHelper
{
public function __construct(
private readonly RequestStack $requestStack,
) {
}
) {}
private function getRequest(): ?Request
{

Loading…
Cancel
Save