Test Failed
Branch main (71aea1)
by Iain
22:07
created
src/User/Controller/TeamController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -133,7 +133,7 @@
 block discarded – undo
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()]);
Please login to merge, or discard this patch.
src/User/Repository/TeamOdmRepository.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/User/Entity/ForgotPasswordCode.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,10 +34,10 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/User/Command/GiveRoleCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
src/User/Command/ChangePasswordCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
src/User/Command/CreateUserCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
src/User/Command/RemoveRoleCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/User/Command/SoftDeleteCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.
src/User/Command/ConfirmCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
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
                 }
Please login to merge, or discard this patch.