Completed
Branch master (97192c)
by Sergei
19:37
created
Category
Controller/GroupsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
             ),
30 30
             'hydration' => array(
31 31
                 'groups' => array(
32
-                    'list' => function (Group $group) {
32
+                    'list' => function(Group $group) {
33 33
                             return array(
34 34
                                 'id' => $group->getId(),
35 35
                                 'name' => $group->getName(),
Please login to merge, or discard this patch.
Controller/PermissionsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
             ),
30 30
             'hydration' => array(
31 31
                 'groups' => array(
32
-                    'list' => function (Permission $permission) {
32
+                    'list' => function(Permission $permission) {
33 33
                         $groups = array();
34 34
                         foreach ($permission->getGroups() as $group) {
35 35
                             $groups[] = $group->getId();
Please login to merge, or discard this patch.
Controller/UsersController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             'security' => array(
35 35
                 'actions' => array(
36 36
                     'create' => ModeraBackendSecurityBundle::ROLE_MANAGE_USER_PROFILES,
37
-                    'update' => function (AuthorizationCheckerInterface $ac, array $params) use ($self) {
37
+                    'update' => function(AuthorizationCheckerInterface $ac, array $params) use ($self) {
38 38
                         /* @var TokenStorageInterface $ts */
39 39
                         $ts = $self->get('security.token_storage');
40 40
                         /* @var User $user */
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             'hydration' => array(
57 57
                 'groups' => array(
58 58
                     'main-form' => ['id', 'username', 'email', 'firstName', 'lastName', 'middleName'],
59
-                    'list' => function (User $user) {
59
+                    'list' => function(User $user) {
60 60
                         $groups = array();
61 61
                         foreach ($user->getGroups() as $group) {
62 62
                             $groups[] = $group->getName();
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                     'modera-backend-security-group-groupusers' => HydrationProfile::create(false)->useGroups(array('compact-list')),
85 85
                 ),
86 86
             ),
87
-            'map_data_on_create' => function (array $params, User $entity, DataMapperInterface $defaultMapper, ContainerInterface $container) use ($self) {
87
+            'map_data_on_create' => function(array $params, User $entity, DataMapperInterface $defaultMapper, ContainerInterface $container) use ($self) {
88 88
                 $defaultMapper->mapData($params, $entity);
89 89
 
90 90
                 if (isset($params['plainPassword']) && $params['plainPassword']) {
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
                     $mailService->sendPassword($entity, $plainPassword);
101 101
                 }
102 102
             },
103
-            'map_data_on_update' => function (array $params, User $entity, DataMapperInterface $defaultMapper, ContainerInterface $container) use ($self) {
103
+            'map_data_on_update' => function(array $params, User $entity, DataMapperInterface $defaultMapper, ContainerInterface $container) use ($self) {
104 104
                 $defaultMapper->mapData($params, $entity);
105 105
 
106 106
                 /* @var LoggerInterface $activityMgr */
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
                     $activityMgr->info($activityMsg, $activityContext);
132 132
                 }
133 133
             },
134
-            'remove_entities_handler' => function ($entities, $params, $defaultHandler, ContainerInterface $container) {
134
+            'remove_entities_handler' => function($entities, $params, $defaultHandler, ContainerInterface $container) {
135 135
                 /* @var UserService $userService */
136 136
                 $userService = $container->get('modera_security.service.user_service');
137 137
 
Please login to merge, or discard this patch.