@@ -69,7 +69,7 @@ |
||
69 | 69 | public function __construct($to, UserEmail $from, $aSubject, $aBodyText, $aBodyHtml = null) |
70 | 70 | { |
71 | 71 | if (is_array($to)) { |
72 | - $this->to = array_map(function ($receiver) { |
|
72 | + $this->to = array_map(function($receiver) { |
|
73 | 73 | if (!$receiver instanceof UserEmail) { |
74 | 74 | throw new UserEmailInvalidException(); |
75 | 75 | } |
@@ -104,7 +104,7 @@ |
||
104 | 104 | throw new UserAlreadyExistException(); |
105 | 105 | } |
106 | 106 | |
107 | - $userRoles = array_map(function ($role) { |
|
107 | + $userRoles = array_map(function($role) { |
|
108 | 108 | return new UserRole($role); |
109 | 109 | }, $aCommand->roles()); |
110 | 110 |
@@ -46,7 +46,7 @@ |
||
46 | 46 | return []; |
47 | 47 | } |
48 | 48 | |
49 | - $roles = array_map(function (UserRole $role) { |
|
49 | + $roles = array_map(function(UserRole $role) { |
|
50 | 50 | return $role->role(); |
51 | 51 | }, $this->user->roles()); |
52 | 52 |
@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | private function rolesToString(array $userRoles) |
319 | 319 | { |
320 | 320 | return json_encode( |
321 | - array_map(function (UserRole $userRole) { |
|
321 | + array_map(function(UserRole $userRole) { |
|
322 | 322 | return $userRole->role(); |
323 | 323 | }, $userRoles) |
324 | 324 | ); |
@@ -333,7 +333,7 @@ discard block |
||
333 | 333 | */ |
334 | 334 | private function rolesToArray($userRoles) |
335 | 335 | { |
336 | - return array_map(function ($userRole) { |
|
336 | + return array_map(function($userRole) { |
|
337 | 337 | return new UserRole($userRole); |
338 | 338 | }, json_decode($userRoles)); |
339 | 339 | } |