@@ -133,7 +133,7 @@ |
||
133 | 133 | return new JsonResponse(['success' => false]); |
134 | 134 | } |
135 | 135 | |
136 | - $deletedUser->markAsDeleted(); /* @phpstan-ignore-line */ |
|
136 | + $deletedUser->markAsDeleted(); /* @phpstan-ignore-line */ |
|
137 | 137 | $userRepository->save($deletedUser); |
138 | 138 | } catch (\Throwable $e) { |
139 | 139 | $logger->error('An error occured while trying to disable a user', ['error_message' => $e->getMessage()]); |
@@ -41,7 +41,7 @@ |
||
41 | 41 | /** @var TeamInterface $team */ |
42 | 42 | $team = $this->getById($team->getId()); |
43 | 43 | |
44 | - $members = array_filter($team->getMembers(), function (MemberInterface $member) { |
|
44 | + $members = array_filter($team->getMembers(), function(MemberInterface $member) { |
|
45 | 45 | return !$member->isDeleted(); |
46 | 46 | }); |
47 | 47 |
@@ -34,10 +34,10 @@ |
||
34 | 34 | { |
35 | 35 | $self = new static(); |
36 | 36 | $self->setUser($user) |
37 | - ->setCode(bin2hex(random_bytes(32))) |
|
38 | - ->setUsed(false) |
|
39 | - ->setCreatedAt(new \DateTime('now')) |
|
40 | - ->setExpiresAt(new \DateTime('+24 hours')); |
|
37 | + ->setCode(bin2hex(random_bytes(32))) |
|
38 | + ->setUsed(false) |
|
39 | + ->setCreatedAt(new \DateTime('now')) |
|
40 | + ->setExpiresAt(new \DateTime('+24 hours')); |
|
41 | 41 | |
42 | 42 | return $self; |
43 | 43 | } |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | { |
46 | 46 | if (!$input->getArgument('email')) { |
47 | 47 | $emailQuestion = new Question('Please provide an email:'); |
48 | - $emailQuestion->setValidator(function ($email) { |
|
48 | + $emailQuestion->setValidator(function($email) { |
|
49 | 49 | if (empty($email)) { |
50 | 50 | throw new \Exception('Email can not be empty'); |
51 | 51 | } |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | |
61 | 61 | if (!$input->getArgument('role')) { |
62 | 62 | $roleQuestion = new Question('Please provide a role:'); |
63 | - $roleQuestion->setValidator(function ($password) { |
|
63 | + $roleQuestion->setValidator(function($password) { |
|
64 | 64 | if (empty($password)) { |
65 | 65 | throw new \Exception('role can not be empty'); |
66 | 66 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | { |
47 | 47 | if (!$input->getArgument('email')) { |
48 | 48 | $emailQuestion = new Question('Please provide an email:'); |
49 | - $emailQuestion->setValidator(function ($email) { |
|
49 | + $emailQuestion->setValidator(function($email) { |
|
50 | 50 | if (empty($email)) { |
51 | 51 | throw new \Exception('Email can not be empty'); |
52 | 52 | } |
@@ -61,7 +61,7 @@ discard block |
||
61 | 61 | |
62 | 62 | if (!$input->getArgument('password')) { |
63 | 63 | $passwordQuestion = new Question('Please provide a password:'); |
64 | - $passwordQuestion->setValidator(function ($password) { |
|
64 | + $passwordQuestion->setValidator(function($password) { |
|
65 | 65 | if (empty($password)) { |
66 | 66 | throw new \Exception('password can not be empty'); |
67 | 67 | } |
@@ -46,7 +46,7 @@ discard block |
||
46 | 46 | { |
47 | 47 | if (!$input->getArgument('email')) { |
48 | 48 | $emailQuestion = new Question('Please provide an email:'); |
49 | - $emailQuestion->setValidator(function ($email) { |
|
49 | + $emailQuestion->setValidator(function($email) { |
|
50 | 50 | if (empty($email)) { |
51 | 51 | throw new \Exception('Email can not be empty'); |
52 | 52 | } |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | |
61 | 61 | if (!$input->getArgument('password')) { |
62 | 62 | $passwordQuestion = new Question('Please provide a password:'); |
63 | - $passwordQuestion->setValidator(function ($password) { |
|
63 | + $passwordQuestion->setValidator(function($password) { |
|
64 | 64 | if (empty($password)) { |
65 | 65 | throw new \Exception('password can not be empty'); |
66 | 66 | } |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | { |
46 | 46 | if (!$input->getArgument('email')) { |
47 | 47 | $emailQuestion = new Question('Please provide an email:'); |
48 | - $emailQuestion->setValidator(function ($email) { |
|
48 | + $emailQuestion->setValidator(function($email) { |
|
49 | 49 | if (empty($email)) { |
50 | 50 | throw new \Exception('Email can not be empty'); |
51 | 51 | } |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | |
61 | 61 | if (!$input->getArgument('role')) { |
62 | 62 | $roleQuestion = new Question('Please provide a role:'); |
63 | - $roleQuestion->setValidator(function ($password) { |
|
63 | + $roleQuestion->setValidator(function($password) { |
|
64 | 64 | if (empty($password)) { |
65 | 65 | throw new \Exception('role can not be empty'); |
66 | 66 | } |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | |
85 | 85 | $user = $this->userRepository->findByEmail($email); |
86 | 86 | |
87 | - $user->setRoles(array_filter($user->getRoles(), function ($v) use ($role) { return $v !== $role; })); |
|
87 | + $user->setRoles(array_filter($user->getRoles(), function($v) use ($role) { return $v !== $role; })); |
|
88 | 88 | |
89 | 89 | $this->userRepository->save($user); |
90 | 90 |
@@ -44,7 +44,7 @@ |
||
44 | 44 | { |
45 | 45 | if (!$input->getArgument('email')) { |
46 | 46 | $emailQuestion = new Question('Please provide an email:'); |
47 | - $emailQuestion->setValidator(function ($email) { |
|
47 | + $emailQuestion->setValidator(function($email) { |
|
48 | 48 | if (empty($email)) { |
49 | 49 | throw new \Exception('Email can not be empty'); |
50 | 50 | } |
@@ -44,7 +44,7 @@ |
||
44 | 44 | { |
45 | 45 | if (!$input->getArgument('email')) { |
46 | 46 | $emailQuestion = new Question('Please provide an email:'); |
47 | - $emailQuestion->setValidator(function ($email) { |
|
47 | + $emailQuestion->setValidator(function($email) { |
|
48 | 48 | if (empty($email)) { |
49 | 49 | throw new \Exception('Email can not be empty'); |
50 | 50 | } |