@@ -293,7 +293,7 @@ |
||
293 | 293 | } |
294 | 294 | |
295 | 295 | /** |
296 | - * @return array |
|
296 | + * @return string[] |
|
297 | 297 | */ |
298 | 298 | private static function getTablesClasses() |
299 | 299 | { |
@@ -32,13 +32,13 @@ discard block |
||
32 | 32 | |
33 | 33 | return array( |
34 | 34 | 'entity' => User::clazz(), |
35 | - 'create_default_data_mapper' => function (ContainerInterface $container) { |
|
35 | + 'create_default_data_mapper' => function(ContainerInterface $container) { |
|
36 | 36 | return $this->container->get('modera_backend_security.data_mapper.user_data_mapper'); |
37 | 37 | }, |
38 | 38 | 'security' => array( |
39 | 39 | 'actions' => array( |
40 | 40 | 'create' => ModeraBackendSecurityBundle::ROLE_MANAGE_USER_PROFILES, |
41 | - 'update' => function (AuthorizationCheckerInterface $ac, array $params) use ($self) { |
|
41 | + 'update' => function(AuthorizationCheckerInterface $ac, array $params) use ($self) { |
|
42 | 42 | /* @var TokenStorageInterface $ts */ |
43 | 43 | $ts = $self->get('security.token_storage'); |
44 | 44 | /* @var User $user */ |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | 'hydration' => array( |
61 | 61 | 'groups' => array( |
62 | 62 | 'main-form' => ['id', 'username', 'email', 'firstName', 'lastName', 'middleName', 'meta'], |
63 | - 'list' => function (User $user) { |
|
63 | + 'list' => function(User $user) { |
|
64 | 64 | $groups = array(); |
65 | 65 | foreach ($user->getGroups() as $group) { |
66 | 66 | $groups[] = $group->getName(); |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | 'modera-backend-security-group-groupusers' => HydrationProfile::create(false)->useGroups(array('compact-list')), |
90 | 90 | ), |
91 | 91 | ), |
92 | - 'map_data_on_create' => function (array $params, User $entity, DataMapperInterface $defaultMapper, ContainerInterface $container) use ($self) { |
|
92 | + 'map_data_on_create' => function(array $params, User $entity, DataMapperInterface $defaultMapper, ContainerInterface $container) use ($self) { |
|
93 | 93 | |
94 | 94 | $defaultMapper->mapData($params, $entity); |
95 | 95 | |
@@ -106,7 +106,7 @@ discard block |
||
106 | 106 | $mailService->sendPassword($entity, $plainPassword); |
107 | 107 | } |
108 | 108 | }, |
109 | - 'map_data_on_update' => function (array $params, User $entity, DataMapperInterface $defaultMapper, ContainerInterface $container) use ($self) { |
|
109 | + 'map_data_on_update' => function(array $params, User $entity, DataMapperInterface $defaultMapper, ContainerInterface $container) use ($self) { |
|
110 | 110 | |
111 | 111 | $defaultMapper->mapData($params, $entity); |
112 | 112 | |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | $activityMgr->info($activityMsg, $activityContext); |
139 | 139 | } |
140 | 140 | }, |
141 | - 'remove_entities_handler' => function ($entities, $params, $defaultHandler, ContainerInterface $container) { |
|
141 | + 'remove_entities_handler' => function($entities, $params, $defaultHandler, ContainerInterface $container) { |
|
142 | 142 | /* @var UserService $userService */ |
143 | 143 | $userService = $container->get('modera_security.service.user_service'); |
144 | 144 |
@@ -28,7 +28,7 @@ |
||
28 | 28 | |
29 | 29 | return array_filter( |
30 | 30 | parent::getAllowedFields($entityClass), |
31 | - function ($fieldName) use ($me) { |
|
31 | + function($fieldName) use ($me) { |
|
32 | 32 | if (array_search($fieldName, $me->excludedFields) !== false) { |
33 | 33 | return false; |
34 | 34 | } |