@@ -32,7 +32,7 @@ |
||
| 32 | 32 | */ |
| 33 | 33 | public function getRoles() |
| 34 | 34 | { |
| 35 | - return array_map(function (UserRole $role) { |
|
| 35 | + return array_map(function(UserRole $role) { |
|
| 36 | 36 | return $role->role(); |
| 37 | 37 | }, $this->roles()); |
| 38 | 38 | } |
@@ -62,7 +62,7 @@ |
||
| 62 | 62 | $resolver->setRequired('remember_password_token'); |
| 63 | 63 | $resolver->setDefaults([ |
| 64 | 64 | 'data_class' => ChangeUserPasswordRequest::class, |
| 65 | - 'empty_data' => function (FormInterface $form) { |
|
| 65 | + 'empty_data' => function(FormInterface $form) { |
|
| 66 | 66 | return ChangeUserPasswordRequest::fromRememberPasswordToken( |
| 67 | 67 | $form->get('newPlainPassword')->getData(), |
| 68 | 68 | $this->token |
@@ -66,7 +66,7 @@ |
||
| 66 | 66 | $resolver->setRequired(['roles']); |
| 67 | 67 | $resolver->setDefaults([ |
| 68 | 68 | 'data_class' => SignUpUserRequest::class, |
| 69 | - 'empty_data' => function (FormInterface $form) { |
|
| 69 | + 'empty_data' => function(FormInterface $form) { |
|
| 70 | 70 | return SignUpUserRequest::fromEmail( |
| 71 | 71 | $form->get('email')->getData(), |
| 72 | 72 | $form->get('password')->getData(), |
@@ -75,7 +75,7 @@ |
||
| 75 | 75 | { |
| 76 | 76 | $resolver->setDefaults([ |
| 77 | 77 | 'data_class' => ChangeUserPasswordRequest::class, |
| 78 | - 'empty_data' => function (FormInterface $form) { |
|
| 78 | + 'empty_data' => function(FormInterface $form) { |
|
| 79 | 79 | return ChangeUserPasswordRequest::from( |
| 80 | 80 | $this->currentUser->id()->id(), |
| 81 | 81 | $form->get('newPlainPassword')->getData(), |
@@ -53,7 +53,7 @@ |
||
| 53 | 53 | { |
| 54 | 54 | $resolver->setDefaults([ |
| 55 | 55 | 'data_class' => RemoveUserRequest::class, |
| 56 | - 'empty_data' => function (FormInterface $form) { |
|
| 56 | + 'empty_data' => function(FormInterface $form) { |
|
| 57 | 57 | return new RemoveUserRequest( |
| 58 | 58 | $this->currentUser->id()->id() |
| 59 | 59 | ); |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | { |
| 64 | 64 | $resolver->setDefaults([ |
| 65 | 65 | 'data_class' => RequestRememberPasswordRequest::class, |
| 66 | - 'empty_data' => function (FormInterface $form) { |
|
| 66 | + 'empty_data' => function(FormInterface $form) { |
|
| 67 | 67 | $email = null === $this->currentUser |
| 68 | 68 | ? $form->get('email')->getData() |
| 69 | 69 | : $this->currentUser->email()->email(); |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | { |
| 42 | 42 | $resolver->setDefaults([ |
| 43 | 43 | 'data_class' => InviteUserRequest::class, |
| 44 | - 'empty_data' => function (FormInterface $form) { |
|
| 44 | + 'empty_data' => function(FormInterface $form) { |
|
| 45 | 45 | return new InviteUserRequest( |
| 46 | 46 | $form->get('email')->getData() |
| 47 | 47 | ); |
@@ -72,7 +72,7 @@ |
||
| 72 | 72 | $resolver->setRequired(['roles', 'invitation_token']); |
| 73 | 73 | $resolver->setDefaults([ |
| 74 | 74 | 'data_class' => SignUpUserRequest::class, |
| 75 | - 'empty_data' => function (FormInterface $form) { |
|
| 75 | + 'empty_data' => function(FormInterface $form) { |
|
| 76 | 76 | return SignUpUserRequest::fromInvitationToken( |
| 77 | 77 | $this->token, |
| 78 | 78 | $form->get('password')->getData(), |
@@ -38,7 +38,7 @@ |
||
| 38 | 38 | */ |
| 39 | 39 | public function __construct(array $subscribers = []) |
| 40 | 40 | { |
| 41 | - $this->subscribers = array_map(function ($subscriber) { |
|
| 41 | + $this->subscribers = array_map(function($subscriber) { |
|
| 42 | 42 | if (!$subscriber instanceof DomainEventSubscriber) { |
| 43 | 43 | throw new \InvalidArgumentException( |
| 44 | 44 | sprintf( |